@Generated(value="software.amazon.awssdk:codegen") public final class GenerateDataKeyResponse extends KmsResponse implements ToCopyableBuilder<GenerateDataKeyResponse.Builder,GenerateDataKeyResponse>
Modifier and Type | Class and Description |
---|---|
static interface |
GenerateDataKeyResponse.Builder |
Modifier and Type | Method and Description |
---|---|
static GenerateDataKeyResponse.Builder |
builder() |
SdkBytes |
ciphertextBlob()
The encrypted data encryption key.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
keyId()
The identifier of the CMK under which the data encryption key was generated and encrypted.
|
SdkBytes |
plaintext()
The data encryption key.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GenerateDataKeyResponse.Builder> |
serializableBuilderClass() |
GenerateDataKeyResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadata
sdkHttpResponse
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public SdkBytes ciphertextBlob()
The encrypted data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded.
public SdkBytes plaintext()
The data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded. Use this data key for local encryption and decryption, then remove it from memory as soon as possible.
public String keyId()
The identifier of the CMK under which the data encryption key was generated and encrypted.
public GenerateDataKeyResponse.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<GenerateDataKeyResponse.Builder,GenerateDataKeyResponse>
toBuilder
in class AwsResponse
public static GenerateDataKeyResponse.Builder builder()
public static Class<? extends GenerateDataKeyResponse.Builder> serializableBuilderClass()
public String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkResponse
Copyright © 2019. All rights reserved.