Class ChatTemplateConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.alpha.ChatTemplateConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ChatTemplateConfigurationProps>
- Enclosing interface:
ChatTemplateConfigurationProps
@Stability(Experimental)
public static final class ChatTemplateConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<ChatTemplateConfigurationProps>
A builder for
ChatTemplateConfigurationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.inputVariables(List<String> inputVariables) Sets the value ofChatTemplateConfigurationProps.getInputVariables()messages(List<? extends ChatMessage> messages) Sets the value ofChatTemplateConfigurationProps.getMessages()Sets the value ofChatTemplateConfigurationProps.getSystem()toolConfiguration(ToolConfiguration toolConfiguration) Sets the value ofChatTemplateConfigurationProps.getToolConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
messages
@Stability(Experimental) public ChatTemplateConfigurationProps.Builder messages(List<? extends ChatMessage> messages) Sets the value ofChatTemplateConfigurationProps.getMessages()- Parameters:
messages- The messages in the chat template. This parameter is required.- Returns:
this
-
inputVariables
@Stability(Experimental) public ChatTemplateConfigurationProps.Builder inputVariables(List<String> inputVariables) Sets the value ofChatTemplateConfigurationProps.getInputVariables()- Parameters:
inputVariables- The input variables for the template.- Returns:
this
-
system
Sets the value ofChatTemplateConfigurationProps.getSystem()- Parameters:
system- The system message for the chat template.- Returns:
this
-
toolConfiguration
@Stability(Experimental) public ChatTemplateConfigurationProps.Builder toolConfiguration(ToolConfiguration toolConfiguration) Sets the value ofChatTemplateConfigurationProps.getToolConfiguration()- Parameters:
toolConfiguration- The tool configuration for the chat template.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ChatTemplateConfigurationProps>- Returns:
- a new instance of
ChatTemplateConfigurationProps - Throws:
NullPointerException- if any required attribute was not provided
-