@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetSecretValueRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
GetSecretValueRequest() |
Modifier and Type | Method and Description |
---|---|
GetSecretValueRequest |
clone() |
boolean |
equals(Object obj) |
String |
getSecretId()
The ARN or name of the secret to retrieve.
|
String |
getVersionId()
The unique identifier of the version of the secret to retrieve.
|
String |
getVersionStage()
The staging label of the version of the secret to retrieve.
|
int |
hashCode() |
void |
setSecretId(String secretId)
The ARN or name of the secret to retrieve.
|
void |
setVersionId(String versionId)
The unique identifier of the version of the secret to retrieve.
|
void |
setVersionStage(String versionStage)
The staging label of the version of the secret to retrieve.
|
String |
toString()
Returns a string representation of this object.
|
GetSecretValueRequest |
withSecretId(String secretId)
The ARN or name of the secret to retrieve.
|
GetSecretValueRequest |
withVersionId(String versionId)
The unique identifier of the version of the secret to retrieve.
|
GetSecretValueRequest |
withVersionStage(String versionStage)
The staging label of the version of the secret to retrieve.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setSecretId(String secretId)
The ARN or name of the secret to retrieve.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
secretId
- The ARN or name of the secret to retrieve.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
public String getSecretId()
The ARN or name of the secret to retrieve.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
public GetSecretValueRequest withSecretId(String secretId)
The ARN or name of the secret to retrieve.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
secretId
- The ARN or name of the secret to retrieve.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
public void setVersionId(String versionId)
The unique identifier of the version of the secret to retrieve. If you include both this parameter and
VersionStage
, the two parameters must refer to the same secret version. If you don't specify either
a VersionStage
or VersionId
, then Secrets Manager returns the AWSCURRENT
version.
This value is typically a UUID-type value with 32 hexadecimal digits.
versionId
- The unique identifier of the version of the secret to retrieve. If you include both this parameter and
VersionStage
, the two parameters must refer to the same secret version. If you don't specify
either a VersionStage
or VersionId
, then Secrets Manager returns the
AWSCURRENT
version.
This value is typically a UUID-type value with 32 hexadecimal digits.
public String getVersionId()
The unique identifier of the version of the secret to retrieve. If you include both this parameter and
VersionStage
, the two parameters must refer to the same secret version. If you don't specify either
a VersionStage
or VersionId
, then Secrets Manager returns the AWSCURRENT
version.
This value is typically a UUID-type value with 32 hexadecimal digits.
VersionStage
, the two parameters must refer to the same secret version. If you don't specify
either a VersionStage
or VersionId
, then Secrets Manager returns the
AWSCURRENT
version.
This value is typically a UUID-type value with 32 hexadecimal digits.
public GetSecretValueRequest withVersionId(String versionId)
The unique identifier of the version of the secret to retrieve. If you include both this parameter and
VersionStage
, the two parameters must refer to the same secret version. If you don't specify either
a VersionStage
or VersionId
, then Secrets Manager returns the AWSCURRENT
version.
This value is typically a UUID-type value with 32 hexadecimal digits.
versionId
- The unique identifier of the version of the secret to retrieve. If you include both this parameter and
VersionStage
, the two parameters must refer to the same secret version. If you don't specify
either a VersionStage
or VersionId
, then Secrets Manager returns the
AWSCURRENT
version.
This value is typically a UUID-type value with 32 hexadecimal digits.
public void setVersionStage(String versionStage)
The staging label of the version of the secret to retrieve.
Secrets Manager uses staging labels to keep track of different versions during the rotation process. If you
include both this parameter and VersionId
, the two parameters must refer to the same secret version.
If you don't specify either a VersionStage
or VersionId
, Secrets Manager returns the
AWSCURRENT
version.
versionStage
- The staging label of the version of the secret to retrieve.
Secrets Manager uses staging labels to keep track of different versions during the rotation process. If
you include both this parameter and VersionId
, the two parameters must refer to the same
secret version. If you don't specify either a VersionStage
or VersionId
, Secrets
Manager returns the AWSCURRENT
version.
public String getVersionStage()
The staging label of the version of the secret to retrieve.
Secrets Manager uses staging labels to keep track of different versions during the rotation process. If you
include both this parameter and VersionId
, the two parameters must refer to the same secret version.
If you don't specify either a VersionStage
or VersionId
, Secrets Manager returns the
AWSCURRENT
version.
Secrets Manager uses staging labels to keep track of different versions during the rotation process. If
you include both this parameter and VersionId
, the two parameters must refer to the same
secret version. If you don't specify either a VersionStage
or VersionId
,
Secrets Manager returns the AWSCURRENT
version.
public GetSecretValueRequest withVersionStage(String versionStage)
The staging label of the version of the secret to retrieve.
Secrets Manager uses staging labels to keep track of different versions during the rotation process. If you
include both this parameter and VersionId
, the two parameters must refer to the same secret version.
If you don't specify either a VersionStage
or VersionId
, Secrets Manager returns the
AWSCURRENT
version.
versionStage
- The staging label of the version of the secret to retrieve.
Secrets Manager uses staging labels to keep track of different versions during the rotation process. If
you include both this parameter and VersionId
, the two parameters must refer to the same
secret version. If you don't specify either a VersionStage
or VersionId
, Secrets
Manager returns the AWSCURRENT
version.
public String toString()
toString
in class Object
Object.toString()
public GetSecretValueRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2024. All rights reserved.