@Generated(value="software.amazon.awssdk:codegen") public final class AwsKmsKeyDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsKmsKeyDetails.Builder,AwsKmsKeyDetails>
Contains metadata about an KMS key.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsKmsKeyDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
awsAccountId()
The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
|
static AwsKmsKeyDetails.Builder |
builder() |
Double |
creationDate()
Indicates when the KMS key was created.
|
String |
description()
A description of the KMS key.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
keyId()
The globally unique identifier for the KMS key.
|
String |
keyManager()
The manager of the KMS key.
|
Boolean |
keyRotationStatus()
Whether the key has key rotation enabled.
|
String |
keyState()
The state of the KMS key.
|
String |
origin()
The source of the KMS key material.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AwsKmsKeyDetails.Builder> |
serializableBuilderClass() |
AwsKmsKeyDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String awsAccountId()
The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
public final Double creationDate()
Indicates when the KMS key was created.
Uses the date-time format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
separated by T. 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, and date and time should be separated by T. For
example, 2020-03-22T13:22:13.933Z.
public final String keyId()
The globally unique identifier for the KMS key.
public final 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.
public final String keyState()
The state of the KMS key. Valid values are as follows:
Disabled
Enabled
PendingDeletion
PendingImport
Unavailable
Disabled
Enabled
PendingDeletion
PendingImport
Unavailable
public final 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.
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 final String description()
A description of the KMS key.
public final Boolean keyRotationStatus()
Whether the key has key rotation enabled.
public AwsKmsKeyDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AwsKmsKeyDetails.Builder,AwsKmsKeyDetails>public static AwsKmsKeyDetails.Builder builder()
public static Class<? extends AwsKmsKeyDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.