@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) |
<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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
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.
|
copy
public String id()
The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.
public 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()
.
EncryptionKeyType
public 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()
.
EncryptionKeyType
public EncryptionKey.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<EncryptionKey.Builder,EncryptionKey>
public static EncryptionKey.Builder builder()
public static Class<? extends EncryptionKey.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.