Interface ChoiceProps
- All Superinterfaces:
AssignableStateOptions
,software.amazon.jsii.JsiiSerializable
,JsonataCommonOptions
,JsonPathCommonOptions
,StateBaseProps
- All Known Implementing Classes:
ChoiceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-02-12T12:32:11.719Z")
@Stability(Stable)
public interface ChoiceProps
extends software.amazon.jsii.JsiiSerializable, StateBaseProps, AssignableStateOptions, JsonPathCommonOptions, JsonataCommonOptions
Properties for defining a Choice state.
Example:
Choice choice = Choice.Builder.create(this, "What color is it?") .comment("color comment") .build(); Pass handleBlueItem = new Pass(this, "HandleBlueItem"); Pass handleOtherItemColor = new Pass(this, "HanldeOtherItemColor"); choice.when(Condition.stringEquals("$.color", "BLUE"), handleBlueItem, ChoiceTransitionOptions.builder() .comment("blue item comment") .build()); choice.otherwise(handleOtherItemColor);
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forChoiceProps
static final class
An implementation forChoiceProps
-
Method Summary
Static MethodsMethods inherited from interface software.amazon.awscdk.services.stepfunctions.AssignableStateOptions
getAssign
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.stepfunctions.JsonataCommonOptions
getOutputs
Methods inherited from interface software.amazon.awscdk.services.stepfunctions.JsonPathCommonOptions
getInputPath, getOutputPath
Methods inherited from interface software.amazon.awscdk.services.stepfunctions.StateBaseProps
getComment, getQueryLanguage, getStateName
-
Method Details
-
builder
- Returns:
- a
ChoiceProps.Builder
ofChoiceProps
-