@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KeyMetadata extends Object implements Serializable, Cloneable, StructuredPojo
Contains metadata about a customer master key (CMK).
This data type is used as a response element for the CreateKey and DescribeKey operations.
Constructor and Description |
---|
KeyMetadata() |
Modifier and Type | Method and Description |
---|---|
KeyMetadata |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the CMK.
|
String |
getAWSAccountId()
The twelve-digit account ID of the AWS account that owns the CMK.
|
String |
getCloudHsmClusterId()
The cluster ID of the AWS CloudHSM cluster that contains the key material for the CMK.
|
Date |
getCreationDate()
The date and time when the CMK was created.
|
String |
getCustomerMasterKeySpec()
Describes the type of key material in the CMK.
|
String |
getCustomKeyStoreId()
A unique identifier for the custom key store
that contains the CMK.
|
Date |
getDeletionDate()
The date and time after which AWS KMS deletes this CMK.
|
String |
getDescription()
The description of the CMK.
|
Boolean |
getEnabled()
Specifies whether the CMK is enabled.
|
List<String> |
getEncryptionAlgorithms()
The encryption algorithms that the CMK supports.
|
String |
getExpirationModel()
Specifies whether the CMK's key material expires.
|
String |
getKeyId()
The globally unique identifier for the CMK.
|
String |
getKeyManager()
The manager of the CMK.
|
String |
getKeyState()
The current status of the CMK.
|
String |
getKeyUsage()
The
cryptographic operations for which you can use the CMK.
|
Boolean |
getMultiRegion()
Indicates whether the CMK is a multi-Region (
True ) or regional (False ) key. |
MultiRegionConfiguration |
getMultiRegionConfiguration()
Lists the primary and replica CMKs in same multi-Region CMK.
|
String |
getOrigin()
The source of the CMK's key material.
|
Integer |
getPendingDeletionWindowInDays()
The waiting period before the primary key in a multi-Region key is deleted.
|
List<String> |
getSigningAlgorithms()
The signing algorithms that the CMK supports.
|
Date |
getValidTo()
The time at which the imported key material expires.
|
int |
hashCode() |
Boolean |
isEnabled()
Specifies whether the CMK is enabled.
|
Boolean |
isMultiRegion()
Indicates whether the CMK is a multi-Region (
True ) or regional (False ) key. |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the CMK.
|
void |
setAWSAccountId(String aWSAccountId)
The twelve-digit account ID of the AWS account that owns the CMK.
|
void |
setCloudHsmClusterId(String cloudHsmClusterId)
The cluster ID of the AWS CloudHSM cluster that contains the key material for the CMK.
|
void |
setCreationDate(Date creationDate)
The date and time when the CMK was created.
|
void |
setCustomerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec)
Describes the type of key material in the CMK.
|
void |
setCustomerMasterKeySpec(String customerMasterKeySpec)
Describes the type of key material in the CMK.
|
void |
setCustomKeyStoreId(String customKeyStoreId)
A unique identifier for the custom key store
that contains the CMK.
|
void |
setDeletionDate(Date deletionDate)
The date and time after which AWS KMS deletes this CMK.
|
void |
setDescription(String description)
The description of the CMK.
|
void |
setEnabled(Boolean enabled)
Specifies whether the CMK is enabled.
|
void |
setEncryptionAlgorithms(Collection<String> encryptionAlgorithms)
The encryption algorithms that the CMK supports.
|
void |
setExpirationModel(ExpirationModelType expirationModel)
Specifies whether the CMK's key material expires.
|
void |
setExpirationModel(String expirationModel)
Specifies whether the CMK's key material expires.
|
void |
setKeyId(String keyId)
The globally unique identifier for the CMK.
|
void |
setKeyManager(KeyManagerType keyManager)
The manager of the CMK.
|
void |
setKeyManager(String keyManager)
The manager of the CMK.
|
void |
setKeyState(KeyState keyState)
The current status of the CMK.
|
void |
setKeyState(String keyState)
The current status of the CMK.
|
void |
setKeyUsage(KeyUsageType keyUsage)
The
cryptographic operations for which you can use the CMK.
|
void |
setKeyUsage(String keyUsage)
The
cryptographic operations for which you can use the CMK.
|
void |
setMultiRegion(Boolean multiRegion)
Indicates whether the CMK is a multi-Region (
True ) or regional (False ) key. |
void |
setMultiRegionConfiguration(MultiRegionConfiguration multiRegionConfiguration)
Lists the primary and replica CMKs in same multi-Region CMK.
|
void |
setOrigin(OriginType origin)
The source of the CMK's key material.
|
void |
setOrigin(String origin)
The source of the CMK's key material.
|
void |
setPendingDeletionWindowInDays(Integer pendingDeletionWindowInDays)
The waiting period before the primary key in a multi-Region key is deleted.
|
void |
setSigningAlgorithms(Collection<String> signingAlgorithms)
The signing algorithms that the CMK supports.
|
void |
setValidTo(Date validTo)
The time at which the imported key material expires.
|
String |
toString()
Returns a string representation of this object.
|
KeyMetadata |
withArn(String arn)
The Amazon Resource Name (ARN) of the CMK.
|
KeyMetadata |
withAWSAccountId(String aWSAccountId)
The twelve-digit account ID of the AWS account that owns the CMK.
|
KeyMetadata |
withCloudHsmClusterId(String cloudHsmClusterId)
The cluster ID of the AWS CloudHSM cluster that contains the key material for the CMK.
|
KeyMetadata |
withCreationDate(Date creationDate)
The date and time when the CMK was created.
|
KeyMetadata |
withCustomerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec)
Describes the type of key material in the CMK.
|
KeyMetadata |
withCustomerMasterKeySpec(String customerMasterKeySpec)
Describes the type of key material in the CMK.
|
KeyMetadata |
withCustomKeyStoreId(String customKeyStoreId)
A unique identifier for the custom key store
that contains the CMK.
|
KeyMetadata |
withDeletionDate(Date deletionDate)
The date and time after which AWS KMS deletes this CMK.
|
KeyMetadata |
withDescription(String description)
The description of the CMK.
|
KeyMetadata |
withEnabled(Boolean enabled)
Specifies whether the CMK is enabled.
|
KeyMetadata |
withEncryptionAlgorithms(Collection<String> encryptionAlgorithms)
The encryption algorithms that the CMK supports.
|
KeyMetadata |
withEncryptionAlgorithms(EncryptionAlgorithmSpec... encryptionAlgorithms)
The encryption algorithms that the CMK supports.
|
KeyMetadata |
withEncryptionAlgorithms(String... encryptionAlgorithms)
The encryption algorithms that the CMK supports.
|
KeyMetadata |
withExpirationModel(ExpirationModelType expirationModel)
Specifies whether the CMK's key material expires.
|
KeyMetadata |
withExpirationModel(String expirationModel)
Specifies whether the CMK's key material expires.
|
KeyMetadata |
withKeyId(String keyId)
The globally unique identifier for the CMK.
|
KeyMetadata |
withKeyManager(KeyManagerType keyManager)
The manager of the CMK.
|
KeyMetadata |
withKeyManager(String keyManager)
The manager of the CMK.
|
KeyMetadata |
withKeyState(KeyState keyState)
The current status of the CMK.
|
KeyMetadata |
withKeyState(String keyState)
The current status of the CMK.
|
KeyMetadata |
withKeyUsage(KeyUsageType keyUsage)
The
cryptographic operations for which you can use the CMK.
|
KeyMetadata |
withKeyUsage(String keyUsage)
The
cryptographic operations for which you can use the CMK.
|
KeyMetadata |
withMultiRegion(Boolean multiRegion)
Indicates whether the CMK is a multi-Region (
True ) or regional (False ) key. |
KeyMetadata |
withMultiRegionConfiguration(MultiRegionConfiguration multiRegionConfiguration)
Lists the primary and replica CMKs in same multi-Region CMK.
|
KeyMetadata |
withOrigin(OriginType origin)
The source of the CMK's key material.
|
KeyMetadata |
withOrigin(String origin)
The source of the CMK's key material.
|
KeyMetadata |
withPendingDeletionWindowInDays(Integer pendingDeletionWindowInDays)
The waiting period before the primary key in a multi-Region key is deleted.
|
KeyMetadata |
withSigningAlgorithms(Collection<String> signingAlgorithms)
The signing algorithms that the CMK supports.
|
KeyMetadata |
withSigningAlgorithms(SigningAlgorithmSpec... signingAlgorithms)
The signing algorithms that the CMK supports.
|
KeyMetadata |
withSigningAlgorithms(String... signingAlgorithms)
The signing algorithms that the CMK supports.
|
KeyMetadata |
withValidTo(Date validTo)
The time at which the imported key material expires.
|
public void setAWSAccountId(String aWSAccountId)
The twelve-digit account ID of the AWS account that owns the CMK.
aWSAccountId
- The twelve-digit account ID of the AWS account that owns the CMK.public String getAWSAccountId()
The twelve-digit account ID of the AWS account that owns the CMK.
public KeyMetadata withAWSAccountId(String aWSAccountId)
The twelve-digit account ID of the AWS account that owns the CMK.
aWSAccountId
- The twelve-digit account ID of the AWS account that owns the CMK.public void setKeyId(String keyId)
The globally unique identifier for the CMK.
keyId
- The globally unique identifier for the CMK.public String getKeyId()
The globally unique identifier for the CMK.
public KeyMetadata withKeyId(String keyId)
The globally unique identifier for the CMK.
keyId
- The globally unique identifier for the CMK.public void setArn(String arn)
The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference.
arn
- The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key
Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference.public String getArn()
The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference.
public KeyMetadata withArn(String arn)
The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference.
arn
- The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key
Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference.public void setCreationDate(Date creationDate)
The date and time when the CMK was created.
creationDate
- The date and time when the CMK was created.public Date getCreationDate()
The date and time when the CMK was created.
public KeyMetadata withCreationDate(Date creationDate)
The date and time when the CMK was created.
creationDate
- The date and time when the CMK was created.public void setEnabled(Boolean enabled)
Specifies whether the CMK is enabled. When KeyState
is Enabled
this value is true,
otherwise it is false.
enabled
- Specifies whether the CMK is enabled. When KeyState
is Enabled
this value is
true, otherwise it is false.public Boolean getEnabled()
Specifies whether the CMK is enabled. When KeyState
is Enabled
this value is true,
otherwise it is false.
KeyState
is Enabled
this value is
true, otherwise it is false.public KeyMetadata withEnabled(Boolean enabled)
Specifies whether the CMK is enabled. When KeyState
is Enabled
this value is true,
otherwise it is false.
enabled
- Specifies whether the CMK is enabled. When KeyState
is Enabled
this value is
true, otherwise it is false.public Boolean isEnabled()
Specifies whether the CMK is enabled. When KeyState
is Enabled
this value is true,
otherwise it is false.
KeyState
is Enabled
this value is
true, otherwise it is false.public void setDescription(String description)
The description of the CMK.
description
- The description of the CMK.public String getDescription()
The description of the CMK.
public KeyMetadata withDescription(String description)
The description of the CMK.
description
- The description of the CMK.public void setKeyUsage(String keyUsage)
The cryptographic operations for which you can use the CMK.
keyUsage
- The
cryptographic operations for which you can use the CMK.KeyUsageType
public String getKeyUsage()
The cryptographic operations for which you can use the CMK.
KeyUsageType
public KeyMetadata withKeyUsage(String keyUsage)
The cryptographic operations for which you can use the CMK.
keyUsage
- The
cryptographic operations for which you can use the CMK.KeyUsageType
public void setKeyUsage(KeyUsageType keyUsage)
The cryptographic operations for which you can use the CMK.
keyUsage
- The
cryptographic operations for which you can use the CMK.KeyUsageType
public KeyMetadata withKeyUsage(KeyUsageType keyUsage)
The cryptographic operations for which you can use the CMK.
keyUsage
- The
cryptographic operations for which you can use the CMK.KeyUsageType
public void setKeyState(String keyState)
The current status of the CMK.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
keyState
- The current status of the CMK.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
KeyState
public String getKeyState()
The current status of the CMK.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
KeyState
public KeyMetadata withKeyState(String keyState)
The current status of the CMK.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
keyState
- The current status of the CMK.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
KeyState
public void setKeyState(KeyState keyState)
The current status of the CMK.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
keyState
- The current status of the CMK.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
KeyState
public KeyMetadata withKeyState(KeyState keyState)
The current status of the CMK.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
keyState
- The current status of the CMK.
For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.
KeyState
public void setDeletionDate(Date deletionDate)
The date and time after which AWS KMS deletes this CMK. This value is present only when the CMK is scheduled for
deletion, that is, when its KeyState
is PendingDeletion
.
When the primary key in a multi-Region key is scheduled for deletion but still has replica keys, its key state is
PendingReplicaDeletion
and the length of its waiting period is displayed in the
PendingDeletionWindowInDays
field.
deletionDate
- The date and time after which AWS KMS deletes this CMK. This value is present only when the CMK is
scheduled for deletion, that is, when its KeyState
is PendingDeletion
.
When the primary key in a multi-Region key is scheduled for deletion but still has replica keys, its key
state is PendingReplicaDeletion
and the length of its waiting period is displayed in the
PendingDeletionWindowInDays
field.
public Date getDeletionDate()
The date and time after which AWS KMS deletes this CMK. This value is present only when the CMK is scheduled for
deletion, that is, when its KeyState
is PendingDeletion
.
When the primary key in a multi-Region key is scheduled for deletion but still has replica keys, its key state is
PendingReplicaDeletion
and the length of its waiting period is displayed in the
PendingDeletionWindowInDays
field.
KeyState
is PendingDeletion
.
When the primary key in a multi-Region key is scheduled for deletion but still has replica keys, its key
state is PendingReplicaDeletion
and the length of its waiting period is displayed in the
PendingDeletionWindowInDays
field.
public KeyMetadata withDeletionDate(Date deletionDate)
The date and time after which AWS KMS deletes this CMK. This value is present only when the CMK is scheduled for
deletion, that is, when its KeyState
is PendingDeletion
.
When the primary key in a multi-Region key is scheduled for deletion but still has replica keys, its key state is
PendingReplicaDeletion
and the length of its waiting period is displayed in the
PendingDeletionWindowInDays
field.
deletionDate
- The date and time after which AWS KMS deletes this CMK. This value is present only when the CMK is
scheduled for deletion, that is, when its KeyState
is PendingDeletion
.
When the primary key in a multi-Region key is scheduled for deletion but still has replica keys, its key
state is PendingReplicaDeletion
and the length of its waiting period is displayed in the
PendingDeletionWindowInDays
field.
public void setValidTo(Date validTo)
The time at which the imported key material expires. When the key material expires, AWS KMS deletes the key
material and the CMK becomes unusable. This value is present only for CMKs whose Origin
is
EXTERNAL
and whose ExpirationModel
is KEY_MATERIAL_EXPIRES
, otherwise this
value is omitted.
validTo
- The time at which the imported key material expires. When the key material expires, AWS KMS deletes the
key material and the CMK becomes unusable. This value is present only for CMKs whose Origin
is EXTERNAL
and whose ExpirationModel
is KEY_MATERIAL_EXPIRES
,
otherwise this value is omitted.public Date getValidTo()
The time at which the imported key material expires. When the key material expires, AWS KMS deletes the key
material and the CMK becomes unusable. This value is present only for CMKs whose Origin
is
EXTERNAL
and whose ExpirationModel
is KEY_MATERIAL_EXPIRES
, otherwise this
value is omitted.
Origin
is EXTERNAL
and whose ExpirationModel
is KEY_MATERIAL_EXPIRES
,
otherwise this value is omitted.public KeyMetadata withValidTo(Date validTo)
The time at which the imported key material expires. When the key material expires, AWS KMS deletes the key
material and the CMK becomes unusable. This value is present only for CMKs whose Origin
is
EXTERNAL
and whose ExpirationModel
is KEY_MATERIAL_EXPIRES
, otherwise this
value is omitted.
validTo
- The time at which the imported key material expires. When the key material expires, AWS KMS deletes the
key material and the CMK becomes unusable. This value is present only for CMKs whose Origin
is EXTERNAL
and whose ExpirationModel
is KEY_MATERIAL_EXPIRES
,
otherwise this value is omitted.public void setOrigin(String origin)
The source of the CMK's key material. When this value is AWS_KMS
, AWS KMS created the key material.
When this value is EXTERNAL
, the key material was imported from your existing key management
infrastructure or the CMK lacks key material. When this value is AWS_CLOUDHSM
, the key material was
created in the AWS CloudHSM cluster associated with a custom key store.
origin
- The source of the CMK's key material. When this value is AWS_KMS
, AWS KMS created the key
material. When this value is EXTERNAL
, the key material was imported from your existing key
management infrastructure or the CMK lacks key material. When this value is AWS_CLOUDHSM
, the
key material was created in the AWS CloudHSM cluster associated with a custom key store.OriginType
public String getOrigin()
The source of the CMK's key material. When this value is AWS_KMS
, AWS KMS created the key material.
When this value is EXTERNAL
, the key material was imported from your existing key management
infrastructure or the CMK lacks key material. When this value is AWS_CLOUDHSM
, the key material was
created in the AWS CloudHSM cluster associated with a custom key store.
AWS_KMS
, AWS KMS created the key
material. When this value is EXTERNAL
, the key material was imported from your existing key
management infrastructure or the CMK lacks key material. When this value is AWS_CLOUDHSM
,
the key material was created in the AWS CloudHSM cluster associated with a custom key store.OriginType
public KeyMetadata withOrigin(String origin)
The source of the CMK's key material. When this value is AWS_KMS
, AWS KMS created the key material.
When this value is EXTERNAL
, the key material was imported from your existing key management
infrastructure or the CMK lacks key material. When this value is AWS_CLOUDHSM
, the key material was
created in the AWS CloudHSM cluster associated with a custom key store.
origin
- The source of the CMK's key material. When this value is AWS_KMS
, AWS KMS created the key
material. When this value is EXTERNAL
, the key material was imported from your existing key
management infrastructure or the CMK lacks key material. When this value is AWS_CLOUDHSM
, the
key material was created in the AWS CloudHSM cluster associated with a custom key store.OriginType
public void setOrigin(OriginType origin)
The source of the CMK's key material. When this value is AWS_KMS
, AWS KMS created the key material.
When this value is EXTERNAL
, the key material was imported from your existing key management
infrastructure or the CMK lacks key material. When this value is AWS_CLOUDHSM
, the key material was
created in the AWS CloudHSM cluster associated with a custom key store.
origin
- The source of the CMK's key material. When this value is AWS_KMS
, AWS KMS created the key
material. When this value is EXTERNAL
, the key material was imported from your existing key
management infrastructure or the CMK lacks key material. When this value is AWS_CLOUDHSM
, the
key material was created in the AWS CloudHSM cluster associated with a custom key store.OriginType
public KeyMetadata withOrigin(OriginType origin)
The source of the CMK's key material. When this value is AWS_KMS
, AWS KMS created the key material.
When this value is EXTERNAL
, the key material was imported from your existing key management
infrastructure or the CMK lacks key material. When this value is AWS_CLOUDHSM
, the key material was
created in the AWS CloudHSM cluster associated with a custom key store.
origin
- The source of the CMK's key material. When this value is AWS_KMS
, AWS KMS created the key
material. When this value is EXTERNAL
, the key material was imported from your existing key
management infrastructure or the CMK lacks key material. When this value is AWS_CLOUDHSM
, the
key material was created in the AWS CloudHSM cluster associated with a custom key store.OriginType
public void setCustomKeyStoreId(String customKeyStoreId)
A unique identifier for the custom key store that contains the CMK. This value is present only when the CMK is created in a custom key store.
customKeyStoreId
- A unique identifier for the custom key
store that contains the CMK. This value is present only when the CMK is created in a custom key store.public String getCustomKeyStoreId()
A unique identifier for the custom key store that contains the CMK. This value is present only when the CMK is created in a custom key store.
public KeyMetadata withCustomKeyStoreId(String customKeyStoreId)
A unique identifier for the custom key store that contains the CMK. This value is present only when the CMK is created in a custom key store.
customKeyStoreId
- A unique identifier for the custom key
store that contains the CMK. This value is present only when the CMK is created in a custom key store.public void setCloudHsmClusterId(String cloudHsmClusterId)
The cluster ID of the AWS CloudHSM cluster that contains the key material for the CMK. When you create a CMK in a custom key store, AWS KMS creates the key material for the CMK in the associated AWS CloudHSM cluster. This value is present only when the CMK is created in a custom key store.
cloudHsmClusterId
- The cluster ID of the AWS CloudHSM cluster that contains the key material for the CMK. When you create a
CMK in a custom key
store, AWS KMS creates the key material for the CMK in the associated AWS CloudHSM cluster. This value
is present only when the CMK is created in a custom key store.public String getCloudHsmClusterId()
The cluster ID of the AWS CloudHSM cluster that contains the key material for the CMK. When you create a CMK in a custom key store, AWS KMS creates the key material for the CMK in the associated AWS CloudHSM cluster. This value is present only when the CMK is created in a custom key store.
public KeyMetadata withCloudHsmClusterId(String cloudHsmClusterId)
The cluster ID of the AWS CloudHSM cluster that contains the key material for the CMK. When you create a CMK in a custom key store, AWS KMS creates the key material for the CMK in the associated AWS CloudHSM cluster. This value is present only when the CMK is created in a custom key store.
cloudHsmClusterId
- The cluster ID of the AWS CloudHSM cluster that contains the key material for the CMK. When you create a
CMK in a custom key
store, AWS KMS creates the key material for the CMK in the associated AWS CloudHSM cluster. This value
is present only when the CMK is created in a custom key store.public void setExpirationModel(String expirationModel)
Specifies whether the CMK's key material expires. This value is present only when Origin
is
EXTERNAL
, otherwise this value is omitted.
expirationModel
- Specifies whether the CMK's key material expires. This value is present only when Origin
is
EXTERNAL
, otherwise this value is omitted.ExpirationModelType
public String getExpirationModel()
Specifies whether the CMK's key material expires. This value is present only when Origin
is
EXTERNAL
, otherwise this value is omitted.
Origin
is
EXTERNAL
, otherwise this value is omitted.ExpirationModelType
public KeyMetadata withExpirationModel(String expirationModel)
Specifies whether the CMK's key material expires. This value is present only when Origin
is
EXTERNAL
, otherwise this value is omitted.
expirationModel
- Specifies whether the CMK's key material expires. This value is present only when Origin
is
EXTERNAL
, otherwise this value is omitted.ExpirationModelType
public void setExpirationModel(ExpirationModelType expirationModel)
Specifies whether the CMK's key material expires. This value is present only when Origin
is
EXTERNAL
, otherwise this value is omitted.
expirationModel
- Specifies whether the CMK's key material expires. This value is present only when Origin
is
EXTERNAL
, otherwise this value is omitted.ExpirationModelType
public KeyMetadata withExpirationModel(ExpirationModelType expirationModel)
Specifies whether the CMK's key material expires. This value is present only when Origin
is
EXTERNAL
, otherwise this value is omitted.
expirationModel
- Specifies whether the CMK's key material expires. This value is present only when Origin
is
EXTERNAL
, otherwise this value is omitted.ExpirationModelType
public void setKeyManager(String keyManager)
The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed. For more information about the difference, see Customer Master Keys in the AWS Key Management Service Developer Guide.
keyManager
- The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed. For more
information about the difference, see Customer Master
Keys in the AWS Key Management Service Developer Guide.KeyManagerType
public String getKeyManager()
The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed. For more information about the difference, see Customer Master Keys in the AWS Key Management Service Developer Guide.
KeyManagerType
public KeyMetadata withKeyManager(String keyManager)
The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed. For more information about the difference, see Customer Master Keys in the AWS Key Management Service Developer Guide.
keyManager
- The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed. For more
information about the difference, see Customer Master
Keys in the AWS Key Management Service Developer Guide.KeyManagerType
public void setKeyManager(KeyManagerType keyManager)
The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed. For more information about the difference, see Customer Master Keys in the AWS Key Management Service Developer Guide.
keyManager
- The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed. For more
information about the difference, see Customer Master
Keys in the AWS Key Management Service Developer Guide.KeyManagerType
public KeyMetadata withKeyManager(KeyManagerType keyManager)
The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed. For more information about the difference, see Customer Master Keys in the AWS Key Management Service Developer Guide.
keyManager
- The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed. For more
information about the difference, see Customer Master
Keys in the AWS Key Management Service Developer Guide.KeyManagerType
public void setCustomerMasterKeySpec(String customerMasterKeySpec)
Describes the type of key material in the CMK.
customerMasterKeySpec
- Describes the type of key material in the CMK.CustomerMasterKeySpec
public String getCustomerMasterKeySpec()
Describes the type of key material in the CMK.
CustomerMasterKeySpec
public KeyMetadata withCustomerMasterKeySpec(String customerMasterKeySpec)
Describes the type of key material in the CMK.
customerMasterKeySpec
- Describes the type of key material in the CMK.CustomerMasterKeySpec
public void setCustomerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec)
Describes the type of key material in the CMK.
customerMasterKeySpec
- Describes the type of key material in the CMK.CustomerMasterKeySpec
public KeyMetadata withCustomerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec)
Describes the type of key material in the CMK.
customerMasterKeySpec
- Describes the type of key material in the CMK.CustomerMasterKeySpec
public List<String> getEncryptionAlgorithms()
The encryption algorithms that the CMK supports. You cannot use the CMK with other encryption algorithms within AWS KMS.
This value is present only when the KeyUsage
of the CMK is ENCRYPT_DECRYPT
.
This value is present only when the KeyUsage
of the CMK is ENCRYPT_DECRYPT
.
EncryptionAlgorithmSpec
public void setEncryptionAlgorithms(Collection<String> encryptionAlgorithms)
The encryption algorithms that the CMK supports. You cannot use the CMK with other encryption algorithms within AWS KMS.
This value is present only when the KeyUsage
of the CMK is ENCRYPT_DECRYPT
.
encryptionAlgorithms
- The encryption algorithms that the CMK supports. You cannot use the CMK with other encryption algorithms
within AWS KMS.
This value is present only when the KeyUsage
of the CMK is ENCRYPT_DECRYPT
.
EncryptionAlgorithmSpec
public KeyMetadata withEncryptionAlgorithms(String... encryptionAlgorithms)
The encryption algorithms that the CMK supports. You cannot use the CMK with other encryption algorithms within AWS KMS.
This value is present only when the KeyUsage
of the CMK is ENCRYPT_DECRYPT
.
NOTE: This method appends the values to the existing list (if any). Use
setEncryptionAlgorithms(java.util.Collection)
or withEncryptionAlgorithms(java.util.Collection)
if you want to override the existing values.
encryptionAlgorithms
- The encryption algorithms that the CMK supports. You cannot use the CMK with other encryption algorithms
within AWS KMS.
This value is present only when the KeyUsage
of the CMK is ENCRYPT_DECRYPT
.
EncryptionAlgorithmSpec
public KeyMetadata withEncryptionAlgorithms(Collection<String> encryptionAlgorithms)
The encryption algorithms that the CMK supports. You cannot use the CMK with other encryption algorithms within AWS KMS.
This value is present only when the KeyUsage
of the CMK is ENCRYPT_DECRYPT
.
encryptionAlgorithms
- The encryption algorithms that the CMK supports. You cannot use the CMK with other encryption algorithms
within AWS KMS.
This value is present only when the KeyUsage
of the CMK is ENCRYPT_DECRYPT
.
EncryptionAlgorithmSpec
public KeyMetadata withEncryptionAlgorithms(EncryptionAlgorithmSpec... encryptionAlgorithms)
The encryption algorithms that the CMK supports. You cannot use the CMK with other encryption algorithms within AWS KMS.
This value is present only when the KeyUsage
of the CMK is ENCRYPT_DECRYPT
.
encryptionAlgorithms
- The encryption algorithms that the CMK supports. You cannot use the CMK with other encryption algorithms
within AWS KMS.
This value is present only when the KeyUsage
of the CMK is ENCRYPT_DECRYPT
.
EncryptionAlgorithmSpec
public List<String> getSigningAlgorithms()
The signing algorithms that the CMK supports. You cannot use the CMK with other signing algorithms within AWS KMS.
This field appears only when the KeyUsage
of the CMK is SIGN_VERIFY
.
This field appears only when the KeyUsage
of the CMK is SIGN_VERIFY
.
SigningAlgorithmSpec
public void setSigningAlgorithms(Collection<String> signingAlgorithms)
The signing algorithms that the CMK supports. You cannot use the CMK with other signing algorithms within AWS KMS.
This field appears only when the KeyUsage
of the CMK is SIGN_VERIFY
.
signingAlgorithms
- The signing algorithms that the CMK supports. You cannot use the CMK with other signing algorithms within
AWS KMS.
This field appears only when the KeyUsage
of the CMK is SIGN_VERIFY
.
SigningAlgorithmSpec
public KeyMetadata withSigningAlgorithms(String... signingAlgorithms)
The signing algorithms that the CMK supports. You cannot use the CMK with other signing algorithms within AWS KMS.
This field appears only when the KeyUsage
of the CMK is SIGN_VERIFY
.
NOTE: This method appends the values to the existing list (if any). Use
setSigningAlgorithms(java.util.Collection)
or withSigningAlgorithms(java.util.Collection)
if
you want to override the existing values.
signingAlgorithms
- The signing algorithms that the CMK supports. You cannot use the CMK with other signing algorithms within
AWS KMS.
This field appears only when the KeyUsage
of the CMK is SIGN_VERIFY
.
SigningAlgorithmSpec
public KeyMetadata withSigningAlgorithms(Collection<String> signingAlgorithms)
The signing algorithms that the CMK supports. You cannot use the CMK with other signing algorithms within AWS KMS.
This field appears only when the KeyUsage
of the CMK is SIGN_VERIFY
.
signingAlgorithms
- The signing algorithms that the CMK supports. You cannot use the CMK with other signing algorithms within
AWS KMS.
This field appears only when the KeyUsage
of the CMK is SIGN_VERIFY
.
SigningAlgorithmSpec
public KeyMetadata withSigningAlgorithms(SigningAlgorithmSpec... signingAlgorithms)
The signing algorithms that the CMK supports. You cannot use the CMK with other signing algorithms within AWS KMS.
This field appears only when the KeyUsage
of the CMK is SIGN_VERIFY
.
signingAlgorithms
- The signing algorithms that the CMK supports. You cannot use the CMK with other signing algorithms within
AWS KMS.
This field appears only when the KeyUsage
of the CMK is SIGN_VERIFY
.
SigningAlgorithmSpec
public void setMultiRegion(Boolean multiRegion)
Indicates whether the CMK is a multi-Region (True
) or regional (False
) key. This value
is True
for multi-Region primary and replica CMKs and False
for regional CMKs.
For more information about multi-Region keys, see Using multi-Region keys in the AWS Key Management Service Developer Guide.
multiRegion
- Indicates whether the CMK is a multi-Region (True
) or regional (False
) key. This
value is True
for multi-Region primary and replica CMKs and False
for regional
CMKs.
For more information about multi-Region keys, see Using multi-Region keys in the AWS Key Management Service Developer Guide.
public Boolean getMultiRegion()
Indicates whether the CMK is a multi-Region (True
) or regional (False
) key. This value
is True
for multi-Region primary and replica CMKs and False
for regional CMKs.
For more information about multi-Region keys, see Using multi-Region keys in the AWS Key Management Service Developer Guide.
True
) or regional (False
) key.
This value is True
for multi-Region primary and replica CMKs and False
for
regional CMKs.
For more information about multi-Region keys, see Using multi-Region keys in the AWS Key Management Service Developer Guide.
public KeyMetadata withMultiRegion(Boolean multiRegion)
Indicates whether the CMK is a multi-Region (True
) or regional (False
) key. This value
is True
for multi-Region primary and replica CMKs and False
for regional CMKs.
For more information about multi-Region keys, see Using multi-Region keys in the AWS Key Management Service Developer Guide.
multiRegion
- Indicates whether the CMK is a multi-Region (True
) or regional (False
) key. This
value is True
for multi-Region primary and replica CMKs and False
for regional
CMKs.
For more information about multi-Region keys, see Using multi-Region keys in the AWS Key Management Service Developer Guide.
public Boolean isMultiRegion()
Indicates whether the CMK is a multi-Region (True
) or regional (False
) key. This value
is True
for multi-Region primary and replica CMKs and False
for regional CMKs.
For more information about multi-Region keys, see Using multi-Region keys in the AWS Key Management Service Developer Guide.
True
) or regional (False
) key.
This value is True
for multi-Region primary and replica CMKs and False
for
regional CMKs.
For more information about multi-Region keys, see Using multi-Region keys in the AWS Key Management Service Developer Guide.
public void setMultiRegionConfiguration(MultiRegionConfiguration multiRegionConfiguration)
Lists the primary and replica CMKs in same multi-Region CMK. This field is present only when the value of the
MultiRegion
field is True
.
For more information about any listed CMK, use the DescribeKey operation.
MultiRegionKeyType
indicates whether the CMK is a PRIMARY
or REPLICA
key.
PrimaryKey
displays the key ARN and Region of the primary key. This field displays the current CMK
if it is the primary key.
ReplicaKeys
displays the key ARNs and Regions of all replica keys. This field includes the current
CMK if it is a replica key.
multiRegionConfiguration
- Lists the primary and replica CMKs in same multi-Region CMK. This field is present only when the value of
the MultiRegion
field is True
.
For more information about any listed CMK, use the DescribeKey operation.
MultiRegionKeyType
indicates whether the CMK is a PRIMARY
or
REPLICA
key.
PrimaryKey
displays the key ARN and Region of the primary key. This field displays the
current CMK if it is the primary key.
ReplicaKeys
displays the key ARNs and Regions of all replica keys. This field includes the
current CMK if it is a replica key.
public MultiRegionConfiguration getMultiRegionConfiguration()
Lists the primary and replica CMKs in same multi-Region CMK. This field is present only when the value of the
MultiRegion
field is True
.
For more information about any listed CMK, use the DescribeKey operation.
MultiRegionKeyType
indicates whether the CMK is a PRIMARY
or REPLICA
key.
PrimaryKey
displays the key ARN and Region of the primary key. This field displays the current CMK
if it is the primary key.
ReplicaKeys
displays the key ARNs and Regions of all replica keys. This field includes the current
CMK if it is a replica key.
MultiRegion
field is True
.
For more information about any listed CMK, use the DescribeKey operation.
MultiRegionKeyType
indicates whether the CMK is a PRIMARY
or
REPLICA
key.
PrimaryKey
displays the key ARN and Region of the primary key. This field displays the
current CMK if it is the primary key.
ReplicaKeys
displays the key ARNs and Regions of all replica keys. This field includes the
current CMK if it is a replica key.
public KeyMetadata withMultiRegionConfiguration(MultiRegionConfiguration multiRegionConfiguration)
Lists the primary and replica CMKs in same multi-Region CMK. This field is present only when the value of the
MultiRegion
field is True
.
For more information about any listed CMK, use the DescribeKey operation.
MultiRegionKeyType
indicates whether the CMK is a PRIMARY
or REPLICA
key.
PrimaryKey
displays the key ARN and Region of the primary key. This field displays the current CMK
if it is the primary key.
ReplicaKeys
displays the key ARNs and Regions of all replica keys. This field includes the current
CMK if it is a replica key.
multiRegionConfiguration
- Lists the primary and replica CMKs in same multi-Region CMK. This field is present only when the value of
the MultiRegion
field is True
.
For more information about any listed CMK, use the DescribeKey operation.
MultiRegionKeyType
indicates whether the CMK is a PRIMARY
or
REPLICA
key.
PrimaryKey
displays the key ARN and Region of the primary key. This field displays the
current CMK if it is the primary key.
ReplicaKeys
displays the key ARNs and Regions of all replica keys. This field includes the
current CMK if it is a replica key.
public void setPendingDeletionWindowInDays(Integer pendingDeletionWindowInDays)
The waiting period before the primary key in a multi-Region key is deleted. This waiting period begins when the
last of its replica keys is deleted. This value is present only when the KeyState
of the CMK is
PendingReplicaDeletion
. That indicates that the CMK is the primary key in a multi-Region key, it is
scheduled for deletion, and it still has existing replica keys.
When a regional CMK or a replica key in a multi-Region key is scheduled for deletion, its deletion date is
displayed in the DeletionDate
field. However, when the primary key in a multi-Region key is
scheduled for deletion, its waiting period doesn't begin until all of its replica keys are deleted. This value
displays that waiting period. When the last replica key in the multi-Region key is deleted, the
KeyState
of the scheduled primary key changes from PendingReplicaDeletion
to
PendingDeletion
and the deletion date appears in the DeletionDate
field.
pendingDeletionWindowInDays
- The waiting period before the primary key in a multi-Region key is deleted. This waiting period begins
when the last of its replica keys is deleted. This value is present only when the KeyState
of
the CMK is PendingReplicaDeletion
. That indicates that the CMK is the primary key in a
multi-Region key, it is scheduled for deletion, and it still has existing replica keys.
When a regional CMK or a replica key in a multi-Region key is scheduled for deletion, its deletion date is
displayed in the DeletionDate
field. However, when the primary key in a multi-Region key is
scheduled for deletion, its waiting period doesn't begin until all of its replica keys are deleted. This
value displays that waiting period. When the last replica key in the multi-Region key is deleted, the
KeyState
of the scheduled primary key changes from PendingReplicaDeletion
to
PendingDeletion
and the deletion date appears in the DeletionDate
field.
public Integer getPendingDeletionWindowInDays()
The waiting period before the primary key in a multi-Region key is deleted. This waiting period begins when the
last of its replica keys is deleted. This value is present only when the KeyState
of the CMK is
PendingReplicaDeletion
. That indicates that the CMK is the primary key in a multi-Region key, it is
scheduled for deletion, and it still has existing replica keys.
When a regional CMK or a replica key in a multi-Region key is scheduled for deletion, its deletion date is
displayed in the DeletionDate
field. However, when the primary key in a multi-Region key is
scheduled for deletion, its waiting period doesn't begin until all of its replica keys are deleted. This value
displays that waiting period. When the last replica key in the multi-Region key is deleted, the
KeyState
of the scheduled primary key changes from PendingReplicaDeletion
to
PendingDeletion
and the deletion date appears in the DeletionDate
field.
KeyState
of the CMK is PendingReplicaDeletion
. That indicates that the CMK is the primary key in a
multi-Region key, it is scheduled for deletion, and it still has existing replica keys.
When a regional CMK or a replica key in a multi-Region key is scheduled for deletion, its deletion date
is displayed in the DeletionDate
field. However, when the primary key in a multi-Region key
is scheduled for deletion, its waiting period doesn't begin until all of its replica keys are deleted.
This value displays that waiting period. When the last replica key in the multi-Region key is deleted,
the KeyState
of the scheduled primary key changes from PendingReplicaDeletion
to PendingDeletion
and the deletion date appears in the DeletionDate
field.
public KeyMetadata withPendingDeletionWindowInDays(Integer pendingDeletionWindowInDays)
The waiting period before the primary key in a multi-Region key is deleted. This waiting period begins when the
last of its replica keys is deleted. This value is present only when the KeyState
of the CMK is
PendingReplicaDeletion
. That indicates that the CMK is the primary key in a multi-Region key, it is
scheduled for deletion, and it still has existing replica keys.
When a regional CMK or a replica key in a multi-Region key is scheduled for deletion, its deletion date is
displayed in the DeletionDate
field. However, when the primary key in a multi-Region key is
scheduled for deletion, its waiting period doesn't begin until all of its replica keys are deleted. This value
displays that waiting period. When the last replica key in the multi-Region key is deleted, the
KeyState
of the scheduled primary key changes from PendingReplicaDeletion
to
PendingDeletion
and the deletion date appears in the DeletionDate
field.
pendingDeletionWindowInDays
- The waiting period before the primary key in a multi-Region key is deleted. This waiting period begins
when the last of its replica keys is deleted. This value is present only when the KeyState
of
the CMK is PendingReplicaDeletion
. That indicates that the CMK is the primary key in a
multi-Region key, it is scheduled for deletion, and it still has existing replica keys.
When a regional CMK or a replica key in a multi-Region key is scheduled for deletion, its deletion date is
displayed in the DeletionDate
field. However, when the primary key in a multi-Region key is
scheduled for deletion, its waiting period doesn't begin until all of its replica keys are deleted. This
value displays that waiting period. When the last replica key in the multi-Region key is deleted, the
KeyState
of the scheduled primary key changes from PendingReplicaDeletion
to
PendingDeletion
and the deletion date appears in the DeletionDate
field.
public String toString()
toString
in class Object
Object.toString()
public KeyMetadata clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.