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.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public 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.KeyUsageType
public String getKeyUsage()
Specifies the intended use of the key. Currently this defaults to ENCRYPT/DECRYPT, and only symmetric encryption and decryption are supported.
KeyUsageType
public 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.KeyUsageType
public 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.KeyUsageType
public 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.KeyUsageType
public String toString()
toString
in class Object
Object.toString()
public CreateKeyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.