public class CreatePolicyVersionResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The output of the CreatePolicyVersion 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 |
policyVersionId
The policy version ID.
|
Constructor and Description |
---|
CreatePolicyVersionResult() |
Modifier and Type | Method and Description |
---|---|
CreatePolicyVersionResult |
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 |
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 |
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.
|
CreatePolicyVersionResult |
withIsDefaultVersion(java.lang.Boolean isDefaultVersion)
Specifies whether the policy version is the default.
|
CreatePolicyVersionResult |
withPolicyArn(java.lang.String policyArn)
The policy ARN.
|
CreatePolicyVersionResult |
withPolicyDocument(java.lang.String policyDocument)
The JSON document that describes the policy.
|
CreatePolicyVersionResult |
withPolicyVersionId(java.lang.String policyVersionId)
The policy version ID.
|
private java.lang.String policyArn
The policy ARN.
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 CreatePolicyVersionResult withPolicyArn(java.lang.String policyArn)
The policy ARN.
policyArn
- The policy ARN.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 CreatePolicyVersionResult 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 CreatePolicyVersionResult 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 CreatePolicyVersionResult 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 CreatePolicyVersionResult clone()
clone
in class java.lang.Object