Interface State.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<State.Builder,State>,SdkBuilder<State.Builder,State>,SdkPojo
- Enclosing class:
- State
public static interface State.Builder extends SdkPojo, CopyableBuilder<State.Builder,State>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default State.BuilderonEnter(Consumer<OnEnterLifecycle.Builder> onEnter)When entering this state, perform theseactionsif theconditionis TRUE.State.BuilderonEnter(OnEnterLifecycle onEnter)When entering this state, perform theseactionsif theconditionis TRUE.default State.BuilderonExit(Consumer<OnExitLifecycle.Builder> onExit)When exiting this state, perform theseactionsif the specifiedconditionisTRUE.State.BuilderonExit(OnExitLifecycle onExit)When exiting this state, perform theseactionsif the specifiedconditionisTRUE.default State.BuilderonInput(Consumer<OnInputLifecycle.Builder> onInput)When an input is received and theconditionis TRUE, perform the specifiedactions.State.BuilderonInput(OnInputLifecycle onInput)When an input is received and theconditionis TRUE, perform the specifiedactions.State.BuilderstateName(String stateName)The name of the state.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
stateName
State.Builder stateName(String stateName)
The name of the state.
- Parameters:
stateName- The name of the state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onInput
State.Builder onInput(OnInputLifecycle onInput)
When an input is received and the
conditionis TRUE, perform the specifiedactions.- Parameters:
onInput- When an input is received and theconditionis TRUE, perform the specifiedactions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onInput
default State.Builder onInput(Consumer<OnInputLifecycle.Builder> onInput)
When an input is received and the
This is a convenience method that creates an instance of theconditionis TRUE, perform the specifiedactions.OnInputLifecycle.Builderavoiding the need to create one manually viaOnInputLifecycle.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toonInput(OnInputLifecycle).- Parameters:
onInput- a consumer that will call methods onOnInputLifecycle.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
onInput(OnInputLifecycle)
-
onEnter
State.Builder onEnter(OnEnterLifecycle onEnter)
When entering this state, perform these
actionsif theconditionis TRUE.- Parameters:
onEnter- When entering this state, perform theseactionsif theconditionis TRUE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onEnter
default State.Builder onEnter(Consumer<OnEnterLifecycle.Builder> onEnter)
When entering this state, perform these
This is a convenience method that creates an instance of theactionsif theconditionis TRUE.OnEnterLifecycle.Builderavoiding the need to create one manually viaOnEnterLifecycle.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toonEnter(OnEnterLifecycle).- Parameters:
onEnter- a consumer that will call methods onOnEnterLifecycle.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
onEnter(OnEnterLifecycle)
-
onExit
State.Builder onExit(OnExitLifecycle onExit)
When exiting this state, perform these
actionsif the specifiedconditionisTRUE.- Parameters:
onExit- When exiting this state, perform theseactionsif the specifiedconditionisTRUE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onExit
default State.Builder onExit(Consumer<OnExitLifecycle.Builder> onExit)
When exiting this state, perform these
This is a convenience method that creates an instance of theactionsif the specifiedconditionisTRUE.OnExitLifecycle.Builderavoiding the need to create one manually viaOnExitLifecycle.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toonExit(OnExitLifecycle).- Parameters:
onExit- a consumer that will call methods onOnExitLifecycle.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
onExit(OnExitLifecycle)
-
-