Record Class ReplicaRegion
java.lang.Object
java.lang.Record
codes.grow.packages.awssecretsmanager.ReplicaRegion
- Record Components:
region- region namekmsKeyId- KMS key of the replica, ornullfor the default
A replica region of
createSecret.-
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.static ReplicaRegionCreates a replica region with the default KMS key.region()Returns the value of theregionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReplicaRegion
Validates the region.
-
-
Method Details
-
of
Creates a replica region with the default KMS key.- Parameters:
region- region name- Returns:
- the replica region
-
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
-