@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SecretVersionsListEntry extends Object implements Serializable, Cloneable, StructuredPojo
A structure that contains information about one version of a secret.
Constructor and Description |
---|
SecretVersionsListEntry() |
Modifier and Type | Method and Description |
---|---|
SecretVersionsListEntry |
clone() |
boolean |
equals(Object obj) |
Date |
getCreatedDate()
The date and time this version of the secret was created.
|
List<String> |
getKmsKeyIds()
The KMS keys used to encrypt the secret version.
|
Date |
getLastAccessedDate()
The date that this version of the secret was last accessed.
|
String |
getVersionId()
The unique version identifier of this version of the secret.
|
List<String> |
getVersionStages()
An array of staging labels that are currently associated with this version of the secret.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreatedDate(Date createdDate)
The date and time this version of the secret was created.
|
void |
setKmsKeyIds(Collection<String> kmsKeyIds)
The KMS keys used to encrypt the secret version.
|
void |
setLastAccessedDate(Date lastAccessedDate)
The date that this version of the secret was last accessed.
|
void |
setVersionId(String versionId)
The unique version identifier of this version of the secret.
|
void |
setVersionStages(Collection<String> versionStages)
An array of staging labels that are currently associated with this version of the secret.
|
String |
toString()
Returns a string representation of this object.
|
SecretVersionsListEntry |
withCreatedDate(Date createdDate)
The date and time this version of the secret was created.
|
SecretVersionsListEntry |
withKmsKeyIds(Collection<String> kmsKeyIds)
The KMS keys used to encrypt the secret version.
|
SecretVersionsListEntry |
withKmsKeyIds(String... kmsKeyIds)
The KMS keys used to encrypt the secret version.
|
SecretVersionsListEntry |
withLastAccessedDate(Date lastAccessedDate)
The date that this version of the secret was last accessed.
|
SecretVersionsListEntry |
withVersionId(String versionId)
The unique version identifier of this version of the secret.
|
SecretVersionsListEntry |
withVersionStages(Collection<String> versionStages)
An array of staging labels that are currently associated with this version of the secret.
|
SecretVersionsListEntry |
withVersionStages(String... versionStages)
An array of staging labels that are currently associated with this version of the secret.
|
public void setVersionId(String versionId)
The unique version identifier of this version of the secret.
versionId
- The unique version identifier of this version of the secret.public String getVersionId()
The unique version identifier of this version of the secret.
public SecretVersionsListEntry withVersionId(String versionId)
The unique version identifier of this version of the secret.
versionId
- The unique version identifier of this version of the secret.public List<String> getVersionStages()
An array of staging labels that are currently associated with this version of the secret.
public void setVersionStages(Collection<String> versionStages)
An array of staging labels that are currently associated with this version of the secret.
versionStages
- An array of staging labels that are currently associated with this version of the secret.public SecretVersionsListEntry withVersionStages(String... versionStages)
An array of staging labels that are currently associated with 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
- An array of staging labels that are currently associated with this version of the secret.public SecretVersionsListEntry withVersionStages(Collection<String> versionStages)
An array of staging labels that are currently associated with this version of the secret.
versionStages
- An array of staging labels that are currently associated with this version of the secret.public void setLastAccessedDate(Date lastAccessedDate)
The date that this version of the secret was last accessed. Note that the resolution of this field is at the date level and does not include the time.
lastAccessedDate
- The date that this version of the secret was last accessed. Note that the resolution of this field is at
the date level and does not include the time.public Date getLastAccessedDate()
The date that this version of the secret was last accessed. Note that the resolution of this field is at the date level and does not include the time.
public SecretVersionsListEntry withLastAccessedDate(Date lastAccessedDate)
The date that this version of the secret was last accessed. Note that the resolution of this field is at the date level and does not include the time.
lastAccessedDate
- The date that this version of the secret was last accessed. Note that the resolution of this field is at
the date level and does not include the time.public void setCreatedDate(Date createdDate)
The date and time this version of the secret was created.
createdDate
- The date and time this version of the secret was created.public Date getCreatedDate()
The date and time this version of the secret was created.
public SecretVersionsListEntry withCreatedDate(Date createdDate)
The date and time this version of the secret was created.
createdDate
- The date and time this version of the secret was created.public List<String> getKmsKeyIds()
The KMS keys used to encrypt the secret version.
public void setKmsKeyIds(Collection<String> kmsKeyIds)
The KMS keys used to encrypt the secret version.
kmsKeyIds
- The KMS keys used to encrypt the secret version.public SecretVersionsListEntry withKmsKeyIds(String... kmsKeyIds)
The KMS keys used to encrypt the secret version.
NOTE: This method appends the values to the existing list (if any). Use
setKmsKeyIds(java.util.Collection)
or withKmsKeyIds(java.util.Collection)
if you want to
override the existing values.
kmsKeyIds
- The KMS keys used to encrypt the secret version.public SecretVersionsListEntry withKmsKeyIds(Collection<String> kmsKeyIds)
The KMS keys used to encrypt the secret version.
kmsKeyIds
- The KMS keys used to encrypt the secret version.public String toString()
toString
in class Object
Object.toString()
public SecretVersionsListEntry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.