@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 operation.
Constructor and Description |
---|
UserDetail() |
Modifier and Type | Method and 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.
|
AttachedPermissionsBoundary |
getPermissionsBoundary()
The ARN of the policy used to set the permissions boundary for the user.
|
List<Tag> |
getTags()
A list of tags that are associated with 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 |
setPermissionsBoundary(AttachedPermissionsBoundary permissionsBoundary)
The ARN of the policy used to set the permissions boundary for the user.
|
void |
setTags(Collection<Tag> tags)
A list of tags that are associated with 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.
|
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(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 |
withPermissionsBoundary(AttachedPermissionsBoundary permissionsBoundary)
The ARN of the policy used to set the permissions boundary for the user.
|
UserDetail |
withTags(Collection<Tag> tags)
A list of tags that are associated with the user.
|
UserDetail |
withTags(Tag... tags)
A list of tags that are associated with 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 void setPath(String path)
The path to the user. For more information about paths, see IAM identifiers in the IAM User Guide.
path
- The path to the user. For more information about paths, see IAM identifiers in the
IAM User Guide.public String getPath()
The path to the user. For more information about paths, see IAM identifiers in the IAM User Guide.
public UserDetail withPath(String path)
The path to the user. For more information about paths, see IAM identifiers in the IAM User Guide.
path
- The path to the user. For more information about paths, see IAM identifiers in the
IAM User Guide.public void setUserName(String userName)
The friendly name identifying the user.
userName
- The friendly name identifying the user.public String getUserName()
The friendly name identifying the user.
public UserDetail withUserName(String userName)
The friendly name identifying the user.
userName
- The friendly name identifying the user.public void setUserId(String userId)
The stable and unique string identifying the user. For more information about IDs, see IAM identifiers in the IAM User Guide.
userId
- The stable and unique string identifying the user. For more information about IDs, see IAM identifiers in the
IAM User Guide.public String getUserId()
The stable and unique string identifying the user. For more information about IDs, see IAM identifiers in the IAM User Guide.
public UserDetail withUserId(String userId)
The stable and unique string identifying the user. For more information about IDs, see IAM identifiers in the IAM User Guide.
userId
- The stable and unique string identifying the user. For more information about IDs, see IAM identifiers in the
IAM User Guide.public void setArn(String arn)
arn
- public String getArn()
public UserDetail withArn(String arn)
arn
- public void setCreateDate(Date createDate)
The date and time, in ISO 8601 date-time format, when the user was created.
createDate
- The date and time, in ISO 8601 date-time format, when the
user was created.public Date getCreateDate()
The date and time, in ISO 8601 date-time format, when the user was created.
public UserDetail withCreateDate(Date createDate)
The date and time, in ISO 8601 date-time format, when the user was created.
createDate
- The date and time, in ISO 8601 date-time format, when the
user was created.public List<PolicyDetail> getUserPolicyList()
A list of the inline policies embedded in the user.
public void setUserPolicyList(Collection<PolicyDetail> userPolicyList)
A list of the inline policies embedded in the user.
userPolicyList
- A list of the inline policies embedded in the user.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.
userPolicyList
- A list of the inline policies embedded in the user.public UserDetail withUserPolicyList(Collection<PolicyDetail> userPolicyList)
A list of the inline policies embedded in the user.
userPolicyList
- A list of the inline policies embedded in the user.public List<String> getGroupList()
A list of IAM groups that the user is in.
public void setGroupList(Collection<String> groupList)
A list of IAM groups that the user is in.
groupList
- A list of IAM groups that the user is in.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.
groupList
- A list of IAM groups that the user is in.public UserDetail withGroupList(Collection<String> groupList)
A list of IAM groups that the user is in.
groupList
- A list of IAM groups that the user is in.public List<AttachedPolicy> getAttachedManagedPolicies()
A list of the managed policies attached to the user.
public void setAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)
A list of the managed policies attached to the user.
attachedManagedPolicies
- A list of the managed policies attached to the user.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.
attachedManagedPolicies
- A list of the managed policies attached to the user.public UserDetail withAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)
A list of the managed policies attached to the user.
attachedManagedPolicies
- A list of the managed policies attached to the user.public void setPermissionsBoundary(AttachedPermissionsBoundary permissionsBoundary)
The ARN of the policy used to set the permissions boundary for the user.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
permissionsBoundary
- The ARN of the policy used to set the permissions boundary for the user.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
public AttachedPermissionsBoundary getPermissionsBoundary()
The ARN of the policy used to set the permissions boundary for the user.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
public UserDetail withPermissionsBoundary(AttachedPermissionsBoundary permissionsBoundary)
The ARN of the policy used to set the permissions boundary for the user.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
permissionsBoundary
- The ARN of the policy used to set the permissions boundary for the user.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
public List<Tag> getTags()
A list of tags that are associated with the user. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
public void setTags(Collection<Tag> tags)
A list of tags that are associated with the user. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
tags
- A list of tags that are associated with the user. For more information about tagging, see Tagging IAM resources in the
IAM User Guide.public UserDetail withTags(Tag... tags)
A list of tags that are associated with the user. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A list of tags that are associated with the user. For more information about tagging, see Tagging IAM resources in the
IAM User Guide.public UserDetail withTags(Collection<Tag> tags)
A list of tags that are associated with the user. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
tags
- A list of tags that are associated with the user. For more information about tagging, see Tagging IAM resources in the
IAM User Guide.public String toString()
toString
in class Object
Object.toString()
public UserDetail clone()