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);