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-21T06:34:16.684Z")
@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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forChoiceTransitionOptionsstatic final classAn 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.BuilderofChoiceTransitionOptions
-