@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsKmsKeyDetails extends Object implements Serializable, Cloneable, StructuredPojo
Contains metadata about a customer master key (CMK).
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 AWS account that owns the CMK.
|
Double |
getCreationDate()
Indicates when the CMK was created.
|
String |
getDescription()
A description of the key.
|
String |
getKeyId()
The globally unique identifier for the CMK.
|
String |
getKeyManager()
The manager of the CMK.
|
String |
getKeyState()
The state of the CMK.
|
String |
getOrigin()
The source of the CMK's key material.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAWSAccountId(String aWSAccountId)
The twelve-digit account ID of the AWS account that owns the CMK.
|
void |
setCreationDate(Double creationDate)
Indicates when the CMK was created.
|
void |
setDescription(String description)
A description of the key.
|
void |
setKeyId(String keyId)
The globally unique identifier for the CMK.
|
void |
setKeyManager(String keyManager)
The manager of the CMK.
|
void |
setKeyState(String keyState)
The state of the CMK.
|
void |
setOrigin(String origin)
The source of the CMK's key material.
|
String |
toString()
Returns a string representation of this object.
|
AwsKmsKeyDetails |
withAWSAccountId(String aWSAccountId)
The twelve-digit account ID of the AWS account that owns the CMK.
|
AwsKmsKeyDetails |
withCreationDate(Double creationDate)
Indicates when the CMK was created.
|
AwsKmsKeyDetails |
withDescription(String description)
A description of the key.
|
AwsKmsKeyDetails |
withKeyId(String keyId)
The globally unique identifier for the CMK.
|
AwsKmsKeyDetails |
withKeyManager(String keyManager)
The manager of the CMK.
|
AwsKmsKeyDetails |
withKeyState(String keyState)
The state of the CMK.
|
AwsKmsKeyDetails |
withOrigin(String origin)
The source of the CMK's key material.
|
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 AwsKmsKeyDetails 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 setCreationDate(Double creationDate)
Indicates when the CMK was created.
Uses the date-time
format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
2020-03-22T13:22:13.933Z
.
creationDate
- Indicates when the CMK was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
public Double getCreationDate()
Indicates when the CMK was created.
Uses the date-time
format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
2020-03-22T13:22:13.933Z
.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
public AwsKmsKeyDetails withCreationDate(Double creationDate)
Indicates when the CMK was created.
Uses the date-time
format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
2020-03-22T13:22:13.933Z
.
creationDate
- Indicates when the CMK was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
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 AwsKmsKeyDetails withKeyId(String keyId)
The globally unique identifier for the CMK.
keyId
- The globally unique identifier for the CMK.public void setKeyManager(String keyManager)
The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed.
keyManager
- The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed.public String getKeyManager()
The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed.
public AwsKmsKeyDetails withKeyManager(String keyManager)
The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed.
keyManager
- The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed.public void setKeyState(String keyState)
The state of the CMK.
keyState
- The state of the CMK.public String getKeyState()
The state of the CMK.
public AwsKmsKeyDetails withKeyState(String keyState)
The state of the CMK.
keyState
- The state of the CMK.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.
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.
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.
public AwsKmsKeyDetails 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.
public void setDescription(String description)
A description of the key.
description
- A description of the key.public String getDescription()
A description of the key.
public AwsKmsKeyDetails withDescription(String description)
A description of the key.
description
- A description of the key.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.