@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetSecretValueResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetSecretValueResult() |
Modifier and Type | Method and Description |
---|---|
GetSecretValueResult |
clone() |
boolean |
equals(Object obj) |
String |
getARN()
The ARN of the secret.
|
Date |
getCreatedDate()
The date and time that this version of the secret was created.
|
String |
getName()
The friendly name of the secret.
|
ByteBuffer |
getSecretBinary()
The decrypted secret value, if the secret value was originally provided as binary data in the form of a byte
array.
|
String |
getSecretString()
The decrypted secret value, if the secret value was originally provided as a string or through the Secrets
Manager console.
|
String |
getVersionId()
The unique identifier of this version of the secret.
|
List<String> |
getVersionStages()
A list of all of the staging labels currently attached to this version of the secret.
|
int |
hashCode() |
void |
setARN(String aRN)
The ARN of the secret.
|
void |
setCreatedDate(Date createdDate)
The date and time that this version of the secret was created.
|
void |
setName(String name)
The friendly name of the secret.
|
void |
setSecretBinary(ByteBuffer secretBinary)
The decrypted secret value, if the secret value was originally provided as binary data in the form of a byte
array.
|
void |
setSecretString(String secretString)
The decrypted secret value, if the secret value was originally provided as a string or through the Secrets
Manager console.
|
void |
setVersionId(String versionId)
The unique identifier of this version of the secret.
|
void |
setVersionStages(Collection<String> versionStages)
A list of all of the staging labels currently attached to this version of the secret.
|
String |
toString()
Returns a string representation of this object.
|
GetSecretValueResult |
withARN(String aRN)
The ARN of the secret.
|
GetSecretValueResult |
withCreatedDate(Date createdDate)
The date and time that this version of the secret was created.
|
GetSecretValueResult |
withName(String name)
The friendly name of the secret.
|
GetSecretValueResult |
withSecretBinary(ByteBuffer secretBinary)
The decrypted secret value, if the secret value was originally provided as binary data in the form of a byte
array.
|
GetSecretValueResult |
withSecretString(String secretString)
The decrypted secret value, if the secret value was originally provided as a string or through the Secrets
Manager console.
|
GetSecretValueResult |
withVersionId(String versionId)
The unique identifier of this version of the secret.
|
GetSecretValueResult |
withVersionStages(Collection<String> versionStages)
A list of all of the staging labels currently attached to this version of the secret.
|
GetSecretValueResult |
withVersionStages(String... versionStages)
A list of all of the staging labels currently attached to this version of the secret.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setARN(String aRN)
The ARN of the secret.
aRN
- The ARN of the secret.public String getARN()
The ARN of the secret.
public GetSecretValueResult withARN(String aRN)
The ARN of the secret.
aRN
- The ARN of the secret.public void setName(String name)
The friendly name of the secret.
name
- The friendly name of the secret.public String getName()
The friendly name of the secret.
public GetSecretValueResult withName(String name)
The friendly name of the secret.
name
- The friendly name of the secret.public void setVersionId(String versionId)
The unique identifier of this version of the secret.
versionId
- The unique identifier of this version of the secret.public String getVersionId()
The unique identifier of this version of the secret.
public GetSecretValueResult withVersionId(String versionId)
The unique identifier of this version of the secret.
versionId
- The unique identifier of this version of the secret.public void setSecretBinary(ByteBuffer secretBinary)
The decrypted secret value, if the secret value was originally provided as binary data in the form of a byte
array. When you retrieve a SecretBinary
using the HTTP API, the Python SDK, or the Amazon Web
Services CLI, the value is Base64-encoded. Otherwise, it is not encoded.
If the secret was created by using the Secrets Manager console, or if the secret value was originally provided as
a string, then this field is omitted. The secret value appears in SecretString
instead.
Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
secretBinary
- The decrypted secret value, if the secret value was originally provided as binary data in the form of a
byte array. When you retrieve a SecretBinary
using the HTTP API, the Python SDK, or the
Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not encoded.
If the secret was created by using the Secrets Manager console, or if the secret value was originally
provided as a string, then this field is omitted. The secret value appears in SecretString
instead.
Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.
public ByteBuffer getSecretBinary()
The decrypted secret value, if the secret value was originally provided as binary data in the form of a byte
array. When you retrieve a SecretBinary
using the HTTP API, the Python SDK, or the Amazon Web
Services CLI, the value is Base64-encoded. Otherwise, it is not encoded.
If the secret was created by using the Secrets Manager console, or if the secret value was originally provided as
a string, then this field is omitted. The secret value appears in SecretString
instead.
Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
.
Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
SecretBinary
using the HTTP API, the Python SDK, or the
Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not encoded.
If the secret was created by using the Secrets Manager console, or if the secret value was originally
provided as a string, then this field is omitted. The secret value appears in SecretString
instead.
Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.
public GetSecretValueResult withSecretBinary(ByteBuffer secretBinary)
The decrypted secret value, if the secret value was originally provided as binary data in the form of a byte
array. When you retrieve a SecretBinary
using the HTTP API, the Python SDK, or the Amazon Web
Services CLI, the value is Base64-encoded. Otherwise, it is not encoded.
If the secret was created by using the Secrets Manager console, or if the secret value was originally provided as
a string, then this field is omitted. The secret value appears in SecretString
instead.
Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
secretBinary
- The decrypted secret value, if the secret value was originally provided as binary data in the form of a
byte array. When you retrieve a SecretBinary
using the HTTP API, the Python SDK, or the
Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not encoded.
If the secret was created by using the Secrets Manager console, or if the secret value was originally
provided as a string, then this field is omitted. The secret value appears in SecretString
instead.
Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.
public void setSecretString(String secretString)
The decrypted secret value, if the secret value was originally provided as a string or through the Secrets Manager console.
If this secret was created by using the console, then Secrets Manager stores the information as a JSON structure of key/value pairs.
Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.
secretString
- The decrypted secret value, if the secret value was originally provided as a string or through the Secrets
Manager console.
If this secret was created by using the console, then Secrets Manager stores the information as a JSON structure of key/value pairs.
Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.
public String getSecretString()
The decrypted secret value, if the secret value was originally provided as a string or through the Secrets Manager console.
If this secret was created by using the console, then Secrets Manager stores the information as a JSON structure of key/value pairs.
Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.
If this secret was created by using the console, then Secrets Manager stores the information as a JSON structure of key/value pairs.
Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.
public GetSecretValueResult withSecretString(String secretString)
The decrypted secret value, if the secret value was originally provided as a string or through the Secrets Manager console.
If this secret was created by using the console, then Secrets Manager stores the information as a JSON structure of key/value pairs.
Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.
secretString
- The decrypted secret value, if the secret value was originally provided as a string or through the Secrets
Manager console.
If this secret was created by using the console, then Secrets Manager stores the information as a JSON structure of key/value pairs.
Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.
public List<String> getVersionStages()
A list of all of the staging labels currently attached to this version of the secret.
public void setVersionStages(Collection<String> versionStages)
A list of all of the staging labels currently attached to this version of the secret.
versionStages
- A list of all of the staging labels currently attached to this version of the secret.public GetSecretValueResult withVersionStages(String... versionStages)
A list of all of the staging labels currently attached to this version of the secret.
NOTE: This method appends the values to the existing list (if any). Use
setVersionStages(java.util.Collection)
or withVersionStages(java.util.Collection)
if you want
to override the existing values.
versionStages
- A list of all of the staging labels currently attached to this version of the secret.public GetSecretValueResult withVersionStages(Collection<String> versionStages)
A list of all of the staging labels currently attached to this version of the secret.
versionStages
- A list of all of the staging labels currently attached to this version of the secret.public void setCreatedDate(Date createdDate)
The date and time that this version of the secret was created. If you don't specify which version in
VersionId
or VersionStage
, then Secrets Manager uses the AWSCURRENT
version.
createdDate
- The date and time that this version of the secret was created. If you don't specify which version in
VersionId
or VersionStage
, then Secrets Manager uses the AWSCURRENT
version.public Date getCreatedDate()
The date and time that this version of the secret was created. If you don't specify which version in
VersionId
or VersionStage
, then Secrets Manager uses the AWSCURRENT
version.
VersionId
or VersionStage
, then Secrets Manager uses the
AWSCURRENT
version.public GetSecretValueResult withCreatedDate(Date createdDate)
The date and time that this version of the secret was created. If you don't specify which version in
VersionId
or VersionStage
, then Secrets Manager uses the AWSCURRENT
version.
createdDate
- The date and time that this version of the secret was created. If you don't specify which version in
VersionId
or VersionStage
, then Secrets Manager uses the AWSCURRENT
version.public String toString()
toString
in class Object
Object.toString()
public GetSecretValueResult clone()