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