public class GetPolicyVersionResult extends Object implements Serializable
The output from the GetPolicyVersion operation.
| Constructor and Description |
|---|
GetPolicyVersionResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Boolean |
getIsDefaultVersion()
Specifies whether the policy version is the default.
|
String |
getPolicyArn()
The policy ARN.
|
String |
getPolicyDocument()
The JSON document that describes the policy.
|
String |
getPolicyName()
The policy name.
|
String |
getPolicyVersionId()
The policy version ID.
|
int |
hashCode() |
Boolean |
isDefaultVersion()
Specifies whether the policy version is the default.
|
void |
setIsDefaultVersion(Boolean isDefaultVersion)
Specifies whether the policy version is the default.
|
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.
|
void |
setPolicyVersionId(String policyVersionId)
The policy version ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetPolicyVersionResult |
withIsDefaultVersion(Boolean isDefaultVersion)
Specifies whether the policy version is the default.
|
GetPolicyVersionResult |
withPolicyArn(String policyArn)
The policy ARN.
|
GetPolicyVersionResult |
withPolicyDocument(String policyDocument)
The JSON document that describes the policy.
|
GetPolicyVersionResult |
withPolicyName(String policyName)
The policy name.
|
GetPolicyVersionResult |
withPolicyVersionId(String policyVersionId)
The policy version ID.
|
public String getPolicyArn()
public void setPolicyArn(String policyArn)
policyArn - The policy ARN.public GetPolicyVersionResult withPolicyArn(String policyArn)
Returns a reference to this object so that method calls can be chained together.
policyArn - The policy ARN.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 GetPolicyVersionResult 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 getPolicyDocument()
public void setPolicyDocument(String policyDocument)
policyDocument - The JSON document that describes the policy.public GetPolicyVersionResult 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 getPolicyVersionId()
Constraints:
Pattern: [0-9]+
public void setPolicyVersionId(String policyVersionId)
Constraints:
Pattern: [0-9]+
policyVersionId - The policy version ID.public GetPolicyVersionResult withPolicyVersionId(String policyVersionId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [0-9]+
policyVersionId - The policy version ID.public Boolean isDefaultVersion()
public void setIsDefaultVersion(Boolean isDefaultVersion)
isDefaultVersion - Specifies whether the policy version is the default.public GetPolicyVersionResult withIsDefaultVersion(Boolean isDefaultVersion)
Returns a reference to this object so that method calls can be chained together.
isDefaultVersion - Specifies whether the policy version is the default.public Boolean getIsDefaultVersion()
public String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.