Class AttachedPolicy
java.lang.Object
software.amazon.awssdk.services.iam.model.AttachedPolicy
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AttachedPolicy.Builder,AttachedPolicy>
@Generated("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.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic AttachedPolicy.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringReturns the value of the PolicyArn property for this object.final StringThe friendly name of the attached policy.static Class<? extends AttachedPolicy.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
policyName
The friendly name of the attached policy.
- Returns:
- The friendly name of the attached policy.
-
policyArn
Returns the value of the PolicyArn property for this object.- Returns:
- The value of the PolicyArn property for this object.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<AttachedPolicy.Builder,AttachedPolicy>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-