Record Class SecretVersion
java.lang.Object
java.lang.Record
codes.grow.packages.awssecretsmanager.SecretVersion
- Record Components:
versionId- version idversionStages- stage labelscreatedDate- creation time, ornulllastAccessedDate- last access, ornullkmsKeyIds- KMS keys that encrypt this version
public record SecretVersion(String versionId, List<String> versionStages, Instant createdDate, Instant lastAccessedDate, List<String> kmsKeyIds)
extends Record
One version of a secret (
ListSecretVersionIds).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedDaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thekmsKeyIdsrecord component.Returns the value of thelastAccessedDaterecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theversionIdrecord component.Returns the value of theversionStagesrecord component.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
versionId
Returns the value of theversionIdrecord component.- Returns:
- the value of the
versionIdrecord component
-
versionStages
Returns the value of theversionStagesrecord component.- Returns:
- the value of the
versionStagesrecord component
-
createdDate
Returns the value of thecreatedDaterecord component.- Returns:
- the value of the
createdDaterecord component
-
lastAccessedDate
Returns the value of thelastAccessedDaterecord component.- Returns:
- the value of the
lastAccessedDaterecord component
-
kmsKeyIds
Returns the value of thekmsKeyIdsrecord component.- Returns:
- the value of the
kmsKeyIdsrecord component
-