public class AttachedPolicy
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
policyArn |
private java.lang.String |
policyName
The friendly name of the attached policy.
|
Constructor and Description |
---|
AttachedPolicy() |
Modifier and Type | Method and Description |
---|---|
AttachedPolicy |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPolicyArn() |
java.lang.String |
getPolicyName()
The friendly name of the attached policy.
|
int |
hashCode() |
void |
setPolicyArn(java.lang.String policyArn) |
void |
setPolicyName(java.lang.String policyName)
The friendly name of the attached policy.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttachedPolicy |
withPolicyArn(java.lang.String policyArn) |
AttachedPolicy |
withPolicyName(java.lang.String policyName)
The friendly name of the attached policy.
|
private java.lang.String policyName
The friendly name of the attached policy.
private java.lang.String policyArn
public void setPolicyName(java.lang.String policyName)
The friendly name of the attached policy.
policyName
- The friendly name of the attached policy.public java.lang.String getPolicyName()
The friendly name of the attached policy.
public AttachedPolicy withPolicyName(java.lang.String policyName)
The friendly name of the attached policy.
policyName
- The friendly name of the attached policy.public void setPolicyArn(java.lang.String policyArn)
policyArn
- public java.lang.String getPolicyArn()
public AttachedPolicy withPolicyArn(java.lang.String policyArn)
policyArn
- public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AttachedPolicy clone()
clone
in class java.lang.Object