@Generated(value="software.amazon.awssdk:codegen") public final class AttachedPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AttachedPolicy.Builder,AttachedPolicy>
Contains information about an attached policy.
An attached policy is a managed policy that has been attached to a user, group, or role. This data type is used as a response element in the ListAttachedGroupPolicies, ListAttachedRolePolicies, ListAttachedUserPolicies, and GetAccountAuthorizationDetails operations.
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 |
AttachedPolicy.Builder |
Modifier and Type | Method and Description |
---|---|
static AttachedPolicy.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
policyArn()
Returns the value of the PolicyArn property for this object.
|
String |
policyName()
The friendly name of the attached policy.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AttachedPolicy.Builder> |
serializableBuilderClass() |
AttachedPolicy.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String policyName()
The friendly name of the attached policy.
public String policyArn()
public AttachedPolicy.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<AttachedPolicy.Builder,AttachedPolicy>
public static AttachedPolicy.Builder builder()
public static Class<? extends AttachedPolicy.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2019. All rights reserved.