@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImportKeyMaterialRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description | 
|---|
ImportKeyMaterialRequest()  | 
| Modifier and Type | Method and Description | 
|---|---|
ImportKeyMaterialRequest | 
clone()  | 
boolean | 
equals(Object obj)  | 
ByteBuffer | 
getEncryptedKeyMaterial()
 The encrypted key material to import. 
 | 
String | 
getExpirationModel()
 Specifies whether the key material expires. 
 | 
ByteBuffer | 
getImportToken()
 The import token that you received in the response to a previous GetParametersForImport request. 
 | 
String | 
getKeyId()
 The identifier of the symmetric CMK that receives the imported key material. 
 | 
Date | 
getValidTo()
 The time at which the imported key material expires. 
 | 
int | 
hashCode()  | 
void | 
setEncryptedKeyMaterial(ByteBuffer encryptedKeyMaterial)
 The encrypted key material to import. 
 | 
void | 
setExpirationModel(ExpirationModelType expirationModel)
 Specifies whether the key material expires. 
 | 
void | 
setExpirationModel(String expirationModel)
 Specifies whether the key material expires. 
 | 
void | 
setImportToken(ByteBuffer importToken)
 The import token that you received in the response to a previous GetParametersForImport request. 
 | 
void | 
setKeyId(String keyId)
 The identifier of the symmetric CMK that receives the imported key material. 
 | 
void | 
setValidTo(Date validTo)
 The time at which the imported key material expires. 
 | 
String | 
toString()
Returns a string representation of this object. 
 | 
ImportKeyMaterialRequest | 
withEncryptedKeyMaterial(ByteBuffer encryptedKeyMaterial)
 The encrypted key material to import. 
 | 
ImportKeyMaterialRequest | 
withExpirationModel(ExpirationModelType expirationModel)
 Specifies whether the key material expires. 
 | 
ImportKeyMaterialRequest | 
withExpirationModel(String expirationModel)
 Specifies whether the key material expires. 
 | 
ImportKeyMaterialRequest | 
withImportToken(ByteBuffer importToken)
 The import token that you received in the response to a previous GetParametersForImport request. 
 | 
ImportKeyMaterialRequest | 
withKeyId(String keyId)
 The identifier of the symmetric CMK that receives the imported key material. 
 | 
ImportKeyMaterialRequest | 
withValidTo(Date validTo)
 The time at which the imported key material expires. 
 | 
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setKeyId(String keyId)
 The identifier of the symmetric CMK that receives the imported key material. The CMK's Origin must
 be EXTERNAL. This must be the same CMK specified in the KeyID parameter of the
 corresponding GetParametersForImport request.
 
Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
For example:
 Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
 
 Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
 
To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
keyId - The identifier of the symmetric CMK that receives the imported key material. The CMK's Origin
        must be EXTERNAL. This must be the same CMK specified in the KeyID parameter of
        the corresponding GetParametersForImport request.
        Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
For example:
        Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
        
        Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
        
To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
public String getKeyId()
 The identifier of the symmetric CMK that receives the imported key material. The CMK's Origin must
 be EXTERNAL. This must be the same CMK specified in the KeyID parameter of the
 corresponding GetParametersForImport request.
 
Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
For example:
 Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
 
 Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
 
To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
Origin must be EXTERNAL. This must be the same CMK specified in the
         KeyID parameter of the corresponding GetParametersForImport request.
         Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
For example:
         Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
         
         Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
         
To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
public ImportKeyMaterialRequest withKeyId(String keyId)
 The identifier of the symmetric CMK that receives the imported key material. The CMK's Origin must
 be EXTERNAL. This must be the same CMK specified in the KeyID parameter of the
 corresponding GetParametersForImport request.
 
Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
For example:
 Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
 
 Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
 
To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
keyId - The identifier of the symmetric CMK that receives the imported key material. The CMK's Origin
        must be EXTERNAL. This must be the same CMK specified in the KeyID parameter of
        the corresponding GetParametersForImport request.
        Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
For example:
        Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
        
        Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
        
To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
public void setImportToken(ByteBuffer importToken)
The import token that you received in the response to a previous GetParametersForImport request. It must be from the same response that contained the public key that you used to encrypt the key material.
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 that you received in the response to a previous GetParametersForImport request. It
        must be from the same response that contained the public key that you used to encrypt the key material.public ByteBuffer getImportToken()
The import token that you received in the response to a previous GetParametersForImport request. It must be from the same response that contained the public key that you used to encrypt the key material.
 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 ImportKeyMaterialRequest withImportToken(ByteBuffer importToken)
The import token that you received in the response to a previous GetParametersForImport request. It must be from the same response that contained the public key that you used to encrypt the key material.
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 that you received in the response to a previous GetParametersForImport request. It
        must be from the same response that contained the public key that you used to encrypt the key material.public void setEncryptedKeyMaterial(ByteBuffer encryptedKeyMaterial)
 The encrypted key material to import. The key material must be encrypted with the public wrapping key that
 GetParametersForImport returned, using the wrapping algorithm that you specified in the same
 GetParametersForImport 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.
encryptedKeyMaterial - The encrypted key material to import. The key material must be encrypted with the public wrapping key that
        GetParametersForImport returned, using the wrapping algorithm that you specified in the same
        GetParametersForImport request.public ByteBuffer getEncryptedKeyMaterial()
 The encrypted key material to import. The key material must be encrypted with the public wrapping key that
 GetParametersForImport returned, using the wrapping algorithm that you specified in the same
 GetParametersForImport request.
 
 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.
 
