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