Interface State.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<State.Builder,
,State> SdkBuilder<State.Builder,
,State> SdkPojo
- Enclosing class:
State
-
Method Summary
Modifier and TypeMethodDescriptiondefault State.Builder
onEnter
(Consumer<OnEnterLifecycle.Builder> onEnter) When entering this state, perform theseactions
if thecondition
is TRUE.onEnter
(OnEnterLifecycle onEnter) When entering this state, perform theseactions
if thecondition
is TRUE.default State.Builder
onExit
(Consumer<OnExitLifecycle.Builder> onExit) When exiting this state, perform theseactions
if the specifiedcondition
isTRUE
.onExit
(OnExitLifecycle onExit) When exiting this state, perform theseactions
if the specifiedcondition
isTRUE
.default State.Builder
onInput
(Consumer<OnInputLifecycle.Builder> onInput) When an input is received and thecondition
is TRUE, perform the specifiedactions
.onInput
(OnInputLifecycle onInput) When an input is received and thecondition
is TRUE, perform the specifiedactions
.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 Details
-
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
When an input is received and the
condition
is TRUE, perform the specifiedactions
.- Parameters:
onInput
- When an input is received and thecondition
is TRUE, perform the specifiedactions
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onInput
When an input is received and the
This is a convenience method that creates an instance of thecondition
is TRUE, perform the specifiedactions
.OnInputLifecycle.Builder
avoiding the need to create one manually viaOnInputLifecycle.builder()
.When the
Consumer
completes,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:
-
onEnter
When entering this state, perform these
actions
if thecondition
is TRUE.- Parameters:
onEnter
- When entering this state, perform theseactions
if thecondition
is TRUE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onEnter
When entering this state, perform these
This is a convenience method that creates an instance of theactions
if thecondition
is TRUE.OnEnterLifecycle.Builder
avoiding the need to create one manually viaOnEnterLifecycle.builder()
.When the
Consumer
completes,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:
-
onExit
When exiting this state, perform these
actions
if the specifiedcondition
isTRUE
.- Parameters:
onExit
- When exiting this state, perform theseactions
if the specifiedcondition
isTRUE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onExit
When exiting this state, perform these
This is a convenience method that creates an instance of theactions
if the specifiedcondition
isTRUE
.OnExitLifecycle.Builder
avoiding the need to create one manually viaOnExitLifecycle.builder()
.When the
Consumer
completes,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:
-