Class CfnIntelligentPromptRouterMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.bedrock.mixins.CfnIntelligentPromptRouterMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIntelligentPromptRouterMixinProps>
- Enclosing interface:
CfnIntelligentPromptRouterMixinProps
@Stability(Stable)
public static final class CfnIntelligentPromptRouterMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIntelligentPromptRouterMixinProps>
A builder for
CfnIntelligentPromptRouterMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnIntelligentPromptRouterMixinProps.getDescription()fallbackModel(IResolvable fallbackModel) Sets the value ofCfnIntelligentPromptRouterMixinProps.getFallbackModel()Sets the value ofCfnIntelligentPromptRouterMixinProps.getFallbackModel()Sets the value ofCfnIntelligentPromptRouterMixinProps.getModels()models(IResolvable models) Sets the value ofCfnIntelligentPromptRouterMixinProps.getModels()promptRouterName(String promptRouterName) Sets the value ofCfnIntelligentPromptRouterMixinProps.getPromptRouterName()routingCriteria(IResolvable routingCriteria) Sets the value ofCfnIntelligentPromptRouterMixinProps.getRoutingCriteria()Sets the value ofCfnIntelligentPromptRouterMixinProps.getRoutingCriteria()Sets the value ofCfnIntelligentPromptRouterMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
@Stability(Stable) public CfnIntelligentPromptRouterMixinProps.Builder description(String description) Sets the value ofCfnIntelligentPromptRouterMixinProps.getDescription()- Parameters:
description- An optional description of the prompt router to help identify its purpose.- Returns:
this
-
fallbackModel
@Stability(Stable) public CfnIntelligentPromptRouterMixinProps.Builder fallbackModel(IResolvable fallbackModel) Sets the value ofCfnIntelligentPromptRouterMixinProps.getFallbackModel()- Parameters:
fallbackModel- The default model to use when the routing criteria is not met.- Returns:
this
-
fallbackModel
@Stability(Stable) public CfnIntelligentPromptRouterMixinProps.Builder fallbackModel(CfnIntelligentPromptRouterPropsMixin.PromptRouterTargetModelProperty fallbackModel) Sets the value ofCfnIntelligentPromptRouterMixinProps.getFallbackModel()- Parameters:
fallbackModel- The default model to use when the routing criteria is not met.- Returns:
this
-
models
Sets the value ofCfnIntelligentPromptRouterMixinProps.getModels()- Parameters:
models- A list of foundation models that the prompt router can route requests to. At least one model must be specified.- Returns:
this
-
models
@Stability(Stable) public CfnIntelligentPromptRouterMixinProps.Builder models(List<? extends Object> models) Sets the value ofCfnIntelligentPromptRouterMixinProps.getModels()- Parameters:
models- A list of foundation models that the prompt router can route requests to. At least one model must be specified.- Returns:
this
-
promptRouterName
@Stability(Stable) public CfnIntelligentPromptRouterMixinProps.Builder promptRouterName(String promptRouterName) Sets the value ofCfnIntelligentPromptRouterMixinProps.getPromptRouterName()- Parameters:
promptRouterName- The name of the prompt router. The name must be unique within your AWS account in the current region.- Returns:
this
-
routingCriteria
@Stability(Stable) public CfnIntelligentPromptRouterMixinProps.Builder routingCriteria(IResolvable routingCriteria) Sets the value ofCfnIntelligentPromptRouterMixinProps.getRoutingCriteria()- Parameters:
routingCriteria- Routing criteria for a prompt router.- Returns:
this
-
routingCriteria
@Stability(Stable) public CfnIntelligentPromptRouterMixinProps.Builder routingCriteria(CfnIntelligentPromptRouterPropsMixin.RoutingCriteriaProperty routingCriteria) Sets the value ofCfnIntelligentPromptRouterMixinProps.getRoutingCriteria()- Parameters:
routingCriteria- Routing criteria for a prompt router.- Returns:
this
-
tags
@Stability(Stable) public CfnIntelligentPromptRouterMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnIntelligentPromptRouterMixinProps.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<CfnIntelligentPromptRouterMixinProps>- Returns:
- a new instance of
CfnIntelligentPromptRouterMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-