@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateKeyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
CreateKeyResult() |
Modifier and Type | Method and Description |
---|---|
CreateKeyResult |
clone() |
boolean |
equals(Object obj) |
Date |
getCreateTime()
The timestamp for when the API key resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ . |
String |
getKey()
The key value/string of an API key.
|
String |
getKeyArn()
The Amazon Resource Name (ARN) for the API key resource.
|
String |
getKeyName()
The name of the API key resource.
|
int |
hashCode() |
void |
setCreateTime(Date createTime)
The timestamp for when the API key resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ . |
void |
setKey(String key)
The key value/string of an API key.
|
void |
setKeyArn(String keyArn)
The Amazon Resource Name (ARN) for the API key resource.
|
void |
setKeyName(String keyName)
The name of the API key resource.
|
String |
toString()
Returns a string representation of this object.
|
CreateKeyResult |
withCreateTime(Date createTime)
The timestamp for when the API key resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ . |
CreateKeyResult |
withKey(String key)
The key value/string of an API key.
|
CreateKeyResult |
withKeyArn(String keyArn)
The Amazon Resource Name (ARN) for the API key resource.
|
CreateKeyResult |
withKeyName(String keyName)
The name of the API key resource.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setKey(String key)
The key value/string of an API key. This value is used when making API calls to authorize the call. For example, see GetMapGlyphs.
key
- The key value/string of an API key. This value is used when making API calls to authorize the call. For
example, see GetMapGlyphs.public String getKey()
The key value/string of an API key. This value is used when making API calls to authorize the call. For example, see GetMapGlyphs.
public CreateKeyResult withKey(String key)
The key value/string of an API key. This value is used when making API calls to authorize the call. For example, see GetMapGlyphs.
key
- The key value/string of an API key. This value is used when making API calls to authorize the call. For
example, see GetMapGlyphs.public void setKeyArn(String keyArn)
The Amazon Resource Name (ARN) for the API key resource. Used when you need to specify a resource across all Amazon Web Services.
Format example: arn:aws:geo:region:account-id:key/ExampleKey
keyArn
- The Amazon Resource Name (ARN) for the API key resource. Used when you need to specify a resource across
all Amazon Web Services.
Format example: arn:aws:geo:region:account-id:key/ExampleKey
public String getKeyArn()
The Amazon Resource Name (ARN) for the API key resource. Used when you need to specify a resource across all Amazon Web Services.
Format example: arn:aws:geo:region:account-id:key/ExampleKey
Format example: arn:aws:geo:region:account-id:key/ExampleKey
public CreateKeyResult withKeyArn(String keyArn)
The Amazon Resource Name (ARN) for the API key resource. Used when you need to specify a resource across all Amazon Web Services.
Format example: arn:aws:geo:region:account-id:key/ExampleKey
keyArn
- The Amazon Resource Name (ARN) for the API key resource. Used when you need to specify a resource across
all Amazon Web Services.
Format example: arn:aws:geo:region:account-id:key/ExampleKey
public void setKeyName(String keyName)
The name of the API key resource.
keyName
- The name of the API key resource.public String getKeyName()
The name of the API key resource.
public CreateKeyResult withKeyName(String keyName)
The name of the API key resource.
keyName
- The name of the API key resource.public void setCreateTime(Date createTime)
The timestamp for when the API key resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
createTime
- The timestamp for when the API key resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.public Date getCreateTime()
The timestamp for when the API key resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
YYYY-MM-DDThh:mm:ss.sssZ
.public CreateKeyResult withCreateTime(Date createTime)
The timestamp for when the API key resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
createTime
- The timestamp for when the API key resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.public String toString()
toString
in class Object
Object.toString()
public CreateKeyResult clone()