java.lang.Object
com.amazonaws.services.identitymanagement.model.UserDetail
All Implemented Interfaces:
Serializable, Cloneable

public class UserDetail extends Object implements Serializable, Cloneable

Contains information about an IAM user, including all the user's policies and all the IAM groups the user is in.

This data type is used as a response element in the GetAccountAuthorizationDetails action.

See Also:
  • Constructor Details

    • UserDetail

      public UserDetail()
  • Method Details

    • setPath

      public void setPath(String path)

      The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.

      Parameters:
      path - The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.
    • getPath

      public String getPath()

      The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.

      Returns:
      The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.
    • withPath

      public UserDetail withPath(String path)

      The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.

      Parameters:
      path - The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setUserName

      public void setUserName(String userName)

      The friendly name identifying the user.

      Parameters:
      userName - The friendly name identifying the user.
    • getUserName

      public String getUserName()

      The friendly name identifying the user.

      Returns:
      The friendly name identifying the user.
    • withUserName

      public UserDetail withUserName(String userName)

      The friendly name identifying the user.

      Parameters:
      userName - The friendly name identifying the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setUserId

      public void setUserId(String userId)

      The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the Using IAM guide.

      Parameters:
      userId - The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the Using IAM guide.
    • getUserId

      public String getUserId()

      The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the Using IAM guide.

      Returns:
      The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the Using IAM guide.
    • withUserId

      public UserDetail withUserId(String userId)

      The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the Using IAM guide.

      Parameters:
      userId - The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the Using IAM guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setArn

      public void setArn(String arn)
      Parameters:
      arn -
    • getArn

      public String getArn()
      Returns:
    • withArn

      public UserDetail withArn(String arn)
      Parameters:
      arn -
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCreateDate

      public void setCreateDate(Date createDate)

      The date and time, in ISO 8601 date-time format, when the user was created.

      Parameters:
      createDate - The date and time, in ISO 8601 date-time format, when the user was created.
    • getCreateDate

      public Date getCreateDate()

      The date and time, in ISO 8601 date-time format, when the user was created.

      Returns:
      The date and time, in ISO 8601 date-time format, when the user was created.
    • withCreateDate

      public UserDetail withCreateDate(Date createDate)

      The date and time, in ISO 8601 date-time format, when the user was created.

      Parameters:
      createDate - The date and time, in ISO 8601 date-time format, when the user was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getUserPolicyList

      public List<PolicyDetail> getUserPolicyList()

      A list of the inline policies embedded in the user.

      Returns:
      A list of the inline policies embedded in the user.
    • setUserPolicyList

      public void setUserPolicyList(Collection<PolicyDetail> userPolicyList)

      A list of the inline policies embedded in the user.

      Parameters:
      userPolicyList - A list of the inline policies embedded in the user.
    • withUserPolicyList

      public UserDetail withUserPolicyList(PolicyDetail... userPolicyList)

      A list of the inline policies embedded in the user.

      NOTE: This method appends the values to the existing list (if any). Use setUserPolicyList(java.util.Collection) or withUserPolicyList(java.util.Collection) if you want to override the existing values.

      Parameters:
      userPolicyList - A list of the inline policies embedded in the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withUserPolicyList

      public UserDetail withUserPolicyList(Collection<PolicyDetail> userPolicyList)

      A list of the inline policies embedded in the user.

      Parameters:
      userPolicyList - A list of the inline policies embedded in the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getGroupList

      public List<String> getGroupList()

      A list of IAM groups that the user is in.

      Returns:
      A list of IAM groups that the user is in.
    • setGroupList

      public void setGroupList(Collection<String> groupList)

      A list of IAM groups that the user is in.

      Parameters:
      groupList - A list of IAM groups that the user is in.
    • withGroupList

      public UserDetail withGroupList(String... groupList)

      A list of IAM groups that the user is in.

      NOTE: This method appends the values to the existing list (if any). Use setGroupList(java.util.Collection) or withGroupList(java.util.Collection) if you want to override the existing values.

      Parameters:
      groupList - A list of IAM groups that the user is in.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withGroupList

      public UserDetail withGroupList(Collection<String> groupList)

      A list of IAM groups that the user is in.

      Parameters:
      groupList - A list of IAM groups that the user is in.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getAttachedManagedPolicies

      public List<AttachedPolicy> getAttachedManagedPolicies()

      A list of the managed policies attached to the user.

      Returns:
      A list of the managed policies attached to the user.
    • setAttachedManagedPolicies

      public void setAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)

      A list of the managed policies attached to the user.

      Parameters:
      attachedManagedPolicies - A list of the managed policies attached to the user.
    • withAttachedManagedPolicies

      public UserDetail withAttachedManagedPolicies(AttachedPolicy... attachedManagedPolicies)

      A list of the managed policies attached to the user.

      NOTE: This method appends the values to the existing list (if any). Use setAttachedManagedPolicies(java.util.Collection) or withAttachedManagedPolicies(java.util.Collection) if you want to override the existing values.

      Parameters:
      attachedManagedPolicies - A list of the managed policies attached to the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withAttachedManagedPolicies

      public UserDetail withAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)

      A list of the managed policies attached to the user.

      Parameters:
      attachedManagedPolicies - A list of the managed policies attached to the user.
      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

      public UserDetail clone()
      Overrides:
      clone in class Object