public class UpdateApiKeyResult extends Object implements Serializable, Cloneable
A resource that can be distributed to callers for executing Method resources that require an API key. API keys can be mapped to any Stage on any RestApi, which indicates that the callers with the API key can make requests to that stage.
Constructor and Description |
---|
UpdateApiKeyResult() |
Modifier and Type | Method and Description |
---|---|
UpdateApiKeyResult |
clone() |
boolean |
equals(Object obj) |
Date |
getCreatedDate()
The date when the API Key was created, in ISO 8601 format.
|
String |
getDescription()
The description of the API Key.
|
Boolean |
getEnabled()
Specifies whether the API Key can be used by callers.
|
String |
getId()
The identifier of the API Key.
|
Date |
getLastUpdatedDate()
When the API Key was last updated, in ISO 8601 format.
|
String |
getName()
The name of the API Key.
|
List<String> |
getStageKeys()
|
int |
hashCode() |
Boolean |
isEnabled()
Specifies whether the API Key can be used by callers.
|
void |
setCreatedDate(Date createdDate)
The date when the API Key was created, in ISO 8601 format.
|
void |
setDescription(String description)
The description of the API Key.
|
void |
setEnabled(Boolean enabled)
Specifies whether the API Key can be used by callers.
|
void |
setId(String id)
The identifier of the API Key.
|
void |
setLastUpdatedDate(Date lastUpdatedDate)
When the API Key was last updated, in ISO 8601 format.
|
void |
setName(String name)
The name of the API Key.
|
void |
setStageKeys(Collection<String> stageKeys)
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateApiKeyResult |
withCreatedDate(Date createdDate)
The date when the API Key was created, in ISO 8601 format.
|
UpdateApiKeyResult |
withDescription(String description)
The description of the API Key.
|
UpdateApiKeyResult |
withEnabled(Boolean enabled)
Specifies whether the API Key can be used by callers.
|
UpdateApiKeyResult |
withId(String id)
The identifier of the API Key.
|
UpdateApiKeyResult |
withLastUpdatedDate(Date lastUpdatedDate)
When the API Key was last updated, in ISO 8601 format.
|
UpdateApiKeyResult |
withName(String name)
The name of the API Key.
|
UpdateApiKeyResult |
withStageKeys(Collection<String> stageKeys)
|
UpdateApiKeyResult |
withStageKeys(String... stageKeys)
|
public void setId(String id)
The identifier of the API Key.
id
- The identifier of the API Key.public String getId()
The identifier of the API Key.
public UpdateApiKeyResult withId(String id)
The identifier of the API Key.
id
- The identifier of the API Key.public void setName(String name)
The name of the API Key.
name
- The name of the API Key.public String getName()
The name of the API Key.
public UpdateApiKeyResult withName(String name)
The name of the API Key.
name
- The name of the API Key.public void setDescription(String description)
The description of the API Key.
description
- The description of the API Key.public String getDescription()
The description of the API Key.
public UpdateApiKeyResult withDescription(String description)
The description of the API Key.
description
- The description of the API Key.public void setEnabled(Boolean enabled)
Specifies whether the API Key can be used by callers.
enabled
- Specifies whether the API Key can be used by callers.public Boolean getEnabled()
Specifies whether the API Key can be used by callers.
public UpdateApiKeyResult withEnabled(Boolean enabled)
Specifies whether the API Key can be used by callers.
enabled
- Specifies whether the API Key can be used by callers.public Boolean isEnabled()
Specifies whether the API Key can be used by callers.
public void setStageKeys(Collection<String> stageKeys)
public UpdateApiKeyResult withStageKeys(String... stageKeys)
A list of Stage resources that are associated with the ApiKey resource.
NOTE: This method appends the values to the existing list (if
any). Use setStageKeys(java.util.Collection)
or
withStageKeys(java.util.Collection)
if you want to override the
existing values.
public UpdateApiKeyResult withStageKeys(Collection<String> stageKeys)
public void setCreatedDate(Date createdDate)
The date when the API Key was created, in ISO 8601 format.
createdDate
- The date when the API Key was created, in ISO 8601 format.public Date getCreatedDate()
The date when the API Key was created, in ISO 8601 format.
public UpdateApiKeyResult withCreatedDate(Date createdDate)
The date when the API Key was created, in ISO 8601 format.
createdDate
- The date when the API Key was created, in ISO 8601 format.public void setLastUpdatedDate(Date lastUpdatedDate)
When the API Key was last updated, in ISO 8601 format.
lastUpdatedDate
- When the API Key was last updated, in ISO 8601 format.public Date getLastUpdatedDate()
When the API Key was last updated, in ISO 8601 format.
public UpdateApiKeyResult withLastUpdatedDate(Date lastUpdatedDate)
When the API Key was last updated, in ISO 8601 format.
lastUpdatedDate
- When the API Key was last updated, in ISO 8601 format.public String toString()
toString
in class Object
Object.toString()
public UpdateApiKeyResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.