Record Class ReplicationStatus
java.lang.Object
java.lang.Record
codes.grow.packages.awssecretsmanager.ReplicationStatus
- Record Components:
region- replica regionkmsKeyId- KMS key of the replicastatus-InSync,FailedorInProgressstatusMessage- status textlastAccessedDate- last access of the replica
public record ReplicationStatus(String region, String kmsKeyId, String status, String statusMessage, Instant lastAccessedDate)
extends Record
Replication status of one replica region. Components are
null when AWS omits them.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kmsKeyId()Returns the value of thekmsKeyIdrecord component.Returns the value of thelastAccessedDaterecord component.region()Returns the value of theregionrecord component.status()Returns the value of thestatusrecord component.Returns the value of thestatusMessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReplicationStatus
public ReplicationStatus(String region, String kmsKeyId, String status, String statusMessage, Instant lastAccessedDate) Creates an instance of aReplicationStatusrecord class.- Parameters:
region- the value for theregionrecord componentkmsKeyId- the value for thekmsKeyIdrecord componentstatus- the value for thestatusrecord componentstatusMessage- the value for thestatusMessagerecord componentlastAccessedDate- the value for thelastAccessedDaterecord component
-
-
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). -
region
Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord component
-
kmsKeyId
Returns the value of thekmsKeyIdrecord component.- Returns:
- the value of the
kmsKeyIdrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
statusMessage
Returns the value of thestatusMessagerecord component.- Returns:
- the value of the
statusMessagerecord component
-
lastAccessedDate
Returns the value of thelastAccessedDaterecord component.- Returns:
- the value of the
lastAccessedDaterecord component
-