public class CreatePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The input for the CreatePolicy operation.
NOOP| Constructor and Description | 
|---|
| CreatePolicyRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| CreatePolicyRequest | clone()Creates a shallow clone of this request. | 
| boolean | equals(Object obj) | 
| String | getPolicyDocument()
 The JSON document that describes the policy. | 
| String | getPolicyName()
 The policy name. | 
| int | hashCode() | 
| void | setPolicyDocument(String policyDocument)
 The JSON document that describes the policy. | 
| void | setPolicyName(String policyName)
 The policy name. | 
| String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| CreatePolicyRequest | withPolicyDocument(String policyDocument)
 The JSON document that describes the policy. | 
| CreatePolicyRequest | withPolicyName(String policyName)
 The policy name. | 
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setPolicyName(String policyName)
The policy name.
policyName - The policy name.public String getPolicyName()
The policy name.
public CreatePolicyRequest withPolicyName(String policyName)
The policy name.
policyName - The policy name.public void setPolicyDocument(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 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(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 String toString()
toString in class ObjectObject.toString()public CreatePolicyRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.