Class UserDetail
- 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserDetail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserDetailclone()booleanequals(Object obj)StringgetArn()List<AttachedPolicy>getAttachedManagedPolicies()A list of the managed policies attached to the user.DategetCreateDate()The date and time, in ISO 8601 date-time format, when the user was created.List<String>getGroupList()A list of IAM groups that the user is in.StringgetPath()The path to the user.StringgetUserId()The stable and unique string identifying the user.StringgetUserName()The friendly name identifying the user.List<PolicyDetail>getUserPolicyList()A list of the inline policies embedded in the user.inthashCode()voidsetArn(String arn)voidsetAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)A list of the managed policies attached to the user.voidsetCreateDate(Date createDate)The date and time, in ISO 8601 date-time format, when the user was created.voidsetGroupList(Collection<String> groupList)A list of IAM groups that the user is in.voidsetPath(String path)The path to the user.voidsetUserId(String userId)The stable and unique string identifying the user.voidsetUserName(String userName)The friendly name identifying the user.voidsetUserPolicyList(Collection<PolicyDetail> userPolicyList)A list of the inline policies embedded in the user.StringtoString()Returns a string representation of this object; useful for testing and debugging.UserDetailwithArn(String arn)UserDetailwithAttachedManagedPolicies(AttachedPolicy... attachedManagedPolicies)A list of the managed policies attached to the user.UserDetailwithAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)A list of the managed policies attached to the user.UserDetailwithCreateDate(Date createDate)The date and time, in ISO 8601 date-time format, when the user was created.UserDetailwithGroupList(String... groupList)A list of IAM groups that the user is in.UserDetailwithGroupList(Collection<String> groupList)A list of IAM groups that the user is in.UserDetailwithPath(String path)The path to the user.UserDetailwithUserId(String userId)The stable and unique string identifying the user.UserDetailwithUserName(String userName)The friendly name identifying the user.UserDetailwithUserPolicyList(PolicyDetail... userPolicyList)A list of the inline policies embedded in the user.UserDetailwithUserPolicyList(Collection<PolicyDetail> userPolicyList)A list of the inline policies embedded in the user.
-
-
-
Method Detail
-
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)orwithUserPolicyList(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)orwithGroupList(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)orwithAttachedManagedPolicies(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public UserDetail clone()
-
-