@Generated(value="software.amazon.awssdk:codegen") public final class PolicyUser extends Object implements SdkPojo, Serializable, 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 operation.
For more information about managed policies, refer to Managed policies and inline policies in the IAM User 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) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends PolicyUser.Builder> |
serializableBuilderClass() |
PolicyUser.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
userId()
The stable and unique string identifying the user.
|
String |
userName()
The name (friendly name, not ARN) identifying the user.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String userName()
The name (friendly name, not ARN) identifying the user.
public final 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()
toBuilder in interface ToCopyableBuilder<PolicyUser.Builder,PolicyUser>public static PolicyUser.Builder builder()
public static Class<? extends PolicyUser.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.