Class CfnPromptVersionPropsMixin.ToolChoiceProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnPromptVersionPropsMixin.ToolChoiceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPromptVersionPropsMixin.ToolChoiceProperty>
- Enclosing interface:
CfnPromptVersionPropsMixin.ToolChoiceProperty
@Stability(Stable)
public static final class CfnPromptVersionPropsMixin.ToolChoiceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPromptVersionPropsMixin.ToolChoiceProperty>
A builder for
CfnPromptVersionPropsMixin.ToolChoiceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnPromptVersionPropsMixin.ToolChoiceProperty.getAny()Sets the value ofCfnPromptVersionPropsMixin.ToolChoiceProperty.getAuto()build()Builds the configured instance.Sets the value ofCfnPromptVersionPropsMixin.ToolChoiceProperty.getTool()tool(IResolvable tool) Sets the value ofCfnPromptVersionPropsMixin.ToolChoiceProperty.getTool()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
any
Sets the value ofCfnPromptVersionPropsMixin.ToolChoiceProperty.getAny()- Parameters:
any- The model must request at least one tool (no text is generated).- Returns:
this
-
auto
Sets the value ofCfnPromptVersionPropsMixin.ToolChoiceProperty.getAuto()- Parameters:
auto- (Default). The Model automatically decides if a tool should be called or whether to generate text instead.- Returns:
this
-
tool
@Stability(Stable) public CfnPromptVersionPropsMixin.ToolChoiceProperty.Builder tool(IResolvable tool) Sets the value ofCfnPromptVersionPropsMixin.ToolChoiceProperty.getTool()- Parameters:
tool- The Model must request the specified tool. Only supported by Anthropic Claude 3 and Amazon Nova models.- Returns:
this
-
tool
@Stability(Stable) public CfnPromptVersionPropsMixin.ToolChoiceProperty.Builder tool(CfnPromptVersionPropsMixin.SpecificToolChoiceProperty tool) Sets the value ofCfnPromptVersionPropsMixin.ToolChoiceProperty.getTool()- Parameters:
tool- The Model must request the specified tool. Only supported by Anthropic Claude 3 and Amazon Nova models.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPromptVersionPropsMixin.ToolChoiceProperty>- Returns:
- a new instance of
CfnPromptVersionPropsMixin.ToolChoiceProperty - Throws:
NullPointerException- if any required attribute was not provided
-