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