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