Class AttachedPolicy
java.lang.Object
com.amazonaws.services.identitymanagement.model.AttachedPolicy
- All Implemented Interfaces:
Serializable,Cloneable
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe friendly name of the attached policy.inthashCode()voidsetPolicyArn(String policyArn) voidsetPolicyName(String policyName) The friendly name of the attached policy.toString()Returns a string representation of this object; useful for testing and debugging.withPolicyArn(String policyArn) withPolicyName(String policyName) The friendly name of the attached policy.
-
Constructor Details
-
AttachedPolicy
public AttachedPolicy()
-
-
Method Details
-
setPolicyName
The friendly name of the attached policy.
- Parameters:
policyName- The friendly name of the attached policy.
-
getPolicyName
The friendly name of the attached policy.
- Returns:
- The friendly name of the attached policy.
-
withPolicyName
The friendly name of the attached policy.
- Parameters:
policyName- The friendly name of the attached policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPolicyArn
- Parameters:
policyArn-
-
getPolicyArn
- Returns:
-
withPolicyArn
- Parameters:
policyArn-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-