Class CfnPrompt.ToolConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnPrompt.ToolConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrompt.ToolConfigurationProperty>
- Enclosing interface:
CfnPrompt.ToolConfigurationProperty
@Stability(Stable)
public static final class CfnPrompt.ToolConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrompt.ToolConfigurationProperty>
A builder for
CfnPrompt.ToolConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.toolChoice(IResolvable toolChoice) Sets the value ofCfnPrompt.ToolConfigurationProperty.getToolChoice()toolChoice(CfnPrompt.ToolChoiceProperty toolChoice) Sets the value ofCfnPrompt.ToolConfigurationProperty.getToolChoice()Sets the value ofCfnPrompt.ToolConfigurationProperty.getTools()tools(IResolvable tools) Sets the value ofCfnPrompt.ToolConfigurationProperty.getTools()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tools
Sets the value ofCfnPrompt.ToolConfigurationProperty.getTools()- Parameters:
tools- An array of tools that you want to pass to a model. This parameter is required.- Returns:
this
-
tools
@Stability(Stable) public CfnPrompt.ToolConfigurationProperty.Builder tools(List<? extends Object> tools) Sets the value ofCfnPrompt.ToolConfigurationProperty.getTools()- Parameters:
tools- An array of tools that you want to pass to a model. This parameter is required.- Returns:
this
-
toolChoice
@Stability(Stable) public CfnPrompt.ToolConfigurationProperty.Builder toolChoice(IResolvable toolChoice) Sets the value ofCfnPrompt.ToolConfigurationProperty.getToolChoice()- Parameters:
toolChoice- If supported by model, forces the model to request a tool.- Returns:
this
-
toolChoice
@Stability(Stable) public CfnPrompt.ToolConfigurationProperty.Builder toolChoice(CfnPrompt.ToolChoiceProperty toolChoice) Sets the value ofCfnPrompt.ToolConfigurationProperty.getToolChoice()- Parameters:
toolChoice- If supported by model, forces the model to request a tool.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPrompt.ToolConfigurationProperty>- Returns:
- a new instance of
CfnPrompt.ToolConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-