Interface CreateCurationPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ContextRequest.Builder,CopyableBuilder<CreateCurationPolicyRequest.Builder,,CreateCurationPolicyRequest> SdkBuilder<CreateCurationPolicyRequest.Builder,,CreateCurationPolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateCurationPolicyRequest
-
Method Summary
Modifier and TypeMethodDescriptionautoRejectAfterSeconds(Long autoRejectAfterSeconds) The number of seconds that a curation proposal held for review under this policy can wait for a decision before it is rejected automatically.clientToken(String clientToken) A unique, case-sensitive identifier that you provide to make the request idempotent.description(String description) A description of the curation policy.The name of the curation policy.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policyDocument(String policyDocument) The policy's rules, as a Cedar policy document.Tags to add to the curation policy when you create it: up to 200 in the request, of which at most 50 can be user tags.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.context.model.ContextRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
clientToken
A unique, case-sensitive identifier that you provide to make the request idempotent. A retry with the same token and the same parameters returns the curation policy that the first request created. If you don't specify one, the AWS SDKs generate one.
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to make the request idempotent. A retry with the same token and the same parameters returns the curation policy that the first request created. If you don't specify one, the AWS SDKs generate one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the curation policy. 3 to 63 characters: it must start with a letter and can contain only ASCII letters, digits, and hyphens.
- Parameters:
name- The name of the curation policy. 3 to 63 characters: it must start with a letter and can contain only ASCII letters, digits, and hyphens.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the curation policy. Up to 1,024 characters, with no control characters.
- Parameters:
description- A description of the curation policy. Up to 1,024 characters, with no control characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDocument
The policy's rules, as a Cedar policy document.
- Parameters:
policyDocument- The policy's rules, as a Cedar policy document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoRejectAfterSeconds
The number of seconds that a curation proposal held for review under this policy can wait for a decision before it is rejected automatically. Valid range: 86,400 (1 day) to 15,552,000 (180 days). If you omit it, proposals held under this policy are never rejected automatically.
- Parameters:
autoRejectAfterSeconds- The number of seconds that a curation proposal held for review under this policy can wait for a decision before it is rejected automatically. Valid range: 86,400 (1 day) to 15,552,000 (180 days). If you omit it, proposals held under this policy are never rejected automatically.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Tags to add to the curation policy when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can't start with
aws:. To add tags, you also needcontext:TagResourcepermission on the new curation policy. If you specify more than 50 user tags, the request fails withServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails withValidationException.- Parameters:
tags- Tags to add to the curation policy when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can't start withaws:. To add tags, you also needcontext:TagResourcepermission on the new curation policy. If you specify more than 50 user tags, the request fails withServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails withValidationException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateCurationPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateCurationPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-