@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:38.421Z") @Stability(value=Experimental) public class Choice extends State
A choice state can be used to make decisions based on the execution state.
| Modifier and Type | Class and Description |
|---|---|
static class |
Choice.Builder
(experimental) A fluent builder for
Choice. |
software.amazon.jsii.JsiiObject.InitializationModeIChainable.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
Choice(software.constructs.Construct scope,
String id) |
|
Choice(software.constructs.Construct scope,
String id,
ChoiceProps props) |
protected |
Choice(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Choice(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Chain |
afterwards()
(experimental) Return a Chain that contains all reachable end states from this Choice.
|
Chain |
afterwards(AfterwardsOptions options)
(experimental) Return a Chain that contains all reachable end states from this Choice.
|
List<INextable> |
getEndStates()
(experimental) Continuable states of this Chainable.
|
Choice |
otherwise(IChainable def)
(experimental) If none of the given conditions match, continue execution with the given state.
|
com.fasterxml.jackson.databind.node.ObjectNode |
toStateJson()
(experimental) Return the Amazon States Language object for this state.
|
Choice |
when(Condition condition,
IChainable next)
(experimental) If the given condition matches, continue execution with the given state.
|
addBranch, addChoice, addIterator, addPrefix, bindToGraph, filterNextables, findReachableEndStates, findReachableEndStates, findReachableStates, findReachableStates, getBranches, getComment, getDefaultChoice, getId, getInputPath, getIteration, getOutputPath, getParameters, getResultPath, getResultSelector, getStartState, getStateId, makeDefault, makeNext, prefixStates, renderBranches, renderChoices, renderInputOutput, renderIterator, renderNextEnd, renderResultSelector, renderRetryCatch, setDefaultChoice, setIteration, validateState, whenBoundToGraphjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Choice(software.amazon.jsii.JsiiObjectRef objRef)
protected Choice(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Choice(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
ChoiceProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public Choice(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public Chain afterwards(@Nullable AfterwardsOptions options)
Use this to combine all possible choice paths back.
options - @Stability(value=Experimental) @NotNull public Chain afterwards()
Use this to combine all possible choice paths back.
@Stability(value=Experimental) @NotNull public Choice otherwise(@NotNull IChainable def)
If no conditions match and no otherwise() has been given, an execution error will be raised.
def - This parameter is required.@Stability(value=Experimental) @NotNull public com.fasterxml.jackson.databind.node.ObjectNode toStateJson()
toStateJson in class State@Stability(value=Experimental) @NotNull public Choice when(@NotNull Condition condition, @NotNull IChainable next)
condition - This parameter is required.next - This parameter is required.@Stability(value=Experimental) @NotNull public List<INextable> getEndStates()
getEndStates in interface IChainablegetEndStates in class StateCopyright © 2021. All rights reserved.