@Generated(value="software.amazon.awssdk:codegen") public final class PolicyUser extends Object implements ToCopyableBuilder<PolicyUser.Builder,PolicyUser>
Contains information about a user that a managed policy is attached to.
This data type is used as a response element in the ListEntitiesForPolicy action.
For more information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.
Modifier and Type | Class and Description |
---|---|
static interface |
PolicyUser.Builder |
Modifier and Type | Method and Description |
---|---|
static PolicyUser.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
static Class<? extends PolicyUser.Builder> |
serializableBuilderClass() |
PolicyUser.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 name (friendly name, not ARN) identifying the user.
|
copy
public String userName()
The name (friendly name, not ARN) identifying the user.
public String userId()
The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the IAM User Guide.
public PolicyUser.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PolicyUser.Builder,PolicyUser>
public static PolicyUser.Builder builder()
public static Class<? extends PolicyUser.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.