@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttachedPolicy extends Object implements 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 operations.
For more information about managed policies, refer to Managed policies and inline policies in the IAM User Guide.
Constructor and Description |
---|
AttachedPolicy() |
Modifier and Type | Method and Description |
---|---|
AttachedPolicy |
clone() |
boolean |
equals(Object obj) |
String |
getPolicyArn() |
String |
getPolicyName()
The friendly name of the attached policy.
|
int |
hashCode() |
void |
setPolicyArn(String policyArn) |
void |
setPolicyName(String policyName)
The friendly name of the attached policy.
|
String |
toString()
Returns a string representation of this object.
|
AttachedPolicy |
withPolicyArn(String policyArn) |
AttachedPolicy |
withPolicyName(String policyName)
The friendly name of the attached policy.
|
public void setPolicyName(String policyName)
The friendly name of the attached policy.
policyName
- The friendly name of the attached policy.public String getPolicyName()
The friendly name of the attached policy.
public AttachedPolicy withPolicyName(String policyName)
The friendly name of the attached policy.
policyName
- The friendly name of the attached policy.public void setPolicyArn(String policyArn)
policyArn
- public String getPolicyArn()
public AttachedPolicy withPolicyArn(String policyArn)
policyArn
- public String toString()
toString
in class Object
Object.toString()
public AttachedPolicy clone()