Class CfnPrompt.PromptTemplateConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnPrompt.PromptTemplateConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrompt.PromptTemplateConfigurationProperty>
- Enclosing interface:
CfnPrompt.PromptTemplateConfigurationProperty
@Stability(Stable)
public static final class CfnPrompt.PromptTemplateConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrompt.PromptTemplateConfigurationProperty>
A builder for
CfnPrompt.PromptTemplateConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.chat(IResolvable chat) Sets the value ofCfnPrompt.PromptTemplateConfigurationProperty.getChat()Sets the value ofCfnPrompt.PromptTemplateConfigurationProperty.getChat()text(IResolvable text) Sets the value ofCfnPrompt.PromptTemplateConfigurationProperty.getText()Sets the value ofCfnPrompt.PromptTemplateConfigurationProperty.getText()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
chat
@Stability(Stable) public CfnPrompt.PromptTemplateConfigurationProperty.Builder chat(IResolvable chat) Sets the value ofCfnPrompt.PromptTemplateConfigurationProperty.getChat()- Parameters:
chat- Contains configurations to use the prompt in a conversational format.- Returns:
this
-
chat
@Stability(Stable) public CfnPrompt.PromptTemplateConfigurationProperty.Builder chat(CfnPrompt.ChatPromptTemplateConfigurationProperty chat) Sets the value ofCfnPrompt.PromptTemplateConfigurationProperty.getChat()- Parameters:
chat- Contains configurations to use the prompt in a conversational format.- Returns:
this
-
text
@Stability(Stable) public CfnPrompt.PromptTemplateConfigurationProperty.Builder text(IResolvable text) Sets the value ofCfnPrompt.PromptTemplateConfigurationProperty.getText()- Parameters:
text- Contains configurations for the text in a message for a prompt.- Returns:
this
-
text
@Stability(Stable) public CfnPrompt.PromptTemplateConfigurationProperty.Builder text(CfnPrompt.TextPromptTemplateConfigurationProperty text) Sets the value ofCfnPrompt.PromptTemplateConfigurationProperty.getText()- Parameters:
text- Contains configurations for the text in a message for a prompt.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPrompt.PromptTemplateConfigurationProperty>- Returns:
- a new instance of
CfnPrompt.PromptTemplateConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-