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()
The policy name.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
The policy name.
public void setPolicyName(String policyName)
The policy name.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName - The policy name.
public GetPolicyResult withPolicyName(String policyName)
The policy name.
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()
The policy ARN.
The policy ARN.
public void setPolicyArn(String policyArn)
The policy ARN.
policyArn - The policy ARN.
public GetPolicyResult withPolicyArn(String policyArn)
The policy ARN.
Returns a reference to this object so that method calls can be chained together.
policyArn - The policy ARN.
public String getPolicyDocument()
The JSON document that describes the policy.
The JSON document that describes the policy.
public void setPolicyDocument(String policyDocument)
The JSON document that describes the policy.
policyDocument - The JSON document that describes the policy.
public GetPolicyResult withPolicyDocument(String policyDocument)
The JSON document that describes the policy.
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()
The default policy version ID.
Constraints:
Pattern: [0-9]+
The default policy version ID.
public void setDefaultVersionId(String defaultVersionId)
The default policy version ID.
Constraints:
Pattern: [0-9]+
defaultVersionId - The default policy version ID.
public GetPolicyResult withDefaultVersionId(String defaultVersionId)
The default policy version ID.
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 © 2017. All rights reserved.