Class CfnIntelligentPromptRouterProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnIntelligentPromptRouterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIntelligentPromptRouterProps>
- Enclosing interface:
CfnIntelligentPromptRouterProps
@Stability(Stable)
public static final class CfnIntelligentPromptRouterProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIntelligentPromptRouterProps>
A builder for
CfnIntelligentPromptRouterProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnIntelligentPromptRouterProps.getDescription()fallbackModel(IResolvable fallbackModel) Sets the value ofCfnIntelligentPromptRouterProps.getFallbackModel()Sets the value ofCfnIntelligentPromptRouterProps.getFallbackModel()Sets the value ofCfnIntelligentPromptRouterProps.getModels()models(IResolvable models) Sets the value ofCfnIntelligentPromptRouterProps.getModels()promptRouterName(String promptRouterName) Sets the value ofCfnIntelligentPromptRouterProps.getPromptRouterName()routingCriteria(IResolvable routingCriteria) Sets the value ofCfnIntelligentPromptRouterProps.getRoutingCriteria()routingCriteria(CfnIntelligentPromptRouter.RoutingCriteriaProperty routingCriteria) Sets the value ofCfnIntelligentPromptRouterProps.getRoutingCriteria()Sets the value ofCfnIntelligentPromptRouterProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fallbackModel
@Stability(Stable) public CfnIntelligentPromptRouterProps.Builder fallbackModel(IResolvable fallbackModel) Sets the value ofCfnIntelligentPromptRouterProps.getFallbackModel()- Parameters:
fallbackModel- The default model to use when the routing criteria is not met. This parameter is required.- Returns:
this
-
fallbackModel
@Stability(Stable) public CfnIntelligentPromptRouterProps.Builder fallbackModel(CfnIntelligentPromptRouter.PromptRouterTargetModelProperty fallbackModel) Sets the value ofCfnIntelligentPromptRouterProps.getFallbackModel()- Parameters:
fallbackModel- The default model to use when the routing criteria is not met. This parameter is required.- Returns:
this
-
models
Sets the value ofCfnIntelligentPromptRouterProps.getModels()- Parameters:
models- A list of foundation models that the prompt router can route requests to. This parameter is required. At least one model must be specified.- Returns:
this
-
models
@Stability(Stable) public CfnIntelligentPromptRouterProps.Builder models(List<? extends Object> models) Sets the value ofCfnIntelligentPromptRouterProps.getModels()- Parameters:
models- A list of foundation models that the prompt router can route requests to. This parameter is required. At least one model must be specified.- Returns:
this
-
promptRouterName
@Stability(Stable) public CfnIntelligentPromptRouterProps.Builder promptRouterName(String promptRouterName) Sets the value ofCfnIntelligentPromptRouterProps.getPromptRouterName()- Parameters:
promptRouterName- The name of the prompt router. This parameter is required. The name must be unique within your AWS account in the current region.- Returns:
this
-
routingCriteria
@Stability(Stable) public CfnIntelligentPromptRouterProps.Builder routingCriteria(IResolvable routingCriteria) Sets the value ofCfnIntelligentPromptRouterProps.getRoutingCriteria()- Parameters:
routingCriteria- Routing criteria for a prompt router. This parameter is required.- Returns:
this
-
routingCriteria
@Stability(Stable) public CfnIntelligentPromptRouterProps.Builder routingCriteria(CfnIntelligentPromptRouter.RoutingCriteriaProperty routingCriteria) Sets the value ofCfnIntelligentPromptRouterProps.getRoutingCriteria()- Parameters:
routingCriteria- Routing criteria for a prompt router. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnIntelligentPromptRouterProps.getDescription()- Parameters:
description- An optional description of the prompt router to help identify its purpose.- Returns:
this
-
tags
Sets the value ofCfnIntelligentPromptRouterProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your AWS resources.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnIntelligentPromptRouterProps>- Returns:
- a new instance of
CfnIntelligentPromptRouterProps - Throws:
NullPointerException- if any required attribute was not provided
-