public class CreatePolicyVersionResult
extends java.lang.Object
implements java.io.Serializable
The output of the CreatePolicyVersion operation.
Constructor and Description |
---|
CreatePolicyVersionResult() |
Modifier and Type | Method and Description |
---|---|
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 |
isIsDefaultVersion()
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.
|
public java.lang.String getPolicyArn()
The policy ARN.
The policy ARN.
public void setPolicyArn(java.lang.String policyArn)
The policy ARN.
policyArn
- The policy ARN.
public CreatePolicyVersionResult withPolicyArn(java.lang.String policyArn)
The policy ARN.
Returns a reference to this object so that method calls can be chained together.
policyArn
- The policy ARN.
public java.lang.String getPolicyDocument()
The JSON document that describes the policy.
The JSON document that describes the policy.
public void setPolicyDocument(java.lang.String policyDocument)
The JSON document that describes the policy.
policyDocument
- The JSON document that describes the policy.
public CreatePolicyVersionResult withPolicyDocument(java.lang.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 java.lang.String getPolicyVersionId()
The policy version ID.
Constraints:
Pattern: [0-9]+
The policy version ID.
public void setPolicyVersionId(java.lang.String policyVersionId)
The policy version ID.
Constraints:
Pattern: [0-9]+
policyVersionId
- The policy version ID.
public CreatePolicyVersionResult withPolicyVersionId(java.lang.String policyVersionId)
The policy version ID.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [0-9]+
policyVersionId
- The policy version ID.
public java.lang.Boolean isIsDefaultVersion()
Specifies whether the policy version is the default.
Specifies whether the policy version is the default.
public java.lang.Boolean getIsDefaultVersion()
Specifies whether the policy version is the default.
Specifies whether the policy version is the default.
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 CreatePolicyVersionResult withIsDefaultVersion(java.lang.Boolean isDefaultVersion)
Specifies whether the policy version is the default.
Returns a reference to this object so that method calls can be chained together.
isDefaultVersion
- Specifies whether the policy version is the default.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.