public class GetPolicyVersionResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The output from the GetPolicyVersion operation.
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
isDefaultVersion
Specifies whether the policy version is the default.
|
private java.lang.String |
policyArn
The policy ARN.
|
private java.lang.String |
policyDocument
The JSON document that describes the policy.
|
private java.lang.String |
policyName
The policy name.
|
private java.lang.String |
policyVersionId
The policy version ID.
|
Constructor and Description |
---|
GetPolicyVersionResult() |
Modifier and Type | Method and Description |
---|---|
GetPolicyVersionResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getIsDefaultVersion()
Specifies whether the policy version is the default.
|
java.lang.String |
getPolicyArn()
The policy ARN.
|
java.lang.String |
getPolicyDocument()
The JSON document that describes the policy.
|
java.lang.String |
getPolicyName()
The policy name.
|
java.lang.String |
getPolicyVersionId()
The policy version ID.
|
int |
hashCode() |
java.lang.Boolean |
isDefaultVersion()
Specifies whether the policy version is the default.
|
void |
setIsDefaultVersion(java.lang.Boolean isDefaultVersion)
Specifies whether the policy version is the default.
|
void |
setPolicyArn(java.lang.String policyArn)
The policy ARN.
|
void |
setPolicyDocument(java.lang.String policyDocument)
The JSON document that describes the policy.
|
void |
setPolicyName(java.lang.String policyName)
The policy name.
|
void |
setPolicyVersionId(java.lang.String policyVersionId)
The policy version ID.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetPolicyVersionResult |
withIsDefaultVersion(java.lang.Boolean isDefaultVersion)
Specifies whether the policy version is the default.
|
GetPolicyVersionResult |
withPolicyArn(java.lang.String policyArn)
The policy ARN.
|
GetPolicyVersionResult |
withPolicyDocument(java.lang.String policyDocument)
The JSON document that describes the policy.
|
GetPolicyVersionResult |
withPolicyName(java.lang.String policyName)
The policy name.
|
GetPolicyVersionResult |
withPolicyVersionId(java.lang.String policyVersionId)
The policy version ID.
|
private java.lang.String policyArn
The policy ARN.
private java.lang.String policyName
The policy name.
private java.lang.String policyDocument
The JSON document that describes the policy.
private java.lang.String policyVersionId
The policy version ID.
private java.lang.Boolean isDefaultVersion
Specifies whether the policy version is the default.
public void setPolicyArn(java.lang.String policyArn)
The policy ARN.
policyArn
- The policy ARN.public java.lang.String getPolicyArn()
The policy ARN.
public GetPolicyVersionResult withPolicyArn(java.lang.String policyArn)
The policy ARN.
policyArn
- The policy ARN.public void setPolicyName(java.lang.String policyName)
The policy name.
policyName
- The policy name.public java.lang.String getPolicyName()
The policy name.
public GetPolicyVersionResult withPolicyName(java.lang.String policyName)
The policy name.
policyName
- The policy name.public void setPolicyDocument(java.lang.String policyDocument)
The JSON document that describes the policy.
policyDocument
- The JSON document that describes the policy.public java.lang.String getPolicyDocument()
The JSON document that describes the policy.
public GetPolicyVersionResult withPolicyDocument(java.lang.String policyDocument)
The JSON document that describes the policy.
policyDocument
- The JSON document that describes the policy.public void setPolicyVersionId(java.lang.String policyVersionId)
The policy version ID.
policyVersionId
- The policy version ID.public java.lang.String getPolicyVersionId()
The policy version ID.
public GetPolicyVersionResult withPolicyVersionId(java.lang.String policyVersionId)
The policy version ID.
policyVersionId
- The policy version ID.public void setIsDefaultVersion(java.lang.Boolean isDefaultVersion)
Specifies whether the policy version is the default.
isDefaultVersion
- Specifies whether the policy version is the default.public java.lang.Boolean getIsDefaultVersion()
Specifies whether the policy version is the default.
public GetPolicyVersionResult withIsDefaultVersion(java.lang.Boolean isDefaultVersion)
Specifies whether the policy version is the default.
isDefaultVersion
- Specifies whether the policy version is the default.public java.lang.Boolean isDefaultVersion()
Specifies whether the policy version is the default.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public GetPolicyVersionResult clone()
clone
in class java.lang.Object