public class GetAccessKeyLastUsedResult extends Object implements Serializable, 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.
Constructor and Description |
---|
GetAccessKeyLastUsedResult() |
Modifier and Type | Method and Description |
---|---|
GetAccessKeyLastUsedResult |
clone() |
boolean |
equals(Object obj) |
AccessKeyLastUsed |
getAccessKeyLastUsed()
Contains information about the last time the access key was used.
|
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(String userName)
The name of the AWS IAM user that owns this access key.
|
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(String userName)
The name of the AWS IAM user that owns this access key.
|
public String getUserName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
public void setUserName(String userName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
userName
- The name of the AWS IAM user that owns this access key.public GetAccessKeyLastUsedResult withUserName(String userName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
userName
- The name of the AWS IAM user that owns this access key.public AccessKeyLastUsed getAccessKeyLastUsed()
public void setAccessKeyLastUsed(AccessKeyLastUsed accessKeyLastUsed)
accessKeyLastUsed
- Contains information about the last time the access key was used.public GetAccessKeyLastUsedResult withAccessKeyLastUsed(AccessKeyLastUsed accessKeyLastUsed)
Returns a reference to this object so that method calls can be chained together.
accessKeyLastUsed
- Contains information about the last time the access key was used.public String toString()
toString
in class Object
Object.toString()
public GetAccessKeyLastUsedResult clone()
Copyright © 2015. All rights reserved.