@Generated(value="software.amazon.awssdk:codegen") public final class EncryptionKey extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EncryptionKey.Builder,EncryptionKey>
Represents information about the key used to encrypt data in the artifact store, such as an AWS Key Management Service (AWS KMS) key.
| Modifier and Type | Class and Description |
|---|---|
static interface |
EncryptionKey.Builder |
| Modifier and Type | Method and Description |
|---|---|
static EncryptionKey.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The ID used to identify the key.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends EncryptionKey.Builder> |
serializableBuilderClass() |
EncryptionKey.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
EncryptionKeyType |
type()
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key.
|
String |
typeAsString()
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The ID used to identify the key. For an AWS KMS key, you can use the key ID, the key ARN, or the alias ARN.
Aliases are recognized only in the account that created the customer master key (CMK). For cross-account actions, you can only use the key ID or key ARN to identify the key.
Aliases are recognized only in the account that created the customer master key (CMK). For cross-account actions, you can only use the key ID or key ARN to identify the key.
public final EncryptionKeyType type()
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.
If the service returns an enum value that is not available in the current SDK version, type will return
EncryptionKeyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
EncryptionKeyTypepublic final String typeAsString()
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.
If the service returns an enum value that is not available in the current SDK version, type will return
EncryptionKeyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
EncryptionKeyTypepublic EncryptionKey.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<EncryptionKey.Builder,EncryptionKey>public static EncryptionKey.Builder builder()
public static Class<? extends EncryptionKey.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.