@Generated(value="software.amazon.awssdk:codegen") public class UserDetail extends Object implements ToCopyableBuilder<UserDetail.Builder,UserDetail>
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 | Class and Description |
---|---|
static interface |
UserDetail.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
Returns the value of the Arn property for this object.
|
List<AttachedPolicy> |
attachedManagedPolicies()
A list of the managed policies attached to the user.
|
static UserDetail.Builder |
builder() |
Instant |
createDate()
The date and time, in ISO 8601 date-time format, when the user was
created.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
List<String> |
groupList()
A list of IAM groups that the user is in.
|
int |
hashCode() |
String |
path()
The path to the user.
|
static Class<? extends UserDetail.Builder> |
serializableBuilderClass() |
UserDetail.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
userId()
The stable and unique string identifying the user.
|
String |
userName()
The friendly name identifying the user.
|
List<PolicyDetail> |
userPolicyList()
A list of the inline policies embedded in the user.
|
copy
public String path()
The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.
public String userName()
The friendly name identifying the user.
public String userId()
The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the Using IAM guide.
public String arn()
public Instant createDate()
The date and time, in ISO 8601 date-time format, when the user was created.
public List<PolicyDetail> userPolicyList()
A list of the inline policies embedded in the user.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> groupList()
A list of IAM groups that the user is in.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<AttachedPolicy> attachedManagedPolicies()
A list of the managed policies attached to the user.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public UserDetail.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<UserDetail.Builder,UserDetail>
public static UserDetail.Builder builder()
public static Class<? extends UserDetail.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.