Class CfnFlow.FlowNodeInputProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeInputProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlow.FlowNodeInputProperty>
- Enclosing interface:
CfnFlow.FlowNodeInputProperty
@Stability(Stable)
public static final class CfnFlow.FlowNodeInputProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlow.FlowNodeInputProperty>
A builder for
CfnFlow.FlowNodeInputProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.expression
(String expression) Sets the value ofCfnFlow.FlowNodeInputProperty.getExpression()
Sets the value ofCfnFlow.FlowNodeInputProperty.getName()
Sets the value ofCfnFlow.FlowNodeInputProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expression
Sets the value ofCfnFlow.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 ofCfnFlow.FlowNodeInputProperty.getName()
- Parameters:
name
- A name for the input that you can reference. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnFlow.FlowNodeInputProperty.getType()
- Parameters:
type
- 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnFlow.FlowNodeInputProperty>
- Returns:
- a new instance of
CfnFlow.FlowNodeInputProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-