Class PolicyDetail
- java.lang.Object
-
- com.amazonaws.services.identitymanagement.model.PolicyDetail
-
- All Implemented Interfaces:
Serializable,Cloneable
public class PolicyDetail extends Object implements Serializable, Cloneable
Contains information about an IAM policy, including the policy document.
This data type is used as a response element in the GetAccountAuthorizationDetails action.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PolicyDetail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyDetailclone()booleanequals(Object obj)StringgetPolicyDocument()The policy document.StringgetPolicyName()The name of the policy.inthashCode()voidsetPolicyDocument(String policyDocument)The policy document.voidsetPolicyName(String policyName)The name of the policy.StringtoString()Returns a string representation of this object; useful for testing and debugging.PolicyDetailwithPolicyDocument(String policyDocument)The policy document.PolicyDetailwithPolicyName(String policyName)The name of the policy.
-
-
-
Method Detail
-
setPolicyName
public void setPolicyName(String policyName)
The name of the policy.
- Parameters:
policyName- The name of the policy.
-
getPolicyName
public String getPolicyName()
The name of the policy.
- Returns:
- The name of the policy.
-
withPolicyName
public PolicyDetail withPolicyName(String policyName)
The name of the policy.
- Parameters:
policyName- The name of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPolicyDocument
public void setPolicyDocument(String policyDocument)
The policy document.
- Parameters:
policyDocument- The policy document.
-
getPolicyDocument
public String getPolicyDocument()
The policy document.
- Returns:
- The policy document.
-
withPolicyDocument
public PolicyDetail withPolicyDocument(String policyDocument)
The policy document.
- Parameters:
policyDocument- The policy document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PolicyDetail clone()
-
-