@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreatePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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 | getClientToken()
 Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. | 
| PolicyDefinition | getDefinition()
 A structure that specifies the policy type and content to use for the new policy. | 
| String | getPolicyStoreId()
 Specifies the  PolicyStoreIdof the policy store you want to store the policy in. | 
| int | hashCode() | 
| void | setClientToken(String clientToken)
 Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. | 
| void | setDefinition(PolicyDefinition definition)
 A structure that specifies the policy type and content to use for the new policy. | 
| void | setPolicyStoreId(String policyStoreId)
 Specifies the  PolicyStoreIdof the policy store you want to store the policy in. | 
| String | toString()Returns a string representation of this object. | 
| CreatePolicyRequest | withClientToken(String clientToken)
 Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. | 
| CreatePolicyRequest | withDefinition(PolicyDefinition definition)
 A structure that specifies the policy type and content to use for the new policy. | 
| CreatePolicyRequest | withPolicyStoreId(String policyStoreId)
 Specifies the  PolicyStoreIdof the policy store you want to store the policy in. | 
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 setClientToken(String clientToken)
Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
 If you retry the operation with the same ClientToken, but with different parameters, the retry fails
 with an ConflictException error.
 
 Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request
 with the same parameters performs the operation again regardless of the value of ClientToken.
 
clientToken - Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets
        you safely retry the request without accidentally performing the same operation a second time. Passing the
        same value to a later call to an operation requires that you also pass the same value for all other
        parameters. We recommend that you use a UUID type of value..
        If you don't provide this value, then Amazon Web Services generates a random one for you.
        If you retry the operation with the same ClientToken, but with different parameters, the
        retry fails with an ConflictException error.
        
        Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next
        request with the same parameters performs the operation again regardless of the value of
        ClientToken.
public String getClientToken()
Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
 If you retry the operation with the same ClientToken, but with different parameters, the retry fails
 with an ConflictException error.
 
 Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request
 with the same parameters performs the operation again regardless of the value of ClientToken.
 
If you don't provide this value, then Amazon Web Services generates a random one for you.
         If you retry the operation with the same ClientToken, but with different parameters, the
         retry fails with an ConflictException error.
         
         Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next
         request with the same parameters performs the operation again regardless of the value of
         ClientToken.
public CreatePolicyRequest withClientToken(String clientToken)
Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
 If you retry the operation with the same ClientToken, but with different parameters, the retry fails
 with an ConflictException error.
 
 Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request
 with the same parameters performs the operation again regardless of the value of ClientToken.
 
clientToken - Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets
        you safely retry the request without accidentally performing the same operation a second time. Passing the
        same value to a later call to an operation requires that you also pass the same value for all other
        parameters. We recommend that you use a UUID type of value..
        If you don't provide this value, then Amazon Web Services generates a random one for you.
        If you retry the operation with the same ClientToken, but with different parameters, the
        retry fails with an ConflictException error.
        
        Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next
        request with the same parameters performs the operation again regardless of the value of
        ClientToken.
public void setPolicyStoreId(String policyStoreId)
 Specifies the PolicyStoreId of the policy store you want to store the policy in.
 
policyStoreId - Specifies the PolicyStoreId of the policy store you want to store the policy in.public String getPolicyStoreId()
 Specifies the PolicyStoreId of the policy store you want to store the policy in.
 
PolicyStoreId of the policy store you want to store the policy in.public CreatePolicyRequest withPolicyStoreId(String policyStoreId)
 Specifies the PolicyStoreId of the policy store you want to store the policy in.
 
policyStoreId - Specifies the PolicyStoreId of the policy store you want to store the policy in.public void setDefinition(PolicyDefinition definition)
A structure that specifies the policy type and content to use for the new policy. You must include either a static or a templateLinked element. The policy content must be written in the Cedar policy language.
definition - A structure that specifies the policy type and content to use for the new policy. You must include either
        a static or a templateLinked element. The policy content must be written in the Cedar policy language.public PolicyDefinition getDefinition()
A structure that specifies the policy type and content to use for the new policy. You must include either a static or a templateLinked element. The policy content must be written in the Cedar policy language.
public CreatePolicyRequest withDefinition(PolicyDefinition definition)
A structure that specifies the policy type and content to use for the new policy. You must include either a static or a templateLinked element. The policy content must be written in the Cedar policy language.
definition - A structure that specifies the policy type and content to use for the new policy. You must include either
        a static or a templateLinked element. The policy content must be written in the Cedar policy language.public String toString()
toString in class ObjectObject.toString()public CreatePolicyRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()