Class CfnPromptVersion.ChatPromptTemplateConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnPromptVersion.ChatPromptTemplateConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPromptVersion.ChatPromptTemplateConfigurationProperty>
- Enclosing interface:
CfnPromptVersion.ChatPromptTemplateConfigurationProperty
@Stability(Stable)
public static final class CfnPromptVersion.ChatPromptTemplateConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPromptVersion.ChatPromptTemplateConfigurationProperty>
A builder for
CfnPromptVersion.ChatPromptTemplateConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.inputVariables(List<? extends Object> inputVariables) inputVariables(IResolvable inputVariables) Sets the value ofCfnPromptVersion.ChatPromptTemplateConfigurationProperty.getMessages()messages(IResolvable messages) Sets the value ofCfnPromptVersion.ChatPromptTemplateConfigurationProperty.getMessages()Sets the value ofCfnPromptVersion.ChatPromptTemplateConfigurationProperty.getSystem()system(IResolvable system) Sets the value ofCfnPromptVersion.ChatPromptTemplateConfigurationProperty.getSystem()toolConfiguration(IResolvable toolConfiguration) toolConfiguration(CfnPromptVersion.ToolConfigurationProperty toolConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
messages
@Stability(Stable) public CfnPromptVersion.ChatPromptTemplateConfigurationProperty.Builder messages(IResolvable messages) Sets the value ofCfnPromptVersion.ChatPromptTemplateConfigurationProperty.getMessages()- Parameters:
messages- Contains messages in the chat for the prompt. This parameter is required.- Returns:
this
-
messages
@Stability(Stable) public CfnPromptVersion.ChatPromptTemplateConfigurationProperty.Builder messages(List<? extends Object> messages) Sets the value ofCfnPromptVersion.ChatPromptTemplateConfigurationProperty.getMessages()- Parameters:
messages- Contains messages in the chat for the prompt. This parameter is required.- Returns:
this
-
inputVariables
@Stability(Stable) public CfnPromptVersion.ChatPromptTemplateConfigurationProperty.Builder inputVariables(IResolvable inputVariables) - Parameters:
inputVariables- An array of the variables in the prompt template.- Returns:
this
-
inputVariables
@Stability(Stable) public CfnPromptVersion.ChatPromptTemplateConfigurationProperty.Builder inputVariables(List<? extends Object> inputVariables) - Parameters:
inputVariables- An array of the variables in the prompt template.- Returns:
this
-
system
@Stability(Stable) public CfnPromptVersion.ChatPromptTemplateConfigurationProperty.Builder system(IResolvable system) Sets the value ofCfnPromptVersion.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 CfnPromptVersion.ChatPromptTemplateConfigurationProperty.Builder system(List<? extends Object> system) Sets the value ofCfnPromptVersion.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 CfnPromptVersion.ChatPromptTemplateConfigurationProperty.Builder toolConfiguration(IResolvable toolConfiguration) - Parameters:
toolConfiguration- Configuration information for the tools that the model can use when generating a response.- Returns:
this
-
toolConfiguration
@Stability(Stable) public CfnPromptVersion.ChatPromptTemplateConfigurationProperty.Builder toolConfiguration(CfnPromptVersion.ToolConfigurationProperty toolConfiguration) - 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<CfnPromptVersion.ChatPromptTemplateConfigurationProperty>- Returns:
- a new instance of
CfnPromptVersion.ChatPromptTemplateConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-