ToCopyableBuilder<GenerateDataKeyResponse.Builder,GenerateDataKeyResponse>@Generated("software.amazon.awssdk:codegen") public class GenerateDataKeyResponse extends AmazonWebServiceResult<ResponseMetadata> implements ToCopyableBuilder<GenerateDataKeyResponse.Builder,GenerateDataKeyResponse>
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
GenerateDataKeyResponse.Builder |
| Modifier and Type | Method | Description |
|---|---|---|
static GenerateDataKeyResponse.Builder |
builder() |
|
ByteBuffer |
ciphertextBlob() |
The encrypted data encryption key.
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
String |
keyId() |
The identifier of the CMK under which the data encryption key was generated and encrypted.
|
ByteBuffer |
plaintext() |
The data encryption key.
|
static Class<? extends GenerateDataKeyResponse.Builder> |
serializableBuilderClass() |
|
GenerateDataKeyResponse.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
setSdkHttpMetadata, setSdkResponseMetadatapublic ByteBuffer ciphertextBlob()
The encrypted data encryption key.
ByteBuffers are stateful. Calling their get methods changes their position. We recommend
using ByteBuffer.asReadOnlyBuffer() to create a read-only view of the buffer with an independent
position, and calling get methods on this rather than directly on the returned ByteBuffer
. Doing so will ensure that anyone else using the ByteBuffer will not be affected by changes to the
position.
public ByteBuffer plaintext()
The data encryption key. Use this data key for local encryption and decryption, then remove it from memory as soon as possible.
ByteBuffers are stateful. Calling their get methods changes their position. We recommend
using ByteBuffer.asReadOnlyBuffer() to create a read-only view of the buffer with an independent
position, and calling get methods on this rather than directly on the returned ByteBuffer
. Doing so will ensure that anyone else using the ByteBuffer will not be affected by changes to the
position.
public String keyId()
The identifier of the CMK under which the data encryption key was generated and encrypted.
public GenerateDataKeyResponse.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<GenerateDataKeyResponse.Builder,GenerateDataKeyResponse>public static GenerateDataKeyResponse.Builder builder()
public static Class<? extends GenerateDataKeyResponse.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.