@Generated(value="software.amazon.awssdk:codegen") public final class CreatePolicyRequest extends VerifiedPermissionsRequest implements ToCopyableBuilder<CreatePolicyRequest.Builder,CreatePolicyRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreatePolicyRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreatePolicyRequest.Builder |
builder() |
String |
clientToken()
Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request.
|
PolicyDefinition |
definition()
A structure that specifies the policy type and content to use for the new policy.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
policyStoreId()
Specifies the
PolicyStoreId of the policy store you want to store the policy in. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreatePolicyRequest.Builder> |
serializableBuilderClass() |
CreatePolicyRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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 IdempotentParameterMismatch error.
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 IdempotentParameterMismatch error.
public final String policyStoreId()
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 final 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.
public CreatePolicyRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreatePolicyRequest.Builder,CreatePolicyRequest>toBuilder in class VerifiedPermissionsRequestpublic static CreatePolicyRequest.Builder builder()
public static Class<? extends CreatePolicyRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.