Class UserDetail
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getArn()
A list of the managed policies attached to the user.The date and time, in ISO 8601 date-time format, when the user was created.A list of IAM groups that the user is in.getPath()
The path to the user.The stable and unique string identifying the user.The friendly name identifying the user.A list of the inline policies embedded in the user.int
hashCode()
void
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
The path to the user.void
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.toString()
Returns a string representation of this object; useful for testing and debugging.withAttachedManagedPolicies
(AttachedPolicy... attachedManagedPolicies) A list of the managed policies attached to the user.withAttachedManagedPolicies
(Collection<AttachedPolicy> attachedManagedPolicies) A list of the managed policies attached to the user.withCreateDate
(Date createDate) The date and time, in ISO 8601 date-time format, when the user was created.withGroupList
(String... groupList) A list of IAM groups that the user is in.withGroupList
(Collection<String> groupList) A list of IAM groups that the user is in.The path to the user.withUserId
(String userId) The stable and unique string identifying the user.withUserName
(String userName) The friendly name identifying the user.withUserPolicyList
(PolicyDetail... userPolicyList) A list of the inline policies embedded in the user.withUserPolicyList
(Collection<PolicyDetail> userPolicyList) A list of the inline policies embedded in the user.
-
Constructor Details
-
UserDetail
public UserDetail()
-
-
Method Details
-
setPath
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
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
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
The friendly name identifying the user.
- Parameters:
userName
- The friendly name identifying the user.
-
getUserName
The friendly name identifying the user.
- Returns:
- The friendly name identifying the user.
-
withUserName
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
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
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
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
- Parameters:
arn
-
-
getArn
- Returns:
-
withArn
- Parameters:
arn
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreateDate
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
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
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
A list of the inline policies embedded in the user.
- Returns:
- A list of the inline policies embedded in the user.
-
setUserPolicyList
A list of the inline policies embedded in the user.
- Parameters:
userPolicyList
- A list of the inline policies embedded in the user.
-
withUserPolicyList
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
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
A list of IAM groups that the user is in.
- Returns:
- A list of IAM groups that the user is in.
-
setGroupList
A list of IAM groups that the user is in.
- Parameters:
groupList
- A list of IAM groups that the user is in.
-
withGroupList
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
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
A list of the managed policies attached to the user.
- Returns:
- A list of the managed policies attached to the user.
-
setAttachedManagedPolicies
A list of the managed policies attached to the user.
- Parameters:
attachedManagedPolicies
- A list of the managed policies attached to the user.
-
withAttachedManagedPolicies
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-