Class CfnFlowVersion.FlowNodeInputProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeInputProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowVersion.FlowNodeInputProperty>
- Enclosing interface:
CfnFlowVersion.FlowNodeInputProperty
@Stability(Stable)
public static final class CfnFlowVersion.FlowNodeInputProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowVersion.FlowNodeInputProperty>
A builder for
CfnFlowVersion.FlowNodeInputProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.expression(String expression) Sets the value ofCfnFlowVersion.FlowNodeInputProperty.getExpression()Sets the value ofCfnFlowVersion.FlowNodeInputProperty.getName()Sets the value ofCfnFlowVersion.FlowNodeInputProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expression
@Stability(Stable) public CfnFlowVersion.FlowNodeInputProperty.Builder expression(String expression) Sets the value ofCfnFlowVersion.FlowNodeInputProperty.getExpression()- Parameters:
expression- An expression that formats the input for the node. This parameter is required. For an explanation of how to create expressions, see Expressions in Prompt flows in Amazon Bedrock .- Returns:
this
-
name
Sets the value ofCfnFlowVersion.FlowNodeInputProperty.getName()- Parameters:
name- Specifies a name for the input that you can reference. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnFlowVersion.FlowNodeInputProperty.getType()- Parameters:
type- Specifies the data type of the input. This parameter is required. If the input doesn't match this type at runtime, a validation error will be thrown.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlowVersion.FlowNodeInputProperty>- Returns:
- a new instance of
CfnFlowVersion.FlowNodeInputProperty - Throws:
NullPointerException- if any required attribute was not provided
-