public class GetPolicyResult extends Object implements Serializable
The output from the GetPolicy operation.
| Constructor and Description |
|---|
GetPolicyResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDefaultVersionId()
The default policy version ID.
|
String |
getPolicyArn()
The policy ARN.
|
String |
getPolicyDocument()
The JSON document that describes the policy.
|
String |
getPolicyName()
The policy name.
|
int |
hashCode() |
void |
setDefaultVersionId(String defaultVersionId)
The default policy version ID.
|
void |
setPolicyArn(String policyArn)
The policy ARN.
|
void |
setPolicyDocument(String policyDocument)
The JSON document that describes the policy.
|
void |
setPolicyName(String policyName)
The policy name.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetPolicyResult |
withDefaultVersionId(String defaultVersionId)
The default policy version ID.
|
GetPolicyResult |
withPolicyArn(String policyArn)
The policy ARN.
|
GetPolicyResult |
withPolicyDocument(String policyDocument)
The JSON document that describes the policy.
|
GetPolicyResult |
withPolicyName(String policyName)
The policy name.
|
public String getPolicyName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
public void setPolicyName(String policyName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName - The policy name.public GetPolicyResult 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 policy name.public String getPolicyArn()
public void setPolicyArn(String policyArn)
policyArn - The policy ARN.public GetPolicyResult withPolicyArn(String policyArn)
Returns a reference to this object so that method calls can be chained together.
policyArn - The policy ARN.public String getPolicyDocument()
public void setPolicyDocument(String policyDocument)
policyDocument - The JSON document that describes the policy.public GetPolicyResult withPolicyDocument(String policyDocument)
Returns a reference to this object so that method calls can be chained together.
policyDocument - The JSON document that describes the policy.public String getDefaultVersionId()
Constraints:
Pattern: [0-9]+
public void setDefaultVersionId(String defaultVersionId)
Constraints:
Pattern: [0-9]+
defaultVersionId - The default policy version ID.public GetPolicyResult withDefaultVersionId(String defaultVersionId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [0-9]+
defaultVersionId - The default policy version ID.public String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.