Record Class ReplicationStatus

java.lang.Object
java.lang.Record
codes.grow.packages.awssecretsmanager.ReplicationStatus
Record Components:
region - replica region
kmsKeyId - KMS key of the replica
status - InSync, Failed or InProgress
statusMessage - status text
lastAccessedDate - 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 Details

    • ReplicationStatus

      public ReplicationStatus(String region, String kmsKeyId, String status, String statusMessage, Instant lastAccessedDate)
      Creates an instance of a ReplicationStatus record class.
      Parameters:
      region - the value for the region record component
      kmsKeyId - the value for the kmsKeyId record component
      status - the value for the status record component
      statusMessage - the value for the statusMessage record component
      lastAccessedDate - the value for the lastAccessedDate record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • region

      public String region()
      Returns the value of the region record component.
      Returns:
      the value of the region record component
    • kmsKeyId

      public String kmsKeyId()
      Returns the value of the kmsKeyId record component.
      Returns:
      the value of the kmsKeyId record component
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • statusMessage

      public String statusMessage()
      Returns the value of the statusMessage record component.
      Returns:
      the value of the statusMessage record component
    • lastAccessedDate

      public Instant lastAccessedDate()
      Returns the value of the lastAccessedDate record component.
      Returns:
      the value of the lastAccessedDate record component