@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetParametersForImportResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetParametersForImportResult() |
Modifier and Type | Method and Description |
---|---|
GetParametersForImportResult |
clone() |
boolean |
equals(Object obj) |
ByteBuffer |
getImportToken()
The import token to send in a subsequent ImportKeyMaterial request.
|
String |
getKeyId()
The Amazon Resource Name (key ARN) of the KMS
key to use in a subsequent ImportKeyMaterial request.
|
Date |
getParametersValidTo()
The time at which the import token and public key are no longer valid.
|
ByteBuffer |
getPublicKey()
The public key to use to encrypt the key material before importing it with ImportKeyMaterial.
|
int |
hashCode() |
void |
setImportToken(ByteBuffer importToken)
The import token to send in a subsequent ImportKeyMaterial request.
|
void |
setKeyId(String keyId)
The Amazon Resource Name (key ARN) of the KMS
key to use in a subsequent ImportKeyMaterial request.
|
void |
setParametersValidTo(Date parametersValidTo)
The time at which the import token and public key are no longer valid.
|
void |
setPublicKey(ByteBuffer publicKey)
The public key to use to encrypt the key material before importing it with ImportKeyMaterial.
|
String |
toString()
Returns a string representation of this object.
|
GetParametersForImportResult |
withImportToken(ByteBuffer importToken)
The import token to send in a subsequent ImportKeyMaterial request.
|
GetParametersForImportResult |
withKeyId(String keyId)
The Amazon Resource Name (key ARN) of the KMS
key to use in a subsequent ImportKeyMaterial request.
|
GetParametersForImportResult |
withParametersValidTo(Date parametersValidTo)
The time at which the import token and public key are no longer valid.
|
GetParametersForImportResult |
withPublicKey(ByteBuffer publicKey)
The public key to use to encrypt the key material before importing it with ImportKeyMaterial.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setKeyId(String keyId)
The Amazon Resource Name (key ARN) of the KMS
key to use in a subsequent ImportKeyMaterial request. This is the same KMS key specified in the
GetParametersForImport
request.
keyId
- The Amazon Resource Name (key ARN) of
the KMS key to use in a subsequent ImportKeyMaterial request. This is the same KMS key specified in
the GetParametersForImport
request.public String getKeyId()
The Amazon Resource Name (key ARN) of the KMS
key to use in a subsequent ImportKeyMaterial request. This is the same KMS key specified in the
GetParametersForImport
request.
GetParametersForImport
request.public GetParametersForImportResult withKeyId(String keyId)
The Amazon Resource Name (key ARN) of the KMS
key to use in a subsequent ImportKeyMaterial request. This is the same KMS key specified in the
GetParametersForImport
request.
keyId
- The Amazon Resource Name (key ARN) of
the KMS key to use in a subsequent ImportKeyMaterial request. This is the same KMS key specified in
the GetParametersForImport
request.public void setImportToken(ByteBuffer importToken)
The import token to send in a subsequent ImportKeyMaterial request.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
importToken
- The import token to send in a subsequent ImportKeyMaterial request.public ByteBuffer getImportToken()
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 GetParametersForImportResult withImportToken(ByteBuffer importToken)
The import token to send in a subsequent ImportKeyMaterial request.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
importToken
- The import token to send in a subsequent ImportKeyMaterial request.public void setPublicKey(ByteBuffer publicKey)
The public key to use to encrypt the key material before importing it with ImportKeyMaterial.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
publicKey
- The public key to use to encrypt the key material before importing it with ImportKeyMaterial.public ByteBuffer getPublicKey()
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 GetParametersForImportResult withPublicKey(ByteBuffer publicKey)
The public key to use to encrypt the key material before importing it with ImportKeyMaterial.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
publicKey
- The public key to use to encrypt the key material before importing it with ImportKeyMaterial.public void setParametersValidTo(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
get new ones.
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.public Date getParametersValidTo()
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 GetParametersForImportResult withParametersValidTo(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
get new ones.
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.public String toString()
toString
in class Object
Object.toString()
public GetParametersForImportResult clone()
Copyright © 2023. All rights reserved.