Class StagedOrderTransitionStateActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderTransitionStateActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderTransitionStateAction>
public class StagedOrderTransitionStateActionBuilder
extends Object
implements Builder<StagedOrderTransitionStateAction>
StagedOrderTransitionStateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderTransitionStateAction stagedOrderTransitionStateAction = StagedOrderTransitionStateAction.builder()
.state(stateBuilder -> stateBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StagedOrderTransitionStateAction with checking for non-null required valuesbuilds StagedOrderTransitionStateAction without checking for non-null required valuesSet totrueto turn off validation.getForce()Set totrueto turn off validation.getState()Value to set.of()factory method for an instance of StagedOrderTransitionStateActionBuilderof(StagedOrderTransitionStateAction template) create builder for StagedOrderTransitionStateAction instancestate(StateResourceIdentifier state) Value to set.Value to set.Value to set.
-
Constructor Details
-
StagedOrderTransitionStateActionBuilder
public StagedOrderTransitionStateActionBuilder()
-
-
Method Details
-
state
public StagedOrderTransitionStateActionBuilder state(Function<StateResourceIdentifierBuilder, StateResourceIdentifierBuilder> builder) Value to set. If there is no State yet, the new State must be an initial State.
- Parameters:
builder- function to build the state value- Returns:
- Builder
-
withState
public StagedOrderTransitionStateActionBuilder withState(Function<StateResourceIdentifierBuilder, StateResourceIdentifier> builder) Value to set. If there is no State yet, the new State must be an initial State.
- Parameters:
builder- function to build the state value- Returns:
- Builder
-
state
Value to set. If there is no State yet, the new State must be an initial State.
- Parameters:
state- value to be set- Returns:
- Builder
-
force
Set to
trueto turn off validation.- Parameters:
force- value to be set- Returns:
- Builder
-
getState
Value to set. If there is no State yet, the new State must be an initial State.
- Returns:
- state
-
getForce
Set to
trueto turn off validation.- Returns:
- force
-
build
builds StagedOrderTransitionStateAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<StagedOrderTransitionStateAction>- Returns:
- StagedOrderTransitionStateAction
-
buildUnchecked
builds StagedOrderTransitionStateAction without checking for non-null required values- Returns:
- StagedOrderTransitionStateAction
-
of
factory method for an instance of StagedOrderTransitionStateActionBuilder- Returns:
- builder
-
of
create builder for StagedOrderTransitionStateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-