public class UserDetail
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
arn |
private SdkInternalList<AttachedPolicy> |
attachedManagedPolicies
A list of the managed policies attached to the user.
|
private java.util.Date |
createDate
The date and time, in ISO 8601
date-time format, when the user was created.
|
private SdkInternalList<java.lang.String> |
groupList
A list of IAM groups that the user is in.
|
private java.lang.String |
path
The path to the user.
|
private java.lang.String |
userId
The stable and unique string identifying the user.
|
private java.lang.String |
userName
The friendly name identifying the user.
|
private SdkInternalList<PolicyDetail> |
userPolicyList
A list of the inline policies embedded in the user.
|
Constructor and Description |
---|
UserDetail() |
Modifier and Type | Method and Description |
---|---|
UserDetail |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn() |
java.util.List<AttachedPolicy> |
getAttachedManagedPolicies()
A list of the managed policies attached to the user.
|
java.util.Date |
getCreateDate()
The date and time, in ISO 8601
date-time format, when the user was created.
|
java.util.List<java.lang.String> |
getGroupList()
A list of IAM groups that the user is in.
|
java.lang.String |
getPath()
The path to the user.
|
java.lang.String |
getUserId()
The stable and unique string identifying the user.
|
java.lang.String |
getUserName()
The friendly name identifying the user.
|
java.util.List<PolicyDetail> |
getUserPolicyList()
A list of the inline policies embedded in the user.
|
int |
hashCode() |
void |
setArn(java.lang.String arn) |
void |
setAttachedManagedPolicies(java.util.Collection<AttachedPolicy> attachedManagedPolicies)
A list of the managed policies attached to the user.
|
void |
setCreateDate(java.util.Date createDate)
The date and time, in ISO 8601
date-time format, when the user was created.
|
void |
setGroupList(java.util.Collection<java.lang.String> groupList)
A list of IAM groups that the user is in.
|
void |
setPath(java.lang.String path)
The path to the user.
|
void |
setUserId(java.lang.String userId)
The stable and unique string identifying the user.
|
void |
setUserName(java.lang.String userName)
The friendly name identifying the user.
|
void |
setUserPolicyList(java.util.Collection<PolicyDetail> userPolicyList)
A list of the inline policies embedded in the user.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UserDetail |
withArn(java.lang.String arn) |
UserDetail |
withAttachedManagedPolicies(AttachedPolicy... attachedManagedPolicies)
A list of the managed policies attached to the user.
|
UserDetail |
withAttachedManagedPolicies(java.util.Collection<AttachedPolicy> attachedManagedPolicies)
A list of the managed policies attached to the user.
|
UserDetail |
withCreateDate(java.util.Date createDate)
The date and time, in ISO 8601
date-time format, when the user was created.
|
UserDetail |
withGroupList(java.util.Collection<java.lang.String> groupList)
A list of IAM groups that the user is in.
|
UserDetail |
withGroupList(java.lang.String... groupList)
A list of IAM groups that the user is in.
|
UserDetail |
withPath(java.lang.String path)
The path to the user.
|
UserDetail |
withUserId(java.lang.String userId)
The stable and unique string identifying the user.
|
UserDetail |
withUserName(java.lang.String userName)
The friendly name identifying the user.
|
UserDetail |
withUserPolicyList(java.util.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.
|
private java.lang.String path
The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.
private java.lang.String userName
The friendly name identifying the user.
private java.lang.String userId
The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the Using IAM guide.
private java.lang.String arn
private java.util.Date createDate
The date and time, in ISO 8601 date-time format, when the user was created.
private SdkInternalList<PolicyDetail> userPolicyList
A list of the inline policies embedded in the user.
private SdkInternalList<java.lang.String> groupList
A list of IAM groups that the user is in.
private SdkInternalList<AttachedPolicy> attachedManagedPolicies
A list of the managed policies attached to the user.
public void setPath(java.lang.String path)
The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.
path
- The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.public java.lang.String getPath()
The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.
public UserDetail withPath(java.lang.String path)
The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.
path
- The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.public void setUserName(java.lang.String userName)
The friendly name identifying the user.
userName
- The friendly name identifying the user.public java.lang.String getUserName()
The friendly name identifying the user.
public UserDetail withUserName(java.lang.String userName)
The friendly name identifying the user.
userName
- The friendly name identifying the user.public void setUserId(java.lang.String userId)
The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the Using IAM guide.
userId
- The stable and unique string identifying the user. For more
information about IDs, see IAM Identifiers in the Using IAM guide.public java.lang.String getUserId()
The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the Using IAM guide.
public UserDetail withUserId(java.lang.String userId)
The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the Using IAM guide.
userId
- The stable and unique string identifying the user. For more
information about IDs, see IAM Identifiers in the Using IAM guide.public void setArn(java.lang.String arn)
arn
- public java.lang.String getArn()
public UserDetail withArn(java.lang.String arn)
arn
- public void setCreateDate(java.util.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 java.util.Date getCreateDate()
The date and time, in ISO 8601 date-time format, when the user was created.
public UserDetail withCreateDate(java.util.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 java.util.List<PolicyDetail> getUserPolicyList()
A list of the inline policies embedded in the user.
public void setUserPolicyList(java.util.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(java.util.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 java.util.List<java.lang.String> getGroupList()
A list of IAM groups that the user is in.
public void setGroupList(java.util.Collection<java.lang.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(java.lang.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(java.util.Collection<java.lang.String> groupList)
A list of IAM groups that the user is in.
groupList
- A list of IAM groups that the user is in.public java.util.List<AttachedPolicy> getAttachedManagedPolicies()
A list of the managed policies attached to the user.
public void setAttachedManagedPolicies(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public UserDetail clone()
clone
in class java.lang.Object