@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 part of the protected secret information that was originally provided as binary data in the form of
a byte array.
|
String |
getSecretString()
The decrypted part of the protected secret information that was originally provided as a string.
|
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 part of the protected secret information that was originally provided as binary data in the form of
a byte array.
|
void |
setSecretString(String secretString)
The decrypted part of the protected secret information that was originally provided as a string.
|
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; useful for testing and debugging.
|
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 part of the protected secret information that was originally provided as binary data in the form of
a byte array.
|
GetSecretValueResult |
withSecretString(String secretString)
The decrypted part of the protected secret information that was originally provided as a string.
|
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 part of the protected secret information that was originally provided as binary data in the form of a byte array. The response parameter represents the binary data as a base64-encoded string.
This parameter is not used if the secret is created by the Secrets Manager console.
If you store custom information in this field of the secret, then you must code your Lambda rotation function to
parse and interpret whatever you store in the SecretString
or SecretBinary
fields.
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 part of the protected secret information that was originally provided as binary data in the
form of a byte array. The response parameter represents the binary data as a base64-encoded string.
This parameter is not used if the secret is created by the Secrets Manager console.
If you store custom information in this field of the secret, then you must code your Lambda rotation
function to parse and interpret whatever you store in the SecretString
or
SecretBinary
fields.
public ByteBuffer getSecretBinary()
The decrypted part of the protected secret information that was originally provided as binary data in the form of a byte array. The response parameter represents the binary data as a base64-encoded string.
This parameter is not used if the secret is created by the Secrets Manager console.
If you store custom information in this field of the secret, then you must code your Lambda rotation function to
parse and interpret whatever you store in the SecretString
or SecretBinary
fields.
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
.
This parameter is not used if the secret is created by the Secrets Manager console.
If you store custom information in this field of the secret, then you must code your Lambda rotation
function to parse and interpret whatever you store in the SecretString
or
SecretBinary
fields.
public GetSecretValueResult withSecretBinary(ByteBuffer secretBinary)
The decrypted part of the protected secret information that was originally provided as binary data in the form of a byte array. The response parameter represents the binary data as a base64-encoded string.
This parameter is not used if the secret is created by the Secrets Manager console.
If you store custom information in this field of the secret, then you must code your Lambda rotation function to
parse and interpret whatever you store in the SecretString
or SecretBinary
fields.
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 part of the protected secret information that was originally provided as binary data in the
form of a byte array. The response parameter represents the binary data as a base64-encoded string.
This parameter is not used if the secret is created by the Secrets Manager console.
If you store custom information in this field of the secret, then you must code your Lambda rotation
function to parse and interpret whatever you store in the SecretString
or
SecretBinary
fields.
public void setSecretString(String secretString)
The decrypted part of the protected secret information that was originally provided as a string.
If you create this secret by using the Secrets Manager console then only the SecretString
parameter
contains data. Secrets Manager stores the information as a JSON structure of key/value pairs that the Lambda
rotation function knows how to parse.
If you store custom information in the secret by using the CreateSecret, UpdateSecret, or PutSecretValue API operations instead of the Secrets Manager console, or by using the Other secret type in the console, then you must code your Lambda rotation function to parse and interpret those values.
secretString
- The decrypted part of the protected secret information that was originally provided as a string.
If you create this secret by using the Secrets Manager console then only the SecretString
parameter contains data. Secrets Manager stores the information as a JSON structure of key/value pairs
that the Lambda rotation function knows how to parse.
If you store custom information in the secret by using the CreateSecret, UpdateSecret, or PutSecretValue API operations instead of the Secrets Manager console, or by using the Other secret type in the console, then you must code your Lambda rotation function to parse and interpret those values.
public String getSecretString()
The decrypted part of the protected secret information that was originally provided as a string.
If you create this secret by using the Secrets Manager console then only the SecretString
parameter
contains data. Secrets Manager stores the information as a JSON structure of key/value pairs that the Lambda
rotation function knows how to parse.
If you store custom information in the secret by using the CreateSecret, UpdateSecret, or PutSecretValue API operations instead of the Secrets Manager console, or by using the Other secret type in the console, then you must code your Lambda rotation function to parse and interpret those values.
If you create this secret by using the Secrets Manager console then only the SecretString
parameter contains data. Secrets Manager stores the information as a JSON structure of key/value pairs
that the Lambda rotation function knows how to parse.
If you store custom information in the secret by using the CreateSecret, UpdateSecret, or PutSecretValue API operations instead of the Secrets Manager console, or by using the Other secret type in the console, then you must code your Lambda rotation function to parse and interpret those values.
public GetSecretValueResult withSecretString(String secretString)
The decrypted part of the protected secret information that was originally provided as a string.
If you create this secret by using the Secrets Manager console then only the SecretString
parameter
contains data. Secrets Manager stores the information as a JSON structure of key/value pairs that the Lambda
rotation function knows how to parse.
If you store custom information in the secret by using the CreateSecret, UpdateSecret, or PutSecretValue API operations instead of the Secrets Manager console, or by using the Other secret type in the console, then you must code your Lambda rotation function to parse and interpret those values.
secretString
- The decrypted part of the protected secret information that was originally provided as a string.
If you create this secret by using the Secrets Manager console then only the SecretString
parameter contains data. Secrets Manager stores the information as a JSON structure of key/value pairs
that the Lambda rotation function knows how to parse.
If you store custom information in the secret by using the CreateSecret, UpdateSecret, or PutSecretValue API operations instead of the Secrets Manager console, or by using the Other secret type in the console, then you must code your Lambda rotation function to parse and interpret those values.
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.
createdDate
- The date and time that this version of the secret was created.public Date getCreatedDate()
The date and time that this version of the secret was created.
public GetSecretValueResult withCreatedDate(Date createdDate)
The date and time that this version of the secret was created.
createdDate
- The date and time that this version of the secret was created.public String toString()
toString
in class Object
Object.toString()
public GetSecretValueResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.