public class CreatePolicyResult extends Object implements Serializable
The output from the CreatePolicy operation.
| Constructor and Description |
|---|
CreatePolicyResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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() |
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.
|
CreatePolicyResult |
withPolicyArn(String policyArn)
The policy ARN.
|
CreatePolicyResult |
withPolicyDocument(String policyDocument)
The JSON document that describes the policy.
|
CreatePolicyResult |
withPolicyName(String policyName)
The policy name.
|
CreatePolicyResult |
withPolicyVersionId(String policyVersionId)
The policy version ID.
|
public String getPolicyName()
The policy name.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
The policy name.
public void setPolicyName(String policyName)
The policy name.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName - The policy name.
public CreatePolicyResult withPolicyName(String policyName)
The policy name.
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 getPolicyArn()
The policy ARN.
The policy ARN.
public void setPolicyArn(String policyArn)
The policy ARN.
policyArn - The policy ARN.
public CreatePolicyResult 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 CreatePolicyResult 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 CreatePolicyResult 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 String toString()
toString in class ObjectObject.toString()Copyright © 2017. All rights reserved.