GetParametersForImport request.public ImportKeyMaterialRequest withEncryptedKeyMaterial(ByteBuffer encryptedKeyMaterial)
 The encrypted key material to import. The key material must be encrypted with the public wrapping key that
 GetParametersForImport returned, using the wrapping algorithm that you specified in the same
 GetParametersForImport 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.
encryptedKeyMaterial - The encrypted key material to import. The key material must be encrypted with the public wrapping key that
        GetParametersForImport returned, using the wrapping algorithm that you specified in the same
        GetParametersForImport request.public void setValidTo(Date validTo)
 The time at which the imported key material expires. When the key material expires, AWS KMS deletes the key
 material and the CMK becomes unusable. You must omit this parameter when the ExpirationModel
 parameter is set to KEY_MATERIAL_DOES_NOT_EXPIRE. Otherwise it is required.
 
validTo - The time at which the imported key material expires. When the key material expires, AWS KMS deletes the
        key material and the CMK becomes unusable. You must omit this parameter when the
        ExpirationModel parameter is set to KEY_MATERIAL_DOES_NOT_EXPIRE. Otherwise it
        is required.public Date getValidTo()
 The time at which the imported key material expires. When the key material expires, AWS KMS deletes the key
 material and the CMK becomes unusable. You must omit this parameter when the ExpirationModel
 parameter is set to KEY_MATERIAL_DOES_NOT_EXPIRE. Otherwise it is required.
 
ExpirationModel parameter is set to KEY_MATERIAL_DOES_NOT_EXPIRE. Otherwise it
         is required.public ImportKeyMaterialRequest withValidTo(Date validTo)
 The time at which the imported key material expires. When the key material expires, AWS KMS deletes the key
 material and the CMK becomes unusable. You must omit this parameter when the ExpirationModel
 parameter is set to KEY_MATERIAL_DOES_NOT_EXPIRE. Otherwise it is required.
 
validTo - The time at which the imported key material expires. When the key material expires, AWS KMS deletes the
        key material and the CMK becomes unusable. You must omit this parameter when the
        ExpirationModel parameter is set to KEY_MATERIAL_DOES_NOT_EXPIRE. Otherwise it
        is required.public void setExpirationModel(String expirationModel)
 Specifies whether the key material expires. The default is KEY_MATERIAL_EXPIRES, in which case you
 must include the ValidTo parameter. When this parameter is set to
 KEY_MATERIAL_DOES_NOT_EXPIRE, you must omit the ValidTo parameter.
 
expirationModel - Specifies whether the key material expires. The default is KEY_MATERIAL_EXPIRES, in which
        case you must include the ValidTo parameter. When this parameter is set to
        KEY_MATERIAL_DOES_NOT_EXPIRE, you must omit the ValidTo parameter.ExpirationModelTypepublic String getExpirationModel()
 Specifies whether the key material expires. The default is KEY_MATERIAL_EXPIRES, in which case you
 must include the ValidTo parameter. When this parameter is set to
 KEY_MATERIAL_DOES_NOT_EXPIRE, you must omit the ValidTo parameter.
 
KEY_MATERIAL_EXPIRES, in which
         case you must include the ValidTo parameter. When this parameter is set to
         KEY_MATERIAL_DOES_NOT_EXPIRE, you must omit the ValidTo parameter.ExpirationModelTypepublic ImportKeyMaterialRequest withExpirationModel(String expirationModel)
 Specifies whether the key material expires. The default is KEY_MATERIAL_EXPIRES, in which case you
 must include the ValidTo parameter. When this parameter is set to
 KEY_MATERIAL_DOES_NOT_EXPIRE, you must omit the ValidTo parameter.
 
expirationModel - Specifies whether the key material expires. The default is KEY_MATERIAL_EXPIRES, in which
        case you must include the ValidTo parameter. When this parameter is set to
        KEY_MATERIAL_DOES_NOT_EXPIRE, you must omit the ValidTo parameter.ExpirationModelTypepublic void setExpirationModel(ExpirationModelType expirationModel)
 Specifies whether the key material expires. The default is KEY_MATERIAL_EXPIRES, in which case you
 must include the ValidTo parameter. When this parameter is set to
 KEY_MATERIAL_DOES_NOT_EXPIRE, you must omit the ValidTo parameter.
 
expirationModel - Specifies whether the key material expires. The default is KEY_MATERIAL_EXPIRES, in which
        case you must include the ValidTo parameter. When this parameter is set to
        KEY_MATERIAL_DOES_NOT_EXPIRE, you must omit the ValidTo parameter.ExpirationModelTypepublic ImportKeyMaterialRequest withExpirationModel(ExpirationModelType expirationModel)
 Specifies whether the key material expires. The default is KEY_MATERIAL_EXPIRES, in which case you
 must include the ValidTo parameter. When this parameter is set to
 KEY_MATERIAL_DOES_NOT_EXPIRE, you must omit the ValidTo parameter.
 
expirationModel - Specifies whether the key material expires. The default is KEY_MATERIAL_EXPIRES, in which
        case you must include the ValidTo parameter. When this parameter is set to
        KEY_MATERIAL_DOES_NOT_EXPIRE, you must omit the ValidTo parameter.ExpirationModelTypepublic String toString()
toString in class ObjectObject.toString()public ImportKeyMaterialRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2020. All rights reserved.