public class CreateKeyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CreateKeyRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateKeyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getDescription()
Description of the key.
|
String |
getKeyUsage()
Specifies the intended use of the key.
|
String |
getPolicy()
Policy to attach to the key.
|
int |
hashCode() |
void |
setDescription(String description)
Description of the key.
|
void |
setKeyUsage(KeyUsageType keyUsage)
Specifies the intended use of the key.
|
void |
setKeyUsage(String keyUsage)
Specifies the intended use of the key.
|
void |
setPolicy(String policy)
Policy to attach to the key.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateKeyRequest |
withDescription(String description)
Description of the key.
|
CreateKeyRequest |
withKeyUsage(KeyUsageType keyUsage)
Specifies the intended use of the key.
|
CreateKeyRequest |
withKeyUsage(String keyUsage)
Specifies the intended use of the key.
|
CreateKeyRequest |
withPolicy(String policy)
Policy to attach to the key.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setPolicy(String policy)
Policy to attach to the key. This is required and delegates back to the account. The key is the root of trust. The policy size limit is 32 KiB (32768 bytes).
policy - Policy to attach to the key. This is required and delegates back
to the account. The key is the root of trust. The policy size
limit is 32 KiB (32768 bytes).public String getPolicy()
Policy to attach to the key. This is required and delegates back to the account. The key is the root of trust. The policy size limit is 32 KiB (32768 bytes).
public CreateKeyRequest withPolicy(String policy)
Policy to attach to the key. This is required and delegates back to the account. The key is the root of trust. The policy size limit is 32 KiB (32768 bytes).
policy - Policy to attach to the key. This is required and delegates back
to the account. The key is the root of trust. The policy size
limit is 32 KiB (32768 bytes).public void setDescription(String description)
Description of the key. We recommend that you choose a description that helps your customer decide whether the key is appropriate for a task.
description - Description of the key. We recommend that you choose a description
that helps your customer decide whether the key is appropriate for
a task.public String getDescription()
Description of the key. We recommend that you choose a description that helps your customer decide whether the key is appropriate for a task.
public CreateKeyRequest withDescription(String description)
Description of the key. We recommend that you choose a description that helps your customer decide whether the key is appropriate for a task.
description - Description of the key. We recommend that you choose a description
that helps your customer decide whether the key is appropriate for
a task.public void setKeyUsage(String keyUsage)
Specifies the intended use of the key. Currently this defaults to ENCRYPT/DECRYPT, and only symmetric encryption and decryption are supported.
keyUsage - Specifies the intended use of the key. Currently this defaults to
ENCRYPT/DECRYPT, and only symmetric encryption and decryption are
supported.KeyUsageTypepublic String getKeyUsage()
Specifies the intended use of the key. Currently this defaults to ENCRYPT/DECRYPT, and only symmetric encryption and decryption are supported.
KeyUsageTypepublic CreateKeyRequest withKeyUsage(String keyUsage)
Specifies the intended use of the key. Currently this defaults to ENCRYPT/DECRYPT, and only symmetric encryption and decryption are supported.
keyUsage - Specifies the intended use of the key. Currently this defaults to
ENCRYPT/DECRYPT, and only symmetric encryption and decryption are
supported.KeyUsageTypepublic void setKeyUsage(KeyUsageType keyUsage)
Specifies the intended use of the key. Currently this defaults to ENCRYPT/DECRYPT, and only symmetric encryption and decryption are supported.
keyUsage - Specifies the intended use of the key. Currently this defaults to
ENCRYPT/DECRYPT, and only symmetric encryption and decryption are
supported.KeyUsageTypepublic CreateKeyRequest withKeyUsage(KeyUsageType keyUsage)
Specifies the intended use of the key. Currently this defaults to ENCRYPT/DECRYPT, and only symmetric encryption and decryption are supported.
keyUsage - Specifies the intended use of the key. Currently this defaults to
ENCRYPT/DECRYPT, and only symmetric encryption and decryption are
supported.KeyUsageTypepublic String toString()
toString in class ObjectObject.toString()public CreateKeyRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.