@Generated(value="software.amazon.awssdk:codegen") public class EncryptionKey extends Object implements StructuredPojo, 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.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
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.
|
copypublic 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().
EncryptionKeyTypepublic 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()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<EncryptionKey.Builder,EncryptionKey>public static EncryptionKey.Builder builder()
public static Class<? extends EncryptionKey.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.