@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MultiRegionConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Describes the configuration of this multi-Region key. This field appears only when the KMS key is a primary or replica of a multi-Region key.
For more information about any listed KMS key, use the DescribeKey operation.
Constructor and Description |
---|
MultiRegionConfiguration() |
Modifier and Type | Method and Description |
---|---|
MultiRegionConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getMultiRegionKeyType()
Indicates whether the KMS key is a
PRIMARY or REPLICA key. |
MultiRegionKey |
getPrimaryKey()
Displays the key ARN and Region of the primary key.
|
List<MultiRegionKey> |
getReplicaKeys()
displays the key ARNs and Regions of all replica keys.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMultiRegionKeyType(String multiRegionKeyType)
Indicates whether the KMS key is a
PRIMARY or REPLICA key. |
void |
setPrimaryKey(MultiRegionKey primaryKey)
Displays the key ARN and Region of the primary key.
|
void |
setReplicaKeys(Collection<MultiRegionKey> replicaKeys)
displays the key ARNs and Regions of all replica keys.
|
String |
toString()
Returns a string representation of this object.
|
MultiRegionConfiguration |
withMultiRegionKeyType(MultiRegionKeyType multiRegionKeyType)
Indicates whether the KMS key is a
PRIMARY or REPLICA key. |
MultiRegionConfiguration |
withMultiRegionKeyType(String multiRegionKeyType)
Indicates whether the KMS key is a
PRIMARY or REPLICA key. |
MultiRegionConfiguration |
withPrimaryKey(MultiRegionKey primaryKey)
Displays the key ARN and Region of the primary key.
|
MultiRegionConfiguration |
withReplicaKeys(Collection<MultiRegionKey> replicaKeys)
displays the key ARNs and Regions of all replica keys.
|
MultiRegionConfiguration |
withReplicaKeys(MultiRegionKey... replicaKeys)
displays the key ARNs and Regions of all replica keys.
|
public void setMultiRegionKeyType(String multiRegionKeyType)
Indicates whether the KMS key is a PRIMARY
or REPLICA
key.
multiRegionKeyType
- Indicates whether the KMS key is a PRIMARY
or REPLICA
key.MultiRegionKeyType
public String getMultiRegionKeyType()
Indicates whether the KMS key is a PRIMARY
or REPLICA
key.
PRIMARY
or REPLICA
key.MultiRegionKeyType
public MultiRegionConfiguration withMultiRegionKeyType(String multiRegionKeyType)
Indicates whether the KMS key is a PRIMARY
or REPLICA
key.
multiRegionKeyType
- Indicates whether the KMS key is a PRIMARY
or REPLICA
key.MultiRegionKeyType
public MultiRegionConfiguration withMultiRegionKeyType(MultiRegionKeyType multiRegionKeyType)
Indicates whether the KMS key is a PRIMARY
or REPLICA
key.
multiRegionKeyType
- Indicates whether the KMS key is a PRIMARY
or REPLICA
key.MultiRegionKeyType
public void setPrimaryKey(MultiRegionKey primaryKey)
Displays the key ARN and Region of the primary key. This field includes the current KMS key if it is the primary key.
primaryKey
- Displays the key ARN and Region of the primary key. This field includes the current KMS key if it is the
primary key.public MultiRegionKey getPrimaryKey()
Displays the key ARN and Region of the primary key. This field includes the current KMS key if it is the primary key.
public MultiRegionConfiguration withPrimaryKey(MultiRegionKey primaryKey)
Displays the key ARN and Region of the primary key. This field includes the current KMS key if it is the primary key.
primaryKey
- Displays the key ARN and Region of the primary key. This field includes the current KMS key if it is the
primary key.public List<MultiRegionKey> getReplicaKeys()
displays the key ARNs and Regions of all replica keys. This field includes the current KMS key if it is a replica key.
public void setReplicaKeys(Collection<MultiRegionKey> replicaKeys)
displays the key ARNs and Regions of all replica keys. This field includes the current KMS key if it is a replica key.
replicaKeys
- displays the key ARNs and Regions of all replica keys. This field includes the current KMS key if it is a
replica key.public MultiRegionConfiguration withReplicaKeys(MultiRegionKey... replicaKeys)
displays the key ARNs and Regions of all replica keys. This field includes the current KMS key if it is a replica key.
NOTE: This method appends the values to the existing list (if any). Use
setReplicaKeys(java.util.Collection)
or withReplicaKeys(java.util.Collection)
if you want to
override the existing values.
replicaKeys
- displays the key ARNs and Regions of all replica keys. This field includes the current KMS key if it is a
replica key.public MultiRegionConfiguration withReplicaKeys(Collection<MultiRegionKey> replicaKeys)
displays the key ARNs and Regions of all replica keys. This field includes the current KMS key if it is a replica key.
replicaKeys
- displays the key ARNs and Regions of all replica keys. This field includes the current KMS key if it is a
replica key.public String toString()
toString
in class Object
Object.toString()
public MultiRegionConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.