@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsKmsKeyDetails extends Object implements Serializable, Cloneable, StructuredPojo
Contains metadata about an KMS key.
Constructor and Description |
---|
AwsKmsKeyDetails() |
Modifier and Type | Method and Description |
---|---|
AwsKmsKeyDetails |
clone() |
boolean |
equals(Object obj) |
String |
getAWSAccountId()
The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
|
Double |
getCreationDate()
Indicates when the KMS key was created.
|
String |
getDescription()
A description of the KMS key.
|
String |
getKeyId()
The globally unique identifier for the KMS key.
|
String |
getKeyManager()
The manager of the KMS key.
|
Boolean |
getKeyRotationStatus()
Whether the key has key rotation enabled.
|
String |
getKeyState()
The state of the KMS key.
|
String |
getOrigin()
The source of the KMS key material.
|
int |
hashCode() |
Boolean |
isKeyRotationStatus()
Whether the key has key rotation enabled.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAWSAccountId(String aWSAccountId)
The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
|
void |
setCreationDate(Double creationDate)
Indicates when the KMS key was created.
|
void |
setDescription(String description)
A description of the KMS key.
|
void |
setKeyId(String keyId)
The globally unique identifier for the KMS key.
|
void |
setKeyManager(String keyManager)
The manager of the KMS key.
|
void |
setKeyRotationStatus(Boolean keyRotationStatus)
Whether the key has key rotation enabled.
|
void |
setKeyState(String keyState)
The state of the KMS key.
|
void |
setOrigin(String origin)
The source of the KMS key material.
|
String |
toString()
Returns a string representation of this object.
|
AwsKmsKeyDetails |
withAWSAccountId(String aWSAccountId)
The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
|
AwsKmsKeyDetails |
withCreationDate(Double creationDate)
Indicates when the KMS key was created.
|
AwsKmsKeyDetails |
withDescription(String description)
A description of the KMS key.
|
AwsKmsKeyDetails |
withKeyId(String keyId)
The globally unique identifier for the KMS key.
|
AwsKmsKeyDetails |
withKeyManager(String keyManager)
The manager of the KMS key.
|
AwsKmsKeyDetails |
withKeyRotationStatus(Boolean keyRotationStatus)
Whether the key has key rotation enabled.
|
AwsKmsKeyDetails |
withKeyState(String keyState)
The state of the KMS key.
|
AwsKmsKeyDetails |
withOrigin(String origin)
The source of the KMS key material.
|
public void setAWSAccountId(String aWSAccountId)
The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
aWSAccountId
- The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.public String getAWSAccountId()
The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
public AwsKmsKeyDetails withAWSAccountId(String aWSAccountId)
The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
aWSAccountId
- The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.public void setCreationDate(Double creationDate)
Indicates when the KMS key was created.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
creationDate
- Indicates when the KMS key was created.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public Double getCreationDate()
Indicates when the KMS key was created.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public AwsKmsKeyDetails withCreationDate(Double creationDate)
Indicates when the KMS key was created.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
creationDate
- Indicates when the KMS key was created.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public void setKeyId(String keyId)
The globally unique identifier for the KMS key.
keyId
- The globally unique identifier for the KMS key.public String getKeyId()
The globally unique identifier for the KMS key.
public AwsKmsKeyDetails withKeyId(String keyId)
The globally unique identifier for the KMS key.
keyId
- The globally unique identifier for the KMS key.public void setKeyManager(String keyManager)
The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or Amazon Web Services managed.
keyManager
- The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or
Amazon Web Services managed.public String getKeyManager()
The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or Amazon Web Services managed.
public AwsKmsKeyDetails withKeyManager(String keyManager)
The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or Amazon Web Services managed.
keyManager
- The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or
Amazon Web Services managed.public void setKeyState(String keyState)
The state of the KMS key. Valid values are as follows:
Disabled
Enabled
PendingDeletion
PendingImport
Unavailable
keyState
- The state of the KMS key. Valid values are as follows:
Disabled
Enabled
PendingDeletion
PendingImport
Unavailable
public String getKeyState()
The state of the KMS key. Valid values are as follows:
Disabled
Enabled
PendingDeletion
PendingImport
Unavailable
Disabled
Enabled
PendingDeletion
PendingImport
Unavailable
public AwsKmsKeyDetails withKeyState(String keyState)
The state of the KMS key. Valid values are as follows:
Disabled
Enabled
PendingDeletion
PendingImport
Unavailable
keyState
- The state of the KMS key. Valid values are as follows:
Disabled
Enabled
PendingDeletion
PendingImport
Unavailable
public void setOrigin(String origin)
The source of the KMS key material.
When this value is AWS_KMS
, KMS created the key material.
When this value is EXTERNAL
, the key material was imported from your existing key management
infrastructure or the KMS key lacks key material.
When this value is AWS_CLOUDHSM
, the key material was created in the CloudHSM cluster associated
with a custom key store.
origin
- The source of the KMS key material.
When this value is AWS_KMS
, KMS created the key material.
When this value is EXTERNAL
, the key material was imported from your existing key management
infrastructure or the KMS key lacks key material.
When this value is AWS_CLOUDHSM
, the key material was created in the CloudHSM cluster
associated with a custom key store.
public String getOrigin()
The source of the KMS key material.
When this value is AWS_KMS
, KMS created the key material.
When this value is EXTERNAL
, the key material was imported from your existing key management
infrastructure or the KMS key lacks key material.
When this value is AWS_CLOUDHSM
, the key material was created in the CloudHSM cluster associated
with a custom key store.
When this value is AWS_KMS
, KMS created the key material.
When this value is EXTERNAL
, the key material was imported from your existing key management
infrastructure or the KMS key lacks key material.
When this value is AWS_CLOUDHSM
, the key material was created in the CloudHSM cluster
associated with a custom key store.
public AwsKmsKeyDetails withOrigin(String origin)
The source of the KMS key material.
When this value is AWS_KMS
, KMS created the key material.
When this value is EXTERNAL
, the key material was imported from your existing key management
infrastructure or the KMS key lacks key material.
When this value is AWS_CLOUDHSM
, the key material was created in the CloudHSM cluster associated
with a custom key store.
origin
- The source of the KMS key material.
When this value is AWS_KMS
, KMS created the key material.
When this value is EXTERNAL
, the key material was imported from your existing key management
infrastructure or the KMS key lacks key material.
When this value is AWS_CLOUDHSM
, the key material was created in the CloudHSM cluster
associated with a custom key store.
public void setDescription(String description)
A description of the KMS key.
description
- A description of the KMS key.public String getDescription()
A description of the KMS key.
public AwsKmsKeyDetails withDescription(String description)
A description of the KMS key.
description
- A description of the KMS key.public void setKeyRotationStatus(Boolean keyRotationStatus)
Whether the key has key rotation enabled.
keyRotationStatus
- Whether the key has key rotation enabled.public Boolean getKeyRotationStatus()
Whether the key has key rotation enabled.
public AwsKmsKeyDetails withKeyRotationStatus(Boolean keyRotationStatus)
Whether the key has key rotation enabled.
keyRotationStatus
- Whether the key has key rotation enabled.public Boolean isKeyRotationStatus()
Whether the key has key rotation enabled.
public String toString()
toString
in class Object
Object.toString()
public AwsKmsKeyDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.