Interface ChoiceTransitionOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ChoiceTransitionOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-27T16:51:05.910Z")
@Stability(Stable)
public interface ChoiceTransitionOptions
extends software.amazon.jsii.JsiiSerializable
Options for Choice Transition.
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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forChoiceTransitionOptions
static final class
An implementation forChoiceTransitionOptions
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getComment
An optional description for the choice transition.Default: No comment
-
builder
- Returns:
- a
ChoiceTransitionOptions.Builder
ofChoiceTransitionOptions
-