@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeKeyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeKeyResult() |
Modifier and Type | Method and Description |
---|---|
DescribeKeyResult |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
DescribeKeyResult |
clearTagsEntries()
Removes all the entries added into Tags.
|
DescribeKeyResult |
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 |
getDescription()
The optional description for the API key resource.
|
Date |
getExpireTime()
The timestamp for when the API key resource will expire 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.
|
ApiKeyRestrictions |
getRestrictions() |
Map<String,String> |
getTags()
Tags associated with the API key resource.
|
Date |
getUpdateTime()
The timestamp for when the API key resource was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ . |
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 |
setDescription(String description)
The optional description for the API key resource.
|
void |
setExpireTime(Date expireTime)
The timestamp for when the API key resource will expire 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.
|
void |
setRestrictions(ApiKeyRestrictions restrictions) |
void |
setTags(Map<String,String> tags)
Tags associated with the API key resource.
|
void |
setUpdateTime(Date updateTime)
The timestamp for when the API key resource was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ . |
String |
toString()
Returns a string representation of this object.
|
DescribeKeyResult |
withCreateTime(Date createTime)
The timestamp for when the API key resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ . |
DescribeKeyResult |
withDescription(String description)
The optional description for the API key resource.
|
DescribeKeyResult |
withExpireTime(Date expireTime)
The timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ . |
DescribeKeyResult |
withKey(String key)
The key value/string of an API key.
|
DescribeKeyResult |
withKeyArn(String keyArn)
The Amazon Resource Name (ARN) for the API key resource.
|
DescribeKeyResult |
withKeyName(String keyName)
The name of the API key resource.
|
DescribeKeyResult |
withRestrictions(ApiKeyRestrictions restrictions) |
DescribeKeyResult |
withTags(Map<String,String> tags)
Tags associated with the API key resource.
|
DescribeKeyResult |
withUpdateTime(Date updateTime)
The timestamp for when the API key resource was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ . |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setKey(String key)
The key value/string of an API key.
key
- The key value/string of an API key.public String getKey()
The key value/string of an API key.
public DescribeKeyResult withKey(String key)
The key value/string of an API key.
key
- The key value/string of an API key.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 DescribeKeyResult 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 DescribeKeyResult withKeyName(String keyName)
The name of the API key resource.
keyName
- The name of the API key resource.public void setRestrictions(ApiKeyRestrictions restrictions)
restrictions
- public ApiKeyRestrictions getRestrictions()
public DescribeKeyResult withRestrictions(ApiKeyRestrictions restrictions)
restrictions
- 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 DescribeKeyResult 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 void setExpireTime(Date expireTime)
The timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
expireTime
- The timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.public Date getExpireTime()
The timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
YYYY-MM-DDThh:mm:ss.sssZ
.public DescribeKeyResult withExpireTime(Date expireTime)
The timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
expireTime
- The timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.public void setUpdateTime(Date updateTime)
The timestamp for when the API key resource was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
updateTime
- The timestamp for when the API key resource was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.public Date getUpdateTime()
The timestamp for when the API key resource was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
YYYY-MM-DDThh:mm:ss.sssZ
.public DescribeKeyResult withUpdateTime(Date updateTime)
The timestamp for when the API key resource was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
updateTime
- The timestamp for when the API key resource was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.public void setDescription(String description)
The optional description for the API key resource.
description
- The optional description for the API key resource.public String getDescription()
The optional description for the API key resource.
public DescribeKeyResult withDescription(String description)
The optional description for the API key resource.
description
- The optional description for the API key resource.public Map<String,String> getTags()
Tags associated with the API key resource.
public void setTags(Map<String,String> tags)
Tags associated with the API key resource.
tags
- Tags associated with the API key resource.public DescribeKeyResult withTags(Map<String,String> tags)
Tags associated with the API key resource.
tags
- Tags associated with the API key resource.public DescribeKeyResult addTagsEntry(String key, String value)
public DescribeKeyResult clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public DescribeKeyResult clone()