@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ApiKey extends Object implements Serializable, Cloneable, StructuredPojo
Describes an API key.
| Constructor and Description |
|---|
ApiKey() |
| Modifier and Type | Method and Description |
|---|---|
ApiKey |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
A description of the purpose of the API key.
|
Long |
getExpires()
The time when the API key expires.
|
String |
getId()
The API key ID.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setDescription(String description)
A description of the purpose of the API key.
|
void |
setExpires(Long expires)
The time when the API key expires.
|
void |
setId(String id)
The API key ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ApiKey |
withDescription(String description)
A description of the purpose of the API key.
|
ApiKey |
withExpires(Long expires)
The time when the API key expires.
|
ApiKey |
withId(String id)
The API key ID.
|
public void setId(String id)
The API key ID.
id - The API key ID.public String getId()
The API key ID.
public ApiKey withId(String id)
The API key ID.
id - The API key ID.public void setDescription(String description)
A description of the purpose of the API key.
description - A description of the purpose of the API key.public String getDescription()
A description of the purpose of the API key.
public ApiKey withDescription(String description)
A description of the purpose of the API key.
description - A description of the purpose of the API key.public void setExpires(Long expires)
The time when the API key expires.
expires - The time when the API key expires.public Long getExpires()
The time when the API key expires.
public ApiKey withExpires(Long expires)
The time when the API key expires.
expires - The time when the API key expires.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2017. All rights reserved.