Class PromptRouter.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.alpha.PromptRouter.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PromptRouter>
- Enclosing class:
PromptRouter
@Stability(Experimental)
public static final class PromptRouter.Builder
extends Object
implements software.amazon.jsii.Builder<PromptRouter>
(experimental) A fluent builder for
PromptRouter
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static PromptRouter.Builder
promptRouterId
(String promptRouterId) (experimental) Prompt Router ID that identifies the routing configuration.routingModels
(List<? extends BedrockFoundationModel> routingModels) (experimental) The foundation models this router will route to.
-
Method Details
-
create
- Parameters:
region
- This parameter is required.- Returns:
- a new instance of
PromptRouter.Builder
.
-
promptRouterId
(experimental) Prompt Router ID that identifies the routing configuration.- Parameters:
promptRouterId
- Prompt Router ID that identifies the routing configuration. This parameter is required.- Returns:
this
-
routingModels
@Stability(Experimental) public PromptRouter.Builder routingModels(List<? extends BedrockFoundationModel> routingModels) (experimental) The foundation models this router will route to.The router will intelligently select between these models based on the request.
- Parameters:
routingModels
- The foundation models this router will route to. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PromptRouter>
- Returns:
- a newly built instance of
PromptRouter
.
-