@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 object for all fields except the handler context. 
 | 
boolean | 
equals(Object obj)  | 
String | 
getPolicyDocument()
 The JSON document that describes the policy. 
 | 
String | 
getPolicyName()
 The policy name. 
 | 
List<Tag> | 
getTags()
 Metadata which can be used to manage the policy. 
 | 
int | 
hashCode()  | 
void | 
setPolicyDocument(String policyDocument)
 The JSON document that describes the policy. 
 | 
void | 
setPolicyName(String policyName)
 The policy name. 
 | 
void | 
setTags(Collection<Tag> tags)
 Metadata which can be used to manage the policy. 
 | 
String | 
toString()
Returns a string representation of this object. 
 | 
CreatePolicyRequest | 
withPolicyDocument(String policyDocument)
 The JSON document that describes the policy. 
 | 
CreatePolicyRequest | 
withPolicyName(String policyName)
 The policy name. 
 | 
CreatePolicyRequest | 
withTags(Collection<Tag> tags)
 Metadata which can be used to manage the policy. 
 | 
CreatePolicyRequest | 
withTags(Tag... tags)
 Metadata which can be used to manage the policy. 
 | 
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, 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 List<Tag> getTags()
Metadata which can be used to manage the policy.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
public void setTags(Collection<Tag> tags)
Metadata which can be used to manage the policy.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
tags - Metadata which can be used to manage the policy. For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
public CreatePolicyRequest withTags(Tag... tags)
Metadata which can be used to manage the policy.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
 NOTE: This method appends the values to the existing list (if any). Use
 setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the
 existing values.
 
tags - Metadata which can be used to manage the policy. For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
public CreatePolicyRequest withTags(Collection<Tag> tags)
Metadata which can be used to manage the policy.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
tags - Metadata which can be used to manage the policy. For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
public String toString()
toString in class ObjectObject.toString()public CreatePolicyRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()