Interface State.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<State.Builder,,State> SdkBuilder<State.Builder,,State> SdkPojo
- Enclosing class:
State
-
Method Summary
Modifier and TypeMethodDescriptiondefault State.BuilderonEnter(Consumer<OnEnterLifecycle.Builder> onEnter) When entering this state, perform theseactionsif theconditionis TRUE.onEnter(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.onExit(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.onInput(OnInputLifecycle onInput) When an input is received and theconditionis TRUE, perform the specifiedactions.The name of the state.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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
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
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:
-
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
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:
-
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
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:
-