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