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