public class AccessKeyLastUsed extends Object implements Serializable, Cloneable
Contains information about the last time an AWS access key was used.
This data type is used as a response element in the GetAccessKeyLastUsed action.
| Constructor and Description |
|---|
AccessKeyLastUsed() |
| Modifier and Type | Method and Description |
|---|---|
AccessKeyLastUsed |
clone() |
boolean |
equals(Object obj) |
Date |
getLastUsedDate()
The date and time, in ISO
8601 date-time format, when the access key was most recently used.
|
String |
getRegion()
The AWS region where this access key was most recently used.
|
String |
getServiceName()
The name of the AWS service with which this access key was most
recently used.
|
int |
hashCode() |
void |
setLastUsedDate(Date lastUsedDate)
The date and time, in ISO
8601 date-time format, when the access key was most recently used.
|
void |
setRegion(String region)
The AWS region where this access key was most recently used.
|
void |
setServiceName(String serviceName)
The name of the AWS service with which this access key was most
recently used.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AccessKeyLastUsed |
withLastUsedDate(Date lastUsedDate)
The date and time, in ISO
8601 date-time format, when the access key was most recently used.
|
AccessKeyLastUsed |
withRegion(String region)
The AWS region where this access key was most recently used.
|
AccessKeyLastUsed |
withServiceName(String serviceName)
The name of the AWS service with which this access key was most
recently used.
|
public Date getLastUsedDate()
public void setLastUsedDate(Date lastUsedDate)
lastUsedDate - The date and time, in ISO
8601 date-time format, when the access key was most recently used.public AccessKeyLastUsed withLastUsedDate(Date lastUsedDate)
Returns a reference to this object so that method calls can be chained together.
lastUsedDate - The date and time, in ISO
8601 date-time format, when the access key was most recently used.public String getServiceName()
public void setServiceName(String serviceName)
serviceName - The name of the AWS service with which this access key was most
recently used.public AccessKeyLastUsed withServiceName(String serviceName)
Returns a reference to this object so that method calls can be chained together.
serviceName - The name of the AWS service with which this access key was most
recently used.public String getRegion()
For more information about AWS regions, see Regions and Endpoints in the Amazon Web Services General Reference.
For more information about AWS regions, see Regions and Endpoints in the Amazon Web Services General Reference.
public void setRegion(String region)
For more information about AWS regions, see Regions and Endpoints in the Amazon Web Services General Reference.
region - The AWS region where this access key was most recently used. For more information about AWS regions, see Regions and Endpoints in the Amazon Web Services General Reference.
public AccessKeyLastUsed withRegion(String region)
For more information about AWS regions, see Regions and Endpoints in the Amazon Web Services General Reference.
Returns a reference to this object so that method calls can be chained together.
region - The AWS region where this access key was most recently used. For more information about AWS regions, see Regions and Endpoints in the Amazon Web Services General Reference.
public String toString()
toString in class ObjectObject.toString()public AccessKeyLastUsed clone()
Copyright © 2015. All rights reserved.