@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreatePolicyTemplateRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreatePolicyTemplateRequest() |
Modifier and Type | Method and Description |
---|---|
CreatePolicyTemplateRequest |
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.
|
String |
getDescription()
Specifies a description for the policy template.
|
String |
getPolicyStoreId()
The ID of the policy store in which to create the policy template.
|
String |
getStatement()
Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request.
|
void |
setDescription(String description)
Specifies a description for the policy template.
|
void |
setPolicyStoreId(String policyStoreId)
The ID of the policy store in which to create the policy template.
|
void |
setStatement(String statement)
Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
|
String |
toString()
Returns a string representation of this object.
|
CreatePolicyTemplateRequest |
withClientToken(String clientToken)
Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request.
|
CreatePolicyTemplateRequest |
withDescription(String description)
Specifies a description for the policy template.
|
CreatePolicyTemplateRequest |
withPolicyStoreId(String policyStoreId)
The ID of the policy store in which to create the policy template.
|
CreatePolicyTemplateRequest |
withStatement(String statement)
Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
|
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, withSdkRequestTimeout
public 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 CreatePolicyTemplateRequest 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)
The ID of the policy store in which to create the policy template.
policyStoreId
- The ID of the policy store in which to create the policy template.public String getPolicyStoreId()
The ID of the policy store in which to create the policy template.
public CreatePolicyTemplateRequest withPolicyStoreId(String policyStoreId)
The ID of the policy store in which to create the policy template.
policyStoreId
- The ID of the policy store in which to create the policy template.public void setDescription(String description)
Specifies a description for the policy template.
description
- Specifies a description for the policy template.public String getDescription()
Specifies a description for the policy template.
public CreatePolicyTemplateRequest withDescription(String description)
Specifies a description for the policy template.
description
- Specifies a description for the policy template.public void setStatement(String statement)
Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
statement
- Specifies the content that you want to use for the new policy template, written in the Cedar policy
language.public String getStatement()
Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
public CreatePolicyTemplateRequest withStatement(String statement)
Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
statement
- Specifies the content that you want to use for the new policy template, written in the Cedar policy
language.public String toString()
toString
in class Object
Object.toString()
public CreatePolicyTemplateRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()