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:
  • Constructor Details

    • GetAccessKeyLastUsedResult

      public GetAccessKeyLastUsedResult()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      Overrides:
      clone in class Object