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 UserDetail
clone()
boolean
equals(Object obj)
String
getArn()
List<AttachedPolicy>
getAttachedManagedPolicies()
A list of the managed policies attached to the user.Date
getCreateDate()
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.String
getPath()
The path to the user.String
getUserId()
The stable and unique string identifying the user.String
getUserName()
The friendly name identifying the user.List<PolicyDetail>
getUserPolicyList()
A list of the inline policies embedded in the user.int
hashCode()
void
setArn(String arn)
void
setAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)
A list of the managed policies attached to the user.void
setCreateDate(Date createDate)
The date and time, in ISO 8601 date-time format, when the user was created.void
setGroupList(Collection<String> groupList)
A list of IAM groups that the user is in.void
setPath(String path)
The path to the user.void
setUserId(String userId)
The stable and unique string identifying the user.void
setUserName(String userName)
The friendly name identifying the user.void
setUserPolicyList(Collection<PolicyDetail> userPolicyList)
A list of the inline policies embedded in the user.String
toString()
Returns a string representation of this object; useful for testing and debugging.UserDetail
withArn(String arn)
UserDetail
withAttachedManagedPolicies(AttachedPolicy... attachedManagedPolicies)
A list of the managed policies attached to the user.UserDetail
withAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)
A list of the managed policies attached to the user.UserDetail
withCreateDate(Date createDate)
The date and time, in ISO 8601 date-time format, when the user was created.UserDetail
withGroupList(String... groupList)
A list of IAM groups that the user is in.UserDetail
withGroupList(Collection<String> groupList)
A list of IAM groups that the user is in.UserDetail
withPath(String path)
The path to the user.UserDetail
withUserId(String userId)
The stable and unique string identifying the user.UserDetail
withUserName(String userName)
The friendly name identifying the user.UserDetail
withUserPolicyList(PolicyDetail... userPolicyList)
A list of the inline policies embedded in the user.UserDetail
withUserPolicyList(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public UserDetail clone()
-
-