public class GetParametersForImportResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
GetParametersForImportResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.nio.ByteBuffer |
getImportToken()
The import token to send in a subsequent ImportKeyMaterial
request.
|
java.lang.String |
getKeyId()
The Amazon Resource Name (key ARN) of the CMK to use in a subsequent ImportKeyMaterial
request.
|
java.util.Date |
getParametersValidTo()
The time at which the import token and public key are no longer valid.
|
java.nio.ByteBuffer |
getPublicKey()
The public key to use to encrypt the key material before importing it
with ImportKeyMaterial.
|
int |
hashCode() |
void |
setImportToken(java.nio.ByteBuffer importToken)
The import token to send in a subsequent ImportKeyMaterial
request.
|
void |
setKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the CMK to use in a subsequent ImportKeyMaterial
request.
|
void |
setParametersValidTo(java.util.Date parametersValidTo)
The time at which the import token and public key are no longer valid.
|
void |
setPublicKey(java.nio.ByteBuffer publicKey)
The public key to use to encrypt the key material before importing it
with ImportKeyMaterial.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetParametersForImportResult |
withImportToken(java.nio.ByteBuffer importToken)
The import token to send in a subsequent ImportKeyMaterial
request.
|
GetParametersForImportResult |
withKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the CMK to use in a subsequent ImportKeyMaterial
request.
|
GetParametersForImportResult |
withParametersValidTo(java.util.Date parametersValidTo)
The time at which the import token and public key are no longer valid.
|
GetParametersForImportResult |
withPublicKey(java.nio.ByteBuffer publicKey)
The public key to use to encrypt the key material before importing it
with ImportKeyMaterial.
|
public java.lang.String getKeyId()
The Amazon Resource Name (key ARN) of the CMK to use in a subsequent ImportKeyMaterial
request. This is the same CMK specified in the
GetParametersForImport
request.
Constraints:
Length: 1 - 2048
The Amazon Resource Name (key ARN) of the CMK to use in a subsequent
ImportKeyMaterial request. This is the same CMK specified
in the GetParametersForImport
request.
public void setKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the CMK to use in a subsequent ImportKeyMaterial
request. This is the same CMK specified in the
GetParametersForImport
request.
Constraints:
Length: 1 - 2048
keyId
-
The Amazon Resource Name (key ARN) of the CMK to use in a subsequent
ImportKeyMaterial request. This is the same CMK
specified in the GetParametersForImport
request.
public GetParametersForImportResult withKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the CMK to use in a subsequent ImportKeyMaterial
request. This is the same CMK specified in the
GetParametersForImport
request.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2048
keyId
-
The Amazon Resource Name (key ARN) of the CMK to use in a subsequent
ImportKeyMaterial request. This is the same CMK
specified in the GetParametersForImport
request.
public java.nio.ByteBuffer getImportToken()
The import token to send in a subsequent ImportKeyMaterial request.
Constraints:
Length: 1 - 6144
The import token to send in a subsequent ImportKeyMaterial request.
public void setImportToken(java.nio.ByteBuffer importToken)
The import token to send in a subsequent ImportKeyMaterial request.
Constraints:
Length: 1 - 6144
importToken
- The import token to send in a subsequent ImportKeyMaterial request.
public GetParametersForImportResult withImportToken(java.nio.ByteBuffer importToken)
The import token to send in a subsequent ImportKeyMaterial request.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 6144
importToken
- The import token to send in a subsequent ImportKeyMaterial request.
public java.nio.ByteBuffer getPublicKey()
The public key to use to encrypt the key material before importing it with ImportKeyMaterial.
Constraints:
Length: 1 - 4096
The public key to use to encrypt the key material before importing it with ImportKeyMaterial.
public void setPublicKey(java.nio.ByteBuffer publicKey)
The public key to use to encrypt the key material before importing it with ImportKeyMaterial.
Constraints:
Length: 1 - 4096
publicKey
- The public key to use to encrypt the key material before importing it with ImportKeyMaterial.
public GetParametersForImportResult withPublicKey(java.nio.ByteBuffer publicKey)
The public key to use to encrypt the key material before importing it with ImportKeyMaterial.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 4096
publicKey
- The public key to use to encrypt the key material before importing it with ImportKeyMaterial.
public java.util.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.
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 void setParametersValidTo(java.util.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 GetParametersForImportResult withParametersValidTo(java.util.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.
Returns a reference to this object so that method calls can be chained together.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.