Class CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty>
- Enclosing interface:
CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty
@Stability(Stable)
public static final class CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.inputVariables(List<? extends Object> inputVariables) inputVariables(IResolvable inputVariables) messages(IResolvable messages) system(IResolvable system) toolConfiguration(CfnPromptVersionPropsMixin.ToolConfigurationProperty toolConfiguration) toolConfiguration(IResolvable toolConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
inputVariables
@Stability(Stable) public CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty.Builder inputVariables(IResolvable inputVariables) Sets the value ofCfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty.getInputVariables()- Parameters:
inputVariables- An array of the variables in the prompt template.- Returns:
this
-
inputVariables
@Stability(Stable) public CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty.Builder inputVariables(List<? extends Object> inputVariables) Sets the value ofCfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty.getInputVariables()- Parameters:
inputVariables- An array of the variables in the prompt template.- Returns:
this
-
messages
@Stability(Stable) public CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty.Builder messages(IResolvable messages) - Parameters:
messages- Contains messages in the chat for the prompt.- Returns:
this
-
messages
@Stability(Stable) public CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty.Builder messages(List<? extends Object> messages) - Parameters:
messages- Contains messages in the chat for the prompt.- Returns:
this
-
system
@Stability(Stable) public CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty.Builder system(IResolvable system) - Parameters:
system- Contains system prompts to provide context to the model or to describe how it should behave.- Returns:
this
-
system
@Stability(Stable) public CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty.Builder system(List<? extends Object> system) - Parameters:
system- Contains system prompts to provide context to the model or to describe how it should behave.- Returns:
this
-
toolConfiguration
@Stability(Stable) public CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty.Builder toolConfiguration(IResolvable toolConfiguration) Sets the value ofCfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty.getToolConfiguration()- Parameters:
toolConfiguration- Configuration information for the tools that the model can use when generating a response.- Returns:
this
-
toolConfiguration
@Stability(Stable) public CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty.Builder toolConfiguration(CfnPromptVersionPropsMixin.ToolConfigurationProperty toolConfiguration) Sets the value ofCfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty.getToolConfiguration()- Parameters:
toolConfiguration- Configuration information for the tools that the model can use when generating a response.- Returns:
this
-
build
@Stability(Stable) public CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty>- Returns:
- a new instance of
CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-