@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReplicaRegionType extends Object implements Serializable, Cloneable, StructuredPojo
A custom type that specifies a Region
and the KmsKeyId
for a replica secret.
Constructor and Description |
---|
ReplicaRegionType() |
Modifier and Type | Method and Description |
---|---|
ReplicaRegionType |
clone() |
boolean |
equals(Object obj) |
String |
getKmsKeyId()
The ARN, key ID, or alias of the KMS key to encrypt the secret.
|
String |
getRegion()
A Region code.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKmsKeyId(String kmsKeyId)
The ARN, key ID, or alias of the KMS key to encrypt the secret.
|
void |
setRegion(String region)
A Region code.
|
String |
toString()
Returns a string representation of this object.
|
ReplicaRegionType |
withKmsKeyId(String kmsKeyId)
The ARN, key ID, or alias of the KMS key to encrypt the secret.
|
ReplicaRegionType |
withRegion(String region)
A Region code.
|
public void setRegion(String region)
A Region code. For a list of Region codes, see Name and code of Regions.
region
- A Region code. For a list of Region codes, see Name and code of
Regions.public String getRegion()
A Region code. For a list of Region codes, see Name and code of Regions.
public ReplicaRegionType withRegion(String region)
A Region code. For a list of Region codes, see Name and code of Regions.
region
- A Region code. For a list of Region codes, see Name and code of
Regions.public void setKmsKeyId(String kmsKeyId)
The ARN, key ID, or alias of the KMS key to encrypt the secret. If you don't include this field, Secrets Manager
uses aws/secretsmanager
.
kmsKeyId
- The ARN, key ID, or alias of the KMS key to encrypt the secret. If you don't include this field, Secrets
Manager uses aws/secretsmanager
.public String getKmsKeyId()
The ARN, key ID, or alias of the KMS key to encrypt the secret. If you don't include this field, Secrets Manager
uses aws/secretsmanager
.
aws/secretsmanager
.public ReplicaRegionType withKmsKeyId(String kmsKeyId)
The ARN, key ID, or alias of the KMS key to encrypt the secret. If you don't include this field, Secrets Manager
uses aws/secretsmanager
.
kmsKeyId
- The ARN, key ID, or alias of the KMS key to encrypt the secret. If you don't include this field, Secrets
Manager uses aws/secretsmanager
.public String toString()
toString
in class Object
Object.toString()
public ReplicaRegionType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.