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.
Constructor and Description |
---|
UserDetail() |
Modifier and Type | Method and Description |
---|---|
UserDetail |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN).
|
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)
The Amazon Resource Name (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)
The Amazon Resource Name (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(Collection<String> groupList)
A list of IAM groups that the user is in.
|
UserDetail |
withGroupList(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(Collection<PolicyDetail> userPolicyList)
A list of the inline policies embedded in the user.
|
UserDetail |
withUserPolicyList(PolicyDetail... userPolicyList)
A list of the inline policies embedded in the user.
|
public String getPath()
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
public void setPath(String path)
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
path
- The path to the user. For more information about paths, see IAM
Identifiers in the Using IAM guide.public UserDetail withPath(String path)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
path
- The path to the user. For more information about paths, see IAM
Identifiers in the Using IAM guide.public String getUserName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
public void setUserName(String userName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
userName
- The friendly name identifying the user.public UserDetail withUserName(String userName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
userName
- The friendly name identifying the user.public String getUserId()
Constraints:
Length: 16 - 32
Pattern: [\w]+
public void setUserId(String userId)
Constraints:
Length: 16 - 32
Pattern: [\w]+
userId
- The stable and unique string identifying the user. For more
information about IDs, see IAM
Identifiers in the Using IAM guide.public UserDetail withUserId(String userId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 16 - 32
Pattern: [\w]+
userId
- The stable and unique string identifying the user. For more
information about IDs, see IAM
Identifiers in the Using IAM guide.public String getArn()
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Constraints:
Length: 20 - 2048
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public void setArn(String arn)
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Constraints:
Length: 20 - 2048
arn
- The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS
resources. For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public UserDetail withArn(String arn)
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
arn
- The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS
resources. For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public Date getCreateDate()
public void setCreateDate(Date createDate)
createDate
- The date and time, in ISO
8601 date-time format, when the user was created.public UserDetail withCreateDate(Date createDate)
Returns a reference to this object so that method calls can be chained together.
createDate
- The date and time, in ISO
8601 date-time format, when the user was created.public List<PolicyDetail> getUserPolicyList()
public void setUserPolicyList(Collection<PolicyDetail> userPolicyList)
userPolicyList
- A list of the inline policies embedded in the user.public UserDetail withUserPolicyList(PolicyDetail... userPolicyList)
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.
Returns a reference to this object so that method calls can be chained together.
userPolicyList
- A list of the inline policies embedded in the user.public UserDetail withUserPolicyList(Collection<PolicyDetail> userPolicyList)
Returns a reference to this object so that method calls can be chained together.
userPolicyList
- A list of the inline policies embedded in the user.public List<String> getGroupList()
public void setGroupList(Collection<String> groupList)
groupList
- A list of IAM groups that the user is in.public UserDetail withGroupList(String... groupList)
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.
Returns a reference to this object so that method calls can be chained together.
groupList
- A list of IAM groups that the user is in.public UserDetail withGroupList(Collection<String> groupList)
Returns a reference to this object so that method calls can be chained together.
groupList
- A list of IAM groups that the user is in.public List<AttachedPolicy> getAttachedManagedPolicies()
public void setAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)
attachedManagedPolicies
- A list of the managed policies attached to the user.public UserDetail withAttachedManagedPolicies(AttachedPolicy... attachedManagedPolicies)
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.
Returns a reference to this object so that method calls can be chained together.
attachedManagedPolicies
- A list of the managed policies attached to the user.public UserDetail withAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)
Returns a reference to this object so that method calls can be chained together.
attachedManagedPolicies
- A list of the managed policies attached to the user.public String toString()
toString
in class Object
Object.toString()
public UserDetail clone()
Copyright © 2015. All rights reserved.