ToCopyableBuilder<GetParametersForImportResponse.Builder,GetParametersForImportResponse>
@Generated("software.amazon.awssdk:codegen") public class GetParametersForImportResponse extends AmazonWebServiceResult<ResponseMetadata> implements ToCopyableBuilder<GetParametersForImportResponse.Builder,GetParametersForImportResponse>
Modifier and Type | Class | Description |
---|---|---|
static interface |
GetParametersForImportResponse.Builder |
Modifier and Type | Method | Description |
---|---|---|
static GetParametersForImportResponse.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
ByteBuffer |
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.
|
Date |
parametersValidTo() |
The time at which the import token and public key are no longer valid.
|
ByteBuffer |
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() |
setSdkHttpMetadata, setSdkResponseMetadata
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 ByteBuffer importToken()
The import token to send in a subsequent ImportKeyMaterial request.
ByteBuffer
s 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 publicKey()
The public key to use to encrypt the key material before importing it with ImportKeyMaterial.
ByteBuffer
s 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 Date 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
retrieve new ones.
GetParametersForImport
request to retrieve new ones.public GetParametersForImportResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetParametersForImportResponse.Builder,GetParametersForImportResponse>
public static GetParametersForImportResponse.Builder builder()
public static Class<? extends GetParametersForImportResponse.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.