Class GetAccessKeyLastUsedResult
- java.lang.Object
-
- com.amazonaws.services.identitymanagement.model.GetAccessKeyLastUsedResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetAccessKeyLastUsedResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setUserName
public void setUserName(String userName)
The name of the AWS IAM user that owns this access key.
- Parameters:
userName
- The name of the AWS IAM user that owns this access key.
-
getUserName
public String getUserName()
The name of the AWS IAM user that owns this access key.
- Returns:
- The name of the AWS IAM user that owns this access key.
-
withUserName
public GetAccessKeyLastUsedResult withUserName(String userName)
The name of the AWS IAM user that owns this access key.
- Parameters:
userName
- The name of the AWS IAM user that owns this access key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAccessKeyLastUsed
public void setAccessKeyLastUsed(AccessKeyLastUsed accessKeyLastUsed)
Contains information about the last time the access key was used.
- Parameters:
accessKeyLastUsed
- Contains information about the last time the access key was used.
-
getAccessKeyLastUsed
public AccessKeyLastUsed getAccessKeyLastUsed()
Contains information about the last time the access key was used.
- Returns:
- Contains information about the last time the access key was used.
-
withAccessKeyLastUsed
public GetAccessKeyLastUsedResult withAccessKeyLastUsed(AccessKeyLastUsed accessKeyLastUsed)
Contains information about the last time the access key was used.
- Parameters:
accessKeyLastUsed
- Contains information about the last time the access key was used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GetAccessKeyLastUsedResult clone()
-
-