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