Class CfnFlowVersion.FlowConditionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConditionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowVersion.FlowConditionProperty>
- Enclosing interface:
CfnFlowVersion.FlowConditionProperty
@Stability(Stable)
public static final class CfnFlowVersion.FlowConditionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowVersion.FlowConditionProperty>
A builder for
CfnFlowVersion.FlowConditionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.expression(String expression) Sets the value ofCfnFlowVersion.FlowConditionProperty.getExpression()Sets the value ofCfnFlowVersion.FlowConditionProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnFlowVersion.FlowConditionProperty.getName()- Parameters:
name- A name for the condition that you can reference. This parameter is required.- Returns:
this
-
expression
@Stability(Stable) public CfnFlowVersion.FlowConditionProperty.Builder expression(String expression) Sets the value ofCfnFlowVersion.FlowConditionProperty.getExpression()- Parameters:
expression- Defines the condition. You must refer to at least one of the inputs in the condition. For more information, expand the Condition node section in Node types in prompt flows .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlowVersion.FlowConditionProperty>- Returns:
- a new instance of
CfnFlowVersion.FlowConditionProperty - Throws:
NullPointerException- if any required attribute was not provided
-