public class GetAccessKeyLastUsedResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the response to a successful GetAccessKeyLastUsed request. It is also returned as a member of the AccessKeyMetaData structure returned by the ListAccessKeys action.
Modifier and Type | Field and Description |
---|---|
private AccessKeyLastUsed |
accessKeyLastUsed
Contains information about the last time the access key was used.
|
private java.lang.String |
userName
The name of the AWS IAM user that owns this access key.
|
Constructor and Description |
---|
GetAccessKeyLastUsedResult() |
Modifier and Type | Method and Description |
---|---|
GetAccessKeyLastUsedResult |
clone() |
boolean |
equals(java.lang.Object obj) |
AccessKeyLastUsed |
getAccessKeyLastUsed()
Contains information about the last time the access key was used.
|
java.lang.String |
getUserName()
The name of the AWS IAM user that owns this access key.
|
int |
hashCode() |
void |
setAccessKeyLastUsed(AccessKeyLastUsed accessKeyLastUsed)
Contains information about the last time the access key was used.
|
void |
setUserName(java.lang.String userName)
The name of the AWS IAM user that owns this access key.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetAccessKeyLastUsedResult |
withAccessKeyLastUsed(AccessKeyLastUsed accessKeyLastUsed)
Contains information about the last time the access key was used.
|
GetAccessKeyLastUsedResult |
withUserName(java.lang.String userName)
The name of the AWS IAM user that owns this access key.
|
private java.lang.String userName
The name of the AWS IAM user that owns this access key.
private AccessKeyLastUsed accessKeyLastUsed
Contains information about the last time the access key was used.
public void setUserName(java.lang.String userName)
The name of the AWS IAM user that owns this access key.
userName
- The name of the AWS IAM user that owns this access key.
public java.lang.String getUserName()
The name of the AWS IAM user that owns this access key.
public GetAccessKeyLastUsedResult withUserName(java.lang.String userName)
The name of the AWS IAM user that owns this access key.
userName
- The name of the AWS IAM user that owns this access key.
public void setAccessKeyLastUsed(AccessKeyLastUsed accessKeyLastUsed)
Contains information about the last time the access key was used.
accessKeyLastUsed
- Contains information about the last time the access key was used.public AccessKeyLastUsed getAccessKeyLastUsed()
Contains information about the last time the access key was used.
public GetAccessKeyLastUsedResult withAccessKeyLastUsed(AccessKeyLastUsed accessKeyLastUsed)
Contains information about the last time the access key was used.
accessKeyLastUsed
- Contains information about the last time the access key was used.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public GetAccessKeyLastUsedResult clone()
clone
in class java.lang.Object