@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()
The date and time when the CMK was created.
|
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)
The date and time when the CMK was created.
|
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)
The date and time when the CMK was created.
|
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)
The date and time when the CMK was created.
creationDate
- The date and time when the CMK was created.public Double getCreationDate()
The date and time when the CMK was created.
public AwsKmsKeyDetails withCreationDate(Double creationDate)
The date and time when the CMK was created.
creationDate
- The date and time when the CMK was created.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 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.