public class CreatePolicyRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
The input for the CreatePolicy operation.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
policyDocument
The JSON document that describes the policy.
|
private java.lang.String |
policyName
The policy name.
|
NOOP
Constructor and Description |
---|
CreatePolicyRequest() |
Modifier and Type | Method and Description |
---|---|
CreatePolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPolicyDocument()
The JSON document that describes the policy.
|
java.lang.String |
getPolicyName()
The policy name.
|
int |
hashCode() |
void |
setPolicyDocument(java.lang.String policyDocument)
The JSON document that describes the policy.
|
void |
setPolicyName(java.lang.String policyName)
The policy name.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreatePolicyRequest |
withPolicyDocument(java.lang.String policyDocument)
The JSON document that describes the policy.
|
CreatePolicyRequest |
withPolicyName(java.lang.String policyName)
The policy name.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String policyName
The policy name.
private java.lang.String policyDocument
The JSON document that describes the policy. policyDocument must have a minimum length of 1, with a maximum length of 2048, excluding whitespace.
public void setPolicyName(java.lang.String policyName)
The policy name.
policyName
- The policy name.public java.lang.String getPolicyName()
The policy name.
public CreatePolicyRequest withPolicyName(java.lang.String policyName)
The policy name.
policyName
- The policy name.public void setPolicyDocument(java.lang.String policyDocument)
The JSON document that describes the policy. policyDocument must have a minimum length of 1, with a maximum length of 2048, excluding whitespace.
policyDocument
- The JSON document that describes the policy. policyDocument
must have a minimum length of 1, with a maximum length of 2048,
excluding whitespace.public java.lang.String getPolicyDocument()
The JSON document that describes the policy. policyDocument must have a minimum length of 1, with a maximum length of 2048, excluding whitespace.
public CreatePolicyRequest withPolicyDocument(java.lang.String policyDocument)
The JSON document that describes the policy. policyDocument must have a minimum length of 1, with a maximum length of 2048, excluding whitespace.
policyDocument
- The JSON document that describes the policy. policyDocument
must have a minimum length of 1, with a maximum length of 2048,
excluding whitespace.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 CreatePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()