public class PolicyDetail
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about an IAM policy, including the policy document.
This data type is used as a response element in the GetAccountAuthorizationDetails action.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
policyDocument
The policy document.
|
private java.lang.String |
policyName
The name of the policy.
|
Constructor and Description |
---|
PolicyDetail() |
Modifier and Type | Method and Description |
---|---|
PolicyDetail |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPolicyDocument()
The policy document.
|
java.lang.String |
getPolicyName()
The name of the policy.
|
int |
hashCode() |
void |
setPolicyDocument(java.lang.String policyDocument)
The policy document.
|
void |
setPolicyName(java.lang.String policyName)
The name of the policy.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PolicyDetail |
withPolicyDocument(java.lang.String policyDocument)
The policy document.
|
PolicyDetail |
withPolicyName(java.lang.String policyName)
The name of the policy.
|
private java.lang.String policyName
The name of the policy.
private java.lang.String policyDocument
The policy document.
public void setPolicyName(java.lang.String policyName)
The name of the policy.
policyName
- The name of the policy.public java.lang.String getPolicyName()
The name of the policy.
public PolicyDetail withPolicyName(java.lang.String policyName)
The name of the policy.
policyName
- The name of the policy.public void setPolicyDocument(java.lang.String policyDocument)
The policy document.
policyDocument
- The policy document.public java.lang.String getPolicyDocument()
The policy document.
public PolicyDetail withPolicyDocument(java.lang.String policyDocument)
The policy document.
policyDocument
- The policy document.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 PolicyDetail clone()
clone
in class java.lang.Object