public static interface State.Builder extends SdkPojo, CopyableBuilder<State.Builder,State>
| Modifier and Type | Method and Description |
|---|---|
default State.Builder |
onEnter(Consumer<OnEnterLifecycle.Builder> onEnter)
When entering this state, perform these
actions if the condition is TRUE. |
State.Builder |
onEnter(OnEnterLifecycle onEnter)
When entering this state, perform these
actions if the condition is TRUE. |
default State.Builder |
onExit(Consumer<OnExitLifecycle.Builder> onExit)
When exiting this state, perform these
actions if the specified condition is
TRUE. |
State.Builder |
onExit(OnExitLifecycle onExit)
When exiting this state, perform these
actions if the specified condition is
TRUE. |
default State.Builder |
onInput(Consumer<OnInputLifecycle.Builder> onInput)
When an input is received and the
condition is TRUE, perform the specified actions. |
State.Builder |
onInput(OnInputLifecycle onInput)
When an input is received and the
condition is TRUE, perform the specified actions. |
State.Builder |
stateName(String stateName)
The name of the state.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildState.Builder stateName(String stateName)
The name of the state.
stateName - The name of the state.State.Builder onInput(OnInputLifecycle onInput)
When an input is received and the condition is TRUE, perform the specified actions.
onInput - When an input is received and the condition is TRUE, perform the specified
actions.default State.Builder onInput(Consumer<OnInputLifecycle.Builder> onInput)
When an input is received and the condition is TRUE, perform the specified actions.
OnInputLifecycle.Builder avoiding the need to
create one manually via OnInputLifecycle.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to onInput(OnInputLifecycle).onInput - a consumer that will call methods on OnInputLifecycle.BuilderonInput(OnInputLifecycle)State.Builder onEnter(OnEnterLifecycle onEnter)
When entering this state, perform these actions if the condition is TRUE.
onEnter - When entering this state, perform these actions if the condition is TRUE.default State.Builder onEnter(Consumer<OnEnterLifecycle.Builder> onEnter)
When entering this state, perform these actions if the condition is TRUE.
OnEnterLifecycle.Builder avoiding the need to
create one manually via OnEnterLifecycle.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to onEnter(OnEnterLifecycle).onEnter - a consumer that will call methods on OnEnterLifecycle.BuilderonEnter(OnEnterLifecycle)State.Builder onExit(OnExitLifecycle onExit)
When exiting this state, perform these actions if the specified condition is
TRUE.
onExit - When exiting this state, perform these actions if the specified condition is
TRUE.default State.Builder onExit(Consumer<OnExitLifecycle.Builder> onExit)
When exiting this state, perform these actions if the specified condition is
TRUE.
OnExitLifecycle.Builder avoiding the need to
create one manually via OnExitLifecycle.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to onExit(OnExitLifecycle).onExit - a consumer that will call methods on OnExitLifecycle.BuilderonExit(OnExitLifecycle)Copyright © 2022. All rights reserved.