public class PolicyDetail extends Object implements Serializable
Contains information about an IAM policy, including the policy document.
This data type is used as a response element in the GetAccountAuthorizationDetails action.
Constructor and Description |
---|
PolicyDetail() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getPolicyDocument()
The policy document.
|
String |
getPolicyName()
The name of the policy.
|
int |
hashCode() |
void |
setPolicyDocument(String policyDocument)
The policy document.
|
void |
setPolicyName(String policyName)
The name of the policy.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PolicyDetail |
withPolicyDocument(String policyDocument)
The policy document.
|
PolicyDetail |
withPolicyName(String policyName)
The name of the policy.
|
public String getPolicyName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
public void setPolicyName(String policyName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
policyName
- The name of the policy.public PolicyDetail withPolicyName(String policyName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
policyName
- The name of the policy.public String getPolicyDocument()
The returned policy is URL-encoded according to RFC 3986.
Constraints:
Length: 1 - 131072
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
The returned policy is URL-encoded according to RFC 3986.
public void setPolicyDocument(String policyDocument)
The returned policy is URL-encoded according to RFC 3986.
Constraints:
Length: 1 - 131072
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
policyDocument
- The policy document. The returned policy is URL-encoded according to RFC 3986.
public PolicyDetail withPolicyDocument(String policyDocument)
The returned policy is URL-encoded according to RFC 3986.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 131072
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
policyDocument
- The policy document. The returned policy is URL-encoded according to RFC 3986.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.