@Generated(value="software.amazon.awssdk:codegen") public class AttachedPolicy extends Object implements 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 actions.
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 |
AttachedPolicy.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AttachedPolicy.Builder |
builder() |
boolean |
equals(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.
|
static Class<? extends AttachedPolicy.Builder> |
serializableBuilderClass() |
AttachedPolicy.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copypublic String policyName()
The friendly name of the attached policy.
public String policyArn()
public AttachedPolicy.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<AttachedPolicy.Builder,AttachedPolicy>public static AttachedPolicy.Builder builder()
public static Class<? extends AttachedPolicy.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.