@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 action.
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.
|
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(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 void setPath(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 String getPath()
The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.
public UserDetail withPath(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(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 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 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(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(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 String toString()
toString
in class Object
Object.toString()
public UserDetail clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.