@Generated(value="software.amazon.awssdk:codegen") public final class PolicyRole extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PolicyRole.Builder,PolicyRole>
Contains information about a role 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 |
PolicyRole.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PolicyRole.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
roleId()
The stable and unique string identifying the role.
|
String |
roleName()
The name (friendly name, not ARN) identifying the role.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PolicyRole.Builder> |
serializableBuilderClass() |
PolicyRole.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String roleName()
The name (friendly name, not ARN) identifying the role.
public final String roleId()
The stable and unique string identifying the role. For more information about IDs, see IAM identifiers in the IAM User Guide.
public PolicyRole.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PolicyRole.Builder,PolicyRole>public static PolicyRole.Builder builder()
public static Class<? extends PolicyRole.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.