Class CfnPromptVersion.ToolConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnPromptVersion.ToolConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPromptVersion.ToolConfigurationProperty>
- Enclosing interface:
CfnPromptVersion.ToolConfigurationProperty
@Stability(Stable)
public static final class CfnPromptVersion.ToolConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPromptVersion.ToolConfigurationProperty>
A builder for
CfnPromptVersion.ToolConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.toolChoice(IResolvable toolChoice) Sets the value ofCfnPromptVersion.ToolConfigurationProperty.getToolChoice()toolChoice(CfnPromptVersion.ToolChoiceProperty toolChoice) Sets the value ofCfnPromptVersion.ToolConfigurationProperty.getToolChoice()Sets the value ofCfnPromptVersion.ToolConfigurationProperty.getTools()tools(IResolvable tools) Sets the value ofCfnPromptVersion.ToolConfigurationProperty.getTools()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tools
@Stability(Stable) public CfnPromptVersion.ToolConfigurationProperty.Builder tools(IResolvable tools) Sets the value ofCfnPromptVersion.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 CfnPromptVersion.ToolConfigurationProperty.Builder tools(List<? extends Object> tools) Sets the value ofCfnPromptVersion.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 CfnPromptVersion.ToolConfigurationProperty.Builder toolChoice(IResolvable toolChoice) Sets the value ofCfnPromptVersion.ToolConfigurationProperty.getToolChoice()- Parameters:
toolChoice- If supported by model, forces the model to request a tool.- Returns:
this
-
toolChoice
@Stability(Stable) public CfnPromptVersion.ToolConfigurationProperty.Builder toolChoice(CfnPromptVersion.ToolChoiceProperty toolChoice) Sets the value ofCfnPromptVersion.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<CfnPromptVersion.ToolConfigurationProperty>- Returns:
- a new instance of
CfnPromptVersion.ToolConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-