@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeSecretResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeSecretResult() |
Modifier and Type | Method and Description |
---|---|
DescribeSecretResult |
addVersionIdsToStagesEntry(String key,
List<String> value)
Add a single VersionIdsToStages entry
|
DescribeSecretResult |
clearVersionIdsToStagesEntries()
Removes all the entries added into VersionIdsToStages.
|
DescribeSecretResult |
clone() |
boolean |
equals(Object obj) |
String |
getARN()
The ARN of the secret.
|
Date |
getCreatedDate()
The date the secret was created.
|
Date |
getDeletedDate()
The date the secret is scheduled for deletion.
|
String |
getDescription()
The description of the secret.
|
String |
getKmsKeyId()
The key ID or alias ARN of the KMS key that Secrets Manager uses to encrypt the secret value.
|
Date |
getLastAccessedDate()
The date that the secret was last accessed in the Region.
|
Date |
getLastChangedDate()
The last date and time that this secret was modified in any way.
|
Date |
getLastRotatedDate()
The last date and time that Secrets Manager rotated the secret.
|
String |
getName()
The name of the secret.
|
Date |
getNextRotationDate()
The next rotation is scheduled to occur on or before this date.
|
String |
getOwningService()
The ID of the service that created this secret.
|
String |
getPrimaryRegion()
The Region the secret is in.
|
List<ReplicationStatusType> |
getReplicationStatus()
A list of the replicas of this secret and their status:
|
Boolean |
getRotationEnabled()
Specifies whether automatic rotation is turned on for this secret.
|
String |
getRotationLambdaARN()
The ARN of the Lambda function that Secrets Manager invokes to rotate the secret.
|
RotationRulesType |
getRotationRules()
The rotation schedule and Lambda function for this secret.
|
List<Tag> |
getTags()
The list of tags attached to the secret.
|
Map<String,List<String>> |
getVersionIdsToStages()
A list of the versions of the secret that have staging labels attached.
|
int |
hashCode() |
Boolean |
isRotationEnabled()
Specifies whether automatic rotation is turned on for this secret.
|
void |
setARN(String aRN)
The ARN of the secret.
|
void |
setCreatedDate(Date createdDate)
The date the secret was created.
|
void |
setDeletedDate(Date deletedDate)
The date the secret is scheduled for deletion.
|
void |
setDescription(String description)
The description of the secret.
|
void |
setKmsKeyId(String kmsKeyId)
The key ID or alias ARN of the KMS key that Secrets Manager uses to encrypt the secret value.
|
void |
setLastAccessedDate(Date lastAccessedDate)
The date that the secret was last accessed in the Region.
|
void |
setLastChangedDate(Date lastChangedDate)
The last date and time that this secret was modified in any way.
|
void |
setLastRotatedDate(Date lastRotatedDate)
The last date and time that Secrets Manager rotated the secret.
|
void |
setName(String name)
The name of the secret.
|
void |
setNextRotationDate(Date nextRotationDate)
The next rotation is scheduled to occur on or before this date.
|
void |
setOwningService(String owningService)
The ID of the service that created this secret.
|
void |
setPrimaryRegion(String primaryRegion)
The Region the secret is in.
|
void |
setReplicationStatus(Collection<ReplicationStatusType> replicationStatus)
A list of the replicas of this secret and their status:
|
void |
setRotationEnabled(Boolean rotationEnabled)
Specifies whether automatic rotation is turned on for this secret.
|
void |
setRotationLambdaARN(String rotationLambdaARN)
The ARN of the Lambda function that Secrets Manager invokes to rotate the secret.
|
void |
setRotationRules(RotationRulesType rotationRules)
The rotation schedule and Lambda function for this secret.
|
void |
setTags(Collection<Tag> tags)
The list of tags attached to the secret.
|
void |
setVersionIdsToStages(Map<String,List<String>> versionIdsToStages)
A list of the versions of the secret that have staging labels attached.
|
String |
toString()
Returns a string representation of this object.
|
DescribeSecretResult |
withARN(String aRN)
The ARN of the secret.
|
DescribeSecretResult |
withCreatedDate(Date createdDate)
The date the secret was created.
|
DescribeSecretResult |
withDeletedDate(Date deletedDate)
The date the secret is scheduled for deletion.
|
DescribeSecretResult |
withDescription(String description)
The description of the secret.
|
DescribeSecretResult |
withKmsKeyId(String kmsKeyId)
The key ID or alias ARN of the KMS key that Secrets Manager uses to encrypt the secret value.
|
DescribeSecretResult |
withLastAccessedDate(Date lastAccessedDate)
The date that the secret was last accessed in the Region.
|
DescribeSecretResult |
withLastChangedDate(Date lastChangedDate)
The last date and time that this secret was modified in any way.
|
DescribeSecretResult |
withLastRotatedDate(Date lastRotatedDate)
The last date and time that Secrets Manager rotated the secret.
|
DescribeSecretResult |
withName(String name)
The name of the secret.
|
DescribeSecretResult |
withNextRotationDate(Date nextRotationDate)
The next rotation is scheduled to occur on or before this date.
|
DescribeSecretResult |
withOwningService(String owningService)
The ID of the service that created this secret.
|
DescribeSecretResult |
withPrimaryRegion(String primaryRegion)
The Region the secret is in.
|
DescribeSecretResult |
withReplicationStatus(Collection<ReplicationStatusType> replicationStatus)
A list of the replicas of this secret and their status:
|
DescribeSecretResult |
withReplicationStatus(ReplicationStatusType... replicationStatus)
A list of the replicas of this secret and their status:
|
DescribeSecretResult |
withRotationEnabled(Boolean rotationEnabled)
Specifies whether automatic rotation is turned on for this secret.
|
DescribeSecretResult |
withRotationLambdaARN(String rotationLambdaARN)
The ARN of the Lambda function that Secrets Manager invokes to rotate the secret.
|
DescribeSecretResult |
withRotationRules(RotationRulesType rotationRules)
The rotation schedule and Lambda function for this secret.
|
DescribeSecretResult |
withTags(Collection<Tag> tags)
The list of tags attached to the secret.
|
DescribeSecretResult |
withTags(Tag... tags)
The list of tags attached to the secret.
|
DescribeSecretResult |
withVersionIdsToStages(Map<String,List<String>> versionIdsToStages)
A list of the versions of the secret that have staging labels attached.
|
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 DescribeSecretResult withARN(String aRN)
The ARN of the secret.
aRN
- The ARN of the secret.public void setName(String name)
The name of the secret.
name
- The name of the secret.public String getName()
The name of the secret.
public DescribeSecretResult withName(String name)
The name of the secret.
name
- The name of the secret.public void setDescription(String description)
The description of the secret.
description
- The description of the secret.public String getDescription()
The description of the secret.
public DescribeSecretResult withDescription(String description)
The description of the secret.
description
- The description of the secret.public void setKmsKeyId(String kmsKeyId)
The key ID or alias ARN of the KMS key that Secrets Manager uses to encrypt the secret value. If the secret is
encrypted with the Amazon Web Services managed key aws/secretsmanager
, this field is omitted.
Secrets created using the console use an KMS key ID.
kmsKeyId
- The key ID or alias ARN of the KMS key that Secrets Manager uses to encrypt the secret value. If the
secret is encrypted with the Amazon Web Services managed key aws/secretsmanager
, this field
is omitted. Secrets created using the console use an KMS key ID.public String getKmsKeyId()
The key ID or alias ARN of the KMS key that Secrets Manager uses to encrypt the secret value. If the secret is
encrypted with the Amazon Web Services managed key aws/secretsmanager
, this field is omitted.
Secrets created using the console use an KMS key ID.
aws/secretsmanager
, this field
is omitted. Secrets created using the console use an KMS key ID.public DescribeSecretResult withKmsKeyId(String kmsKeyId)
The key ID or alias ARN of the KMS key that Secrets Manager uses to encrypt the secret value. If the secret is
encrypted with the Amazon Web Services managed key aws/secretsmanager
, this field is omitted.
Secrets created using the console use an KMS key ID.
kmsKeyId
- The key ID or alias ARN of the KMS key that Secrets Manager uses to encrypt the secret value. If the
secret is encrypted with the Amazon Web Services managed key aws/secretsmanager
, this field
is omitted. Secrets created using the console use an KMS key ID.public void setRotationEnabled(Boolean rotationEnabled)
Specifies whether automatic rotation is turned on for this secret. If the secret has never been configured for rotation, Secrets Manager returns null.
To turn on rotation, use RotateSecret. To turn off rotation, use CancelRotateSecret.
rotationEnabled
- Specifies whether automatic rotation is turned on for this secret. If the secret has never been configured
for rotation, Secrets Manager returns null.
To turn on rotation, use RotateSecret. To turn off rotation, use CancelRotateSecret.
public Boolean getRotationEnabled()
Specifies whether automatic rotation is turned on for this secret. If the secret has never been configured for rotation, Secrets Manager returns null.
To turn on rotation, use RotateSecret. To turn off rotation, use CancelRotateSecret.
To turn on rotation, use RotateSecret. To turn off rotation, use CancelRotateSecret.
public DescribeSecretResult withRotationEnabled(Boolean rotationEnabled)
Specifies whether automatic rotation is turned on for this secret. If the secret has never been configured for rotation, Secrets Manager returns null.
To turn on rotation, use RotateSecret. To turn off rotation, use CancelRotateSecret.
rotationEnabled
- Specifies whether automatic rotation is turned on for this secret. If the secret has never been configured
for rotation, Secrets Manager returns null.
To turn on rotation, use RotateSecret. To turn off rotation, use CancelRotateSecret.
public Boolean isRotationEnabled()
Specifies whether automatic rotation is turned on for this secret. If the secret has never been configured for rotation, Secrets Manager returns null.
To turn on rotation, use RotateSecret. To turn off rotation, use CancelRotateSecret.
To turn on rotation, use RotateSecret. To turn off rotation, use CancelRotateSecret.
public void setRotationLambdaARN(String rotationLambdaARN)
The ARN of the Lambda function that Secrets Manager invokes to rotate the secret.
rotationLambdaARN
- The ARN of the Lambda function that Secrets Manager invokes to rotate the secret.public String getRotationLambdaARN()
The ARN of the Lambda function that Secrets Manager invokes to rotate the secret.
public DescribeSecretResult withRotationLambdaARN(String rotationLambdaARN)
The ARN of the Lambda function that Secrets Manager invokes to rotate the secret.
rotationLambdaARN
- The ARN of the Lambda function that Secrets Manager invokes to rotate the secret.public void setRotationRules(RotationRulesType rotationRules)
The rotation schedule and Lambda function for this secret. If the secret previously had rotation turned on, but it is now turned off, this field shows the previous rotation schedule and rotation function. If the secret never had rotation turned on, this field is omitted.
rotationRules
- The rotation schedule and Lambda function for this secret. If the secret previously had rotation turned
on, but it is now turned off, this field shows the previous rotation schedule and rotation function. If
the secret never had rotation turned on, this field is omitted.public RotationRulesType getRotationRules()
The rotation schedule and Lambda function for this secret. If the secret previously had rotation turned on, but it is now turned off, this field shows the previous rotation schedule and rotation function. If the secret never had rotation turned on, this field is omitted.
public DescribeSecretResult withRotationRules(RotationRulesType rotationRules)
The rotation schedule and Lambda function for this secret. If the secret previously had rotation turned on, but it is now turned off, this field shows the previous rotation schedule and rotation function. If the secret never had rotation turned on, this field is omitted.
rotationRules
- The rotation schedule and Lambda function for this secret. If the secret previously had rotation turned
on, but it is now turned off, this field shows the previous rotation schedule and rotation function. If
the secret never had rotation turned on, this field is omitted.public void setLastRotatedDate(Date lastRotatedDate)
The last date and time that Secrets Manager rotated the secret. If the secret isn't configured for rotation or rotation has been disabled, Secrets Manager returns null.
lastRotatedDate
- The last date and time that Secrets Manager rotated the secret. If the secret isn't configured for
rotation or rotation has been disabled, Secrets Manager returns null.public Date getLastRotatedDate()
The last date and time that Secrets Manager rotated the secret. If the secret isn't configured for rotation or rotation has been disabled, Secrets Manager returns null.
public DescribeSecretResult withLastRotatedDate(Date lastRotatedDate)
The last date and time that Secrets Manager rotated the secret. If the secret isn't configured for rotation or rotation has been disabled, Secrets Manager returns null.
lastRotatedDate
- The last date and time that Secrets Manager rotated the secret. If the secret isn't configured for
rotation or rotation has been disabled, Secrets Manager returns null.public void setLastChangedDate(Date lastChangedDate)
The last date and time that this secret was modified in any way.
lastChangedDate
- The last date and time that this secret was modified in any way.public Date getLastChangedDate()
The last date and time that this secret was modified in any way.
public DescribeSecretResult withLastChangedDate(Date lastChangedDate)
The last date and time that this secret was modified in any way.
lastChangedDate
- The last date and time that this secret was modified in any way.public void setLastAccessedDate(Date lastAccessedDate)
The date that the secret was last accessed in the Region. This field is omitted if the secret has never been retrieved in the Region.
lastAccessedDate
- The date that the secret was last accessed in the Region. This field is omitted if the secret has never
been retrieved in the Region.public Date getLastAccessedDate()
The date that the secret was last accessed in the Region. This field is omitted if the secret has never been retrieved in the Region.
public DescribeSecretResult withLastAccessedDate(Date lastAccessedDate)
The date that the secret was last accessed in the Region. This field is omitted if the secret has never been retrieved in the Region.
lastAccessedDate
- The date that the secret was last accessed in the Region. This field is omitted if the secret has never
been retrieved in the Region.public void setDeletedDate(Date deletedDate)
The date the secret is scheduled for deletion. If it is not scheduled for deletion, this field is omitted. When you delete a secret, Secrets Manager requires a recovery window of at least 7 days before deleting the secret. Some time after the deleted date, Secrets Manager deletes the secret, including all of its versions.
If a secret is scheduled for deletion, then its details, including the encrypted secret value, is not accessible. To cancel a scheduled deletion and restore access to the secret, use RestoreSecret.
deletedDate
- The date the secret is scheduled for deletion. If it is not scheduled for deletion, this field is omitted.
When you delete a secret, Secrets Manager requires a recovery window of at least 7 days before deleting
the secret. Some time after the deleted date, Secrets Manager deletes the secret, including all of its
versions.
If a secret is scheduled for deletion, then its details, including the encrypted secret value, is not accessible. To cancel a scheduled deletion and restore access to the secret, use RestoreSecret.
public Date getDeletedDate()
The date the secret is scheduled for deletion. If it is not scheduled for deletion, this field is omitted. When you delete a secret, Secrets Manager requires a recovery window of at least 7 days before deleting the secret. Some time after the deleted date, Secrets Manager deletes the secret, including all of its versions.
If a secret is scheduled for deletion, then its details, including the encrypted secret value, is not accessible. To cancel a scheduled deletion and restore access to the secret, use RestoreSecret.
If a secret is scheduled for deletion, then its details, including the encrypted secret value, is not accessible. To cancel a scheduled deletion and restore access to the secret, use RestoreSecret.
public DescribeSecretResult withDeletedDate(Date deletedDate)
The date the secret is scheduled for deletion. If it is not scheduled for deletion, this field is omitted. When you delete a secret, Secrets Manager requires a recovery window of at least 7 days before deleting the secret. Some time after the deleted date, Secrets Manager deletes the secret, including all of its versions.
If a secret is scheduled for deletion, then its details, including the encrypted secret value, is not accessible. To cancel a scheduled deletion and restore access to the secret, use RestoreSecret.
deletedDate
- The date the secret is scheduled for deletion. If it is not scheduled for deletion, this field is omitted.
When you delete a secret, Secrets Manager requires a recovery window of at least 7 days before deleting
the secret. Some time after the deleted date, Secrets Manager deletes the secret, including all of its
versions.
If a secret is scheduled for deletion, then its details, including the encrypted secret value, is not accessible. To cancel a scheduled deletion and restore access to the secret, use RestoreSecret.
public void setNextRotationDate(Date nextRotationDate)
The next rotation is scheduled to occur on or before this date. If the secret isn't configured for rotation or rotation has been disabled, Secrets Manager returns null. If rotation fails, Secrets Manager retries the entire rotation process multiple times. If rotation is unsuccessful, this date may be in the past.
This date represents the latest date that rotation will occur, but it is not an approximate rotation date. In some cases, for example if you turn off automatic rotation and then turn it back on, the next rotation may occur much sooner than this date.
nextRotationDate
- The next rotation is scheduled to occur on or before this date. If the secret isn't configured for
rotation or rotation has been disabled, Secrets Manager returns null. If rotation fails, Secrets Manager
retries the entire rotation process multiple times. If rotation is unsuccessful, this date may be in the
past.
This date represents the latest date that rotation will occur, but it is not an approximate rotation date. In some cases, for example if you turn off automatic rotation and then turn it back on, the next rotation may occur much sooner than this date.
public Date getNextRotationDate()
The next rotation is scheduled to occur on or before this date. If the secret isn't configured for rotation or rotation has been disabled, Secrets Manager returns null. If rotation fails, Secrets Manager retries the entire rotation process multiple times. If rotation is unsuccessful, this date may be in the past.
This date represents the latest date that rotation will occur, but it is not an approximate rotation date. In some cases, for example if you turn off automatic rotation and then turn it back on, the next rotation may occur much sooner than this date.
This date represents the latest date that rotation will occur, but it is not an approximate rotation date. In some cases, for example if you turn off automatic rotation and then turn it back on, the next rotation may occur much sooner than this date.
public DescribeSecretResult withNextRotationDate(Date nextRotationDate)
The next rotation is scheduled to occur on or before this date. If the secret isn't configured for rotation or rotation has been disabled, Secrets Manager returns null. If rotation fails, Secrets Manager retries the entire rotation process multiple times. If rotation is unsuccessful, this date may be in the past.
This date represents the latest date that rotation will occur, but it is not an approximate rotation date. In some cases, for example if you turn off automatic rotation and then turn it back on, the next rotation may occur much sooner than this date.
nextRotationDate
- The next rotation is scheduled to occur on or before this date. If the secret isn't configured for
rotation or rotation has been disabled, Secrets Manager returns null. If rotation fails, Secrets Manager
retries the entire rotation process multiple times. If rotation is unsuccessful, this date may be in the
past.
This date represents the latest date that rotation will occur, but it is not an approximate rotation date. In some cases, for example if you turn off automatic rotation and then turn it back on, the next rotation may occur much sooner than this date.
public List<Tag> getTags()
The list of tags attached to the secret. To add tags to a secret, use TagResource. To remove tags, use UntagResource.
public void setTags(Collection<Tag> tags)
The list of tags attached to the secret. To add tags to a secret, use TagResource. To remove tags, use UntagResource.
tags
- The list of tags attached to the secret. To add tags to a secret, use TagResource. To remove tags,
use UntagResource.public DescribeSecretResult withTags(Tag... tags)
The list of tags attached to the secret. To add tags to a secret, use TagResource. To remove tags, use UntagResource.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The list of tags attached to the secret. To add tags to a secret, use TagResource. To remove tags,
use UntagResource.public DescribeSecretResult withTags(Collection<Tag> tags)
The list of tags attached to the secret. To add tags to a secret, use TagResource. To remove tags, use UntagResource.
tags
- The list of tags attached to the secret. To add tags to a secret, use TagResource. To remove tags,
use UntagResource.public Map<String,List<String>> getVersionIdsToStages()
A list of the versions of the secret that have staging labels attached. Versions that don't have staging labels are considered deprecated and Secrets Manager can delete them.
Secrets Manager uses staging labels to indicate the status of a secret version during rotation. The three staging labels for rotation are:
AWSCURRENT
, which indicates the current version of the secret.
AWSPENDING
, which indicates the version of the secret that contains new secret information that will
become the next current version when rotation finishes.
During rotation, Secrets Manager creates an AWSPENDING
version ID before creating the new secret
version. To check if a secret version exists, call GetSecretValue.
AWSPREVIOUS
, which indicates the previous current version of the secret. You can use this as the
last known good version.
For more information about rotation and staging labels, see How rotation works.
Secrets Manager uses staging labels to indicate the status of a secret version during rotation. The three staging labels for rotation are:
AWSCURRENT
, which indicates the current version of the secret.
AWSPENDING
, which indicates the version of the secret that contains new secret information
that will become the next current version when rotation finishes.
During rotation, Secrets Manager creates an AWSPENDING
version ID before creating the new
secret version. To check if a secret version exists, call GetSecretValue.
AWSPREVIOUS
, which indicates the previous current version of the secret. You can use this as
the last known good version.
For more information about rotation and staging labels, see How rotation works.
public void setVersionIdsToStages(Map<String,List<String>> versionIdsToStages)
A list of the versions of the secret that have staging labels attached. Versions that don't have staging labels are considered deprecated and Secrets Manager can delete them.
Secrets Manager uses staging labels to indicate the status of a secret version during rotation. The three staging labels for rotation are:
AWSCURRENT
, which indicates the current version of the secret.
AWSPENDING
, which indicates the version of the secret that contains new secret information that will
become the next current version when rotation finishes.
During rotation, Secrets Manager creates an AWSPENDING
version ID before creating the new secret
version. To check if a secret version exists, call GetSecretValue.
AWSPREVIOUS
, which indicates the previous current version of the secret. You can use this as the
last known good version.
For more information about rotation and staging labels, see How rotation works.
versionIdsToStages
- A list of the versions of the secret that have staging labels attached. Versions that don't have staging
labels are considered deprecated and Secrets Manager can delete them.
Secrets Manager uses staging labels to indicate the status of a secret version during rotation. The three staging labels for rotation are:
AWSCURRENT
, which indicates the current version of the secret.
AWSPENDING
, which indicates the version of the secret that contains new secret information
that will become the next current version when rotation finishes.
During rotation, Secrets Manager creates an AWSPENDING
version ID before creating the new
secret version. To check if a secret version exists, call GetSecretValue.
AWSPREVIOUS
, which indicates the previous current version of the secret. You can use this as
the last known good version.
For more information about rotation and staging labels, see How rotation works.
public DescribeSecretResult withVersionIdsToStages(Map<String,List<String>> versionIdsToStages)
A list of the versions of the secret that have staging labels attached. Versions that don't have staging labels are considered deprecated and Secrets Manager can delete them.
Secrets Manager uses staging labels to indicate the status of a secret version during rotation. The three staging labels for rotation are:
AWSCURRENT
, which indicates the current version of the secret.
AWSPENDING
, which indicates the version of the secret that contains new secret information that will
become the next current version when rotation finishes.
During rotation, Secrets Manager creates an AWSPENDING
version ID before creating the new secret
version. To check if a secret version exists, call GetSecretValue.
AWSPREVIOUS
, which indicates the previous current version of the secret. You can use this as the
last known good version.
For more information about rotation and staging labels, see How rotation works.
versionIdsToStages
- A list of the versions of the secret that have staging labels attached. Versions that don't have staging
labels are considered deprecated and Secrets Manager can delete them.
Secrets Manager uses staging labels to indicate the status of a secret version during rotation. The three staging labels for rotation are:
AWSCURRENT
, which indicates the current version of the secret.
AWSPENDING
, which indicates the version of the secret that contains new secret information
that will become the next current version when rotation finishes.
During rotation, Secrets Manager creates an AWSPENDING
version ID before creating the new
secret version. To check if a secret version exists, call GetSecretValue.
AWSPREVIOUS
, which indicates the previous current version of the secret. You can use this as
the last known good version.
For more information about rotation and staging labels, see How rotation works.
public DescribeSecretResult addVersionIdsToStagesEntry(String key, List<String> value)
public DescribeSecretResult clearVersionIdsToStagesEntries()
public void setOwningService(String owningService)
The ID of the service that created this secret. For more information, see Secrets managed by other Amazon Web Services services.
owningService
- The ID of the service that created this secret. For more information, see Secrets
managed by other Amazon Web Services services.public String getOwningService()
The ID of the service that created this secret. For more information, see Secrets managed by other Amazon Web Services services.
public DescribeSecretResult withOwningService(String owningService)
The ID of the service that created this secret. For more information, see Secrets managed by other Amazon Web Services services.
owningService
- The ID of the service that created this secret. For more information, see Secrets
managed by other Amazon Web Services services.public void setCreatedDate(Date createdDate)
The date the secret was created.
createdDate
- The date the secret was created.public Date getCreatedDate()
The date the secret was created.
public DescribeSecretResult withCreatedDate(Date createdDate)
The date the secret was created.
createdDate
- The date the secret was created.public void setPrimaryRegion(String primaryRegion)
The Region the secret is in. If a secret is replicated to other Regions, the replicas are listed in
ReplicationStatus
.
primaryRegion
- The Region the secret is in. If a secret is replicated to other Regions, the replicas are listed in
ReplicationStatus
.public String getPrimaryRegion()
The Region the secret is in. If a secret is replicated to other Regions, the replicas are listed in
ReplicationStatus
.
ReplicationStatus
.public DescribeSecretResult withPrimaryRegion(String primaryRegion)
The Region the secret is in. If a secret is replicated to other Regions, the replicas are listed in
ReplicationStatus
.
primaryRegion
- The Region the secret is in. If a secret is replicated to other Regions, the replicas are listed in
ReplicationStatus
.public List<ReplicationStatusType> getReplicationStatus()
A list of the replicas of this secret and their status:
Failed
, which indicates that the replica was not created.
InProgress
, which indicates that Secrets Manager is in the process of creating the replica.
InSync
, which indicates that the replica was created.
Failed
, which indicates that the replica was not created.
InProgress
, which indicates that Secrets Manager is in the process of creating the replica.
InSync
, which indicates that the replica was created.
public void setReplicationStatus(Collection<ReplicationStatusType> replicationStatus)
A list of the replicas of this secret and their status:
Failed
, which indicates that the replica was not created.
InProgress
, which indicates that Secrets Manager is in the process of creating the replica.
InSync
, which indicates that the replica was created.
replicationStatus
- A list of the replicas of this secret and their status:
Failed
, which indicates that the replica was not created.
InProgress
, which indicates that Secrets Manager is in the process of creating the replica.
InSync
, which indicates that the replica was created.
public DescribeSecretResult withReplicationStatus(ReplicationStatusType... replicationStatus)
A list of the replicas of this secret and their status:
Failed
, which indicates that the replica was not created.
InProgress
, which indicates that Secrets Manager is in the process of creating the replica.
InSync
, which indicates that the replica was created.
NOTE: This method appends the values to the existing list (if any). Use
setReplicationStatus(java.util.Collection)
or withReplicationStatus(java.util.Collection)
if
you want to override the existing values.
replicationStatus
- A list of the replicas of this secret and their status:
Failed
, which indicates that the replica was not created.
InProgress
, which indicates that Secrets Manager is in the process of creating the replica.
InSync
, which indicates that the replica was created.
public DescribeSecretResult withReplicationStatus(Collection<ReplicationStatusType> replicationStatus)
A list of the replicas of this secret and their status:
Failed
, which indicates that the replica was not created.
InProgress
, which indicates that Secrets Manager is in the process of creating the replica.
InSync
, which indicates that the replica was created.
replicationStatus
- A list of the replicas of this secret and their status:
Failed
, which indicates that the replica was not created.
InProgress
, which indicates that Secrets Manager is in the process of creating the replica.
InSync
, which indicates that the replica was created.
public String toString()
toString
in class Object
Object.toString()
public DescribeSecretResult clone()