Interface CreateAutomatedReasoningPolicyVersionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,BedrockRequest.Builder
,Buildable
,CopyableBuilder<CreateAutomatedReasoningPolicyVersionRequest.Builder,
,CreateAutomatedReasoningPolicyVersionRequest> SdkBuilder<CreateAutomatedReasoningPolicyVersionRequest.Builder,
,CreateAutomatedReasoningPolicyVersionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateAutomatedReasoningPolicyVersionRequest
@Mutable
@NotThreadSafe
public static interface CreateAutomatedReasoningPolicyVersionRequest.Builder
extends BedrockRequest.Builder, SdkPojo, CopyableBuilder<CreateAutomatedReasoningPolicyVersionRequest.Builder,CreateAutomatedReasoningPolicyVersionRequest>
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken
(String clientRequestToken) A unique, case-sensitive identifier to ensure that the operation completes no more than one time.lastUpdatedDefinitionHash
(String lastUpdatedDefinitionHash) The hash of the current policy definition used as a concurrency token to ensure the policy hasn't been modified since you last retrieved it.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The Amazon Resource Name (ARN) of the Automated Reasoning policy for which to create a version.tags
(Collection<Tag> tags) A list of tags to associate with the policy version.tags
(Consumer<Tag.Builder>... tags) A list of tags to associate with the policy version.A list of tags to associate with the policy version.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.bedrock.model.BedrockRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
policyArn
The Amazon Resource Name (ARN) of the Automated Reasoning policy for which to create a version.
- Parameters:
policyArn
- The Amazon Resource Name (ARN) of the Automated Reasoning policy for which to create a version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.
- Parameters:
clientRequestToken
- A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedDefinitionHash
CreateAutomatedReasoningPolicyVersionRequest.Builder lastUpdatedDefinitionHash(String lastUpdatedDefinitionHash) The hash of the current policy definition used as a concurrency token to ensure the policy hasn't been modified since you last retrieved it.
- Parameters:
lastUpdatedDefinitionHash
- The hash of the current policy definition used as a concurrency token to ensure the policy hasn't been modified since you last retrieved it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags to associate with the policy version.
- Parameters:
tags
- A list of tags to associate with the policy version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags to associate with the policy version.
- Parameters:
tags
- A list of tags to associate with the policy version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags to associate with the policy version.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateAutomatedReasoningPolicyVersionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateAutomatedReasoningPolicyVersionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-