@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)
Marshalls this structured data using the given
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 Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.