Class GetSecretValueRequest
- java.lang.Object
-
- software.amazon.awssdk.aws.greengrass.model.GetSecretValueRequest
-
- All Implemented Interfaces:
EventStreamJsonMessage
public class GetSecretValueRequest extends Object implements EventStreamJsonMessage
-
-
Field Summary
Fields Modifier and Type Field Description static String
APPLICATION_MODEL_TYPE
static GetSecretValueRequest
VOID
-
Constructor Summary
Constructors Constructor Description GetSecretValueRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object rhs)
String
getApplicationModelType()
Returns the named model type.String
getSecretId()
The name of the secret to get.String
getVersionId()
(Optional) The ID of the version to get.String
getVersionStage()
(Optional) The staging label of the version to get.int
hashCode()
Boolean
isRefresh()
(Optional) Whether to fetch the latest secret from cloud when the request is handled.void
setRefresh(Boolean refresh)
(Optional) Whether to fetch the latest secret from cloud when the request is handled.void
setSecretId(String secretId)
The name of the secret to get.void
setVersionId(String versionId)
(Optional) The ID of the version to get.void
setVersionStage(String versionStage)
(Optional) The staging label of the version to get.GetSecretValueRequest
withRefresh(Boolean refresh)
(Optional) Whether to fetch the latest secret from cloud when the request is handled.GetSecretValueRequest
withSecretId(String secretId)
The name of the secret to get.GetSecretValueRequest
withVersionId(String versionId)
(Optional) The ID of the version to get.GetSecretValueRequest
withVersionStage(String versionStage)
(Optional) The staging label of the version to get.-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage
fromJson, isVoid, postFromJson, toPayload
-
-
-
-
Field Detail
-
APPLICATION_MODEL_TYPE
public static final String APPLICATION_MODEL_TYPE
- See Also:
- Constant Field Values
-
VOID
public static final GetSecretValueRequest VOID
-
-
Method Detail
-
getSecretId
public String getSecretId()
The name of the secret to get. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
-
setSecretId
public void setSecretId(String secretId)
The name of the secret to get. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
-
withSecretId
public GetSecretValueRequest withSecretId(String secretId)
The name of the secret to get. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
-
getVersionId
public String getVersionId()
(Optional) The ID of the version to get. If you don't specify versionId or versionStage, this operation defaults to the version with the AWSCURRENT label.
-
setVersionId
public void setVersionId(String versionId)
(Optional) The ID of the version to get. If you don't specify versionId or versionStage, this operation defaults to the version with the AWSCURRENT label.
-
withVersionId
public GetSecretValueRequest withVersionId(String versionId)
(Optional) The ID of the version to get. If you don't specify versionId or versionStage, this operation defaults to the version with the AWSCURRENT label.
-
getVersionStage
public String getVersionStage()
(Optional) The staging label of the version to get. If you don't specify versionId or versionStage, this operation defaults to the version with the AWSCURRENT label.
-
setVersionStage
public void setVersionStage(String versionStage)
(Optional) The staging label of the version to get. If you don't specify versionId or versionStage, this operation defaults to the version with the AWSCURRENT label.
-
withVersionStage
public GetSecretValueRequest withVersionStage(String versionStage)
(Optional) The staging label of the version to get. If you don't specify versionId or versionStage, this operation defaults to the version with the AWSCURRENT label.
-
isRefresh
public Boolean isRefresh()
(Optional) Whether to fetch the latest secret from cloud when the request is handled. Defaults to false.
-
setRefresh
public void setRefresh(Boolean refresh)
(Optional) Whether to fetch the latest secret from cloud when the request is handled. Defaults to false.
-
withRefresh
public GetSecretValueRequest withRefresh(Boolean refresh)
(Optional) Whether to fetch the latest secret from cloud when the request is handled. Defaults to false.
-
getApplicationModelType
public String getApplicationModelType()
Description copied from interface:EventStreamJsonMessage
Returns the named model type. May be used for a header.- Specified by:
getApplicationModelType
in interfaceEventStreamJsonMessage
- Returns:
- the named model type
-
-