public class CreatePolicyVersionResult extends Object implements Serializable
The output of the CreatePolicyVersion operation.
| Constructor and Description |
|---|
CreatePolicyVersionResult() |
| 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 |
getPolicyVersionId()
The policy version ID.
|
int |
hashCode() |
Boolean |
isIsDefaultVersion()
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 |
setPolicyVersionId(String policyVersionId)
The policy version ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreatePolicyVersionResult |
withIsDefaultVersion(Boolean isDefaultVersion)
Specifies whether the policy version is the default.
|
CreatePolicyVersionResult |
withPolicyArn(String policyArn)
The policy ARN.
|
CreatePolicyVersionResult |
withPolicyDocument(String policyDocument)
The JSON document that describes the policy.
|
CreatePolicyVersionResult |
withPolicyVersionId(String policyVersionId)
The policy version ID.
|
public String getPolicyArn()
The policy ARN.
The policy ARN.
public void setPolicyArn(String policyArn)
The policy ARN.
policyArn - The policy ARN.
public CreatePolicyVersionResult 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 CreatePolicyVersionResult 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 getPolicyVersionId()
The policy version ID.
Constraints:
Pattern: [0-9]+
The policy version ID.
public void setPolicyVersionId(String policyVersionId)
The policy version ID.
Constraints:
Pattern: [0-9]+
policyVersionId - The policy version ID.
public CreatePolicyVersionResult withPolicyVersionId(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 Boolean isIsDefaultVersion()
Specifies whether the policy version is the default.
Specifies whether the policy version is the default.
public Boolean getIsDefaultVersion()
Specifies whether the policy version is the default.
Specifies whether the policy version is the default.
public void setIsDefaultVersion(Boolean isDefaultVersion)
Specifies whether the policy version is the default.
isDefaultVersion - Specifies whether the policy version is the default.
public CreatePolicyVersionResult withIsDefaultVersion(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 String toString()
toString in class ObjectObject.toString()Copyright © 2017. All rights reserved.