@Generated(value="software.amazon.awssdk:codegen") public final class GetParametersForImportResponse extends KmsResponse implements ToCopyableBuilder<GetParametersForImportResponse.Builder,GetParametersForImportResponse>
Modifier and Type | Class and Description |
---|---|
static interface |
GetParametersForImportResponse.Builder |
Modifier and Type | Method and Description |
---|---|
static GetParametersForImportResponse.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse . |
int |
hashCode() |
SdkBytes |
importToken()
The import token to send in a subsequent ImportKeyMaterial request.
|
String |
keyId()
The identifier of the CMK to use in a subsequent ImportKeyMaterial request.
|
Instant |
parametersValidTo()
The time at which the import token and public key are no longer valid.
|
SdkBytes |
publicKey()
The public key to use to encrypt the key material before importing it with ImportKeyMaterial.
|
static Class<? extends GetParametersForImportResponse.Builder> |
serializableBuilderClass() |
GetParametersForImportResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
sdkHttpResponse
copy
public String keyId()
The identifier of the CMK to use in a subsequent ImportKeyMaterial request. This is the same CMK specified
in the GetParametersForImport
request.
GetParametersForImport
request.public SdkBytes importToken()
The import token to send in a subsequent ImportKeyMaterial request.
public SdkBytes publicKey()
The public key to use to encrypt the key material before importing it with ImportKeyMaterial.
public Instant parametersValidTo()
The time at which the import token and public key are no longer valid. After this time, you cannot use them to
make an ImportKeyMaterial request and you must send another GetParametersForImport
request to
get new ones.
GetParametersForImport
request to get new ones.public GetParametersForImportResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetParametersForImportResponse.Builder,GetParametersForImportResponse>
toBuilder
in class AwsResponse
public static GetParametersForImportResponse.Builder builder()
public static Class<? extends GetParametersForImportResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponse
SdkResponse
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkResponse
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.