Interface CreatePromptRouterRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,BedrockRequest.Builder
,Buildable
,CopyableBuilder<CreatePromptRouterRequest.Builder,
,CreatePromptRouterRequest> SdkBuilder<CreatePromptRouterRequest.Builder,
,CreatePromptRouterRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreatePromptRouterRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken
(String clientRequestToken) A unique, case-sensitive identifier that you provide to ensure idempotency of your requests.description
(String description) An optional description of the prompt router to help identify its purpose.fallbackModel
(Consumer<PromptRouterTargetModel.Builder> fallbackModel) The default model to use when the routing criteria is not met.fallbackModel
(PromptRouterTargetModel fallbackModel) The default model to use when the routing criteria is not met.models
(Collection<PromptRouterTargetModel> models) A list of foundation models that the prompt router can route requests to.models
(Consumer<PromptRouterTargetModel.Builder>... models) A list of foundation models that the prompt router can route requests to.models
(PromptRouterTargetModel... models) A list of foundation models that the prompt router can route requests to.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.promptRouterName
(String promptRouterName) The name of the prompt router.routingCriteria
(Consumer<RoutingCriteria.Builder> routingCriteria) The criteria, which is the response quality difference, used to determine how incoming requests are routed to different models.routingCriteria
(RoutingCriteria routingCriteria) The criteria, which is the response quality difference, used to determine how incoming requests are routed to different models.tags
(Collection<Tag> tags) An array of key-value pairs to apply to this resource as tags.tags
(Consumer<Tag.Builder>... tags) An array of key-value pairs to apply to this resource as tags.An array of key-value pairs to apply to this resource as tags.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
-
clientRequestToken
A unique, case-sensitive identifier that you provide to ensure idempotency of your requests. If not specified, the Amazon Web Services SDK automatically generates one for you.
- Parameters:
clientRequestToken
- A unique, case-sensitive identifier that you provide to ensure idempotency of your requests. If not specified, the Amazon Web Services SDK automatically generates one for you.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptRouterName
The name of the prompt router. The name must be unique within your Amazon Web Services account in the current region.
- Parameters:
promptRouterName
- The name of the prompt router. The name must be unique within your Amazon Web Services account in the current region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
models
A list of foundation models that the prompt router can route requests to. At least one model must be specified.
- Parameters:
models
- A list of foundation models that the prompt router can route requests to. At least one model must be specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
models
A list of foundation models that the prompt router can route requests to. At least one model must be specified.
- Parameters:
models
- A list of foundation models that the prompt router can route requests to. At least one model must be specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
models
A list of foundation models that the prompt router can route requests to. At least one model must be specified.
This is a convenience method that creates an instance of thePromptRouterTargetModel.Builder
avoiding the need to create one manually viaPromptRouterTargetModel.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomodels(List<PromptRouterTargetModel>)
.- Parameters:
models
- a consumer that will call methods onPromptRouterTargetModel.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
An optional description of the prompt router to help identify its purpose.
- Parameters:
description
- An optional description of the prompt router to help identify its purpose.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routingCriteria
The criteria, which is the response quality difference, used to determine how incoming requests are routed to different models.
- Parameters:
routingCriteria
- The criteria, which is the response quality difference, used to determine how incoming requests are routed to different models.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routingCriteria
default CreatePromptRouterRequest.Builder routingCriteria(Consumer<RoutingCriteria.Builder> routingCriteria) The criteria, which is the response quality difference, used to determine how incoming requests are routed to different models.
This is a convenience method that creates an instance of theRoutingCriteria.Builder
avoiding the need to create one manually viaRoutingCriteria.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toroutingCriteria(RoutingCriteria)
.- Parameters:
routingCriteria
- a consumer that will call methods onRoutingCriteria.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fallbackModel
The default model to use when the routing criteria is not met.
- Parameters:
fallbackModel
- The default model to use when the routing criteria is not met.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fallbackModel
default CreatePromptRouterRequest.Builder fallbackModel(Consumer<PromptRouterTargetModel.Builder> fallbackModel) The default model to use when the routing criteria is not met.
This is a convenience method that creates an instance of thePromptRouterTargetModel.Builder
avoiding the need to create one manually viaPromptRouterTargetModel.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofallbackModel(PromptRouterTargetModel)
.- Parameters:
fallbackModel
- a consumer that will call methods onPromptRouterTargetModel.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your Amazon Web Services resources.
- Parameters:
tags
- An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your Amazon Web Services resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your Amazon Web Services resources.
- Parameters:
tags
- An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your Amazon Web Services resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your Amazon Web Services resources.
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
CreatePromptRouterRequest.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
CreatePromptRouterRequest.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.
-