Class StateChangeInitialActionBuilder
java.lang.Object
com.commercetools.api.models.state.StateChangeInitialActionBuilder
- All Implemented Interfaces:
Builder<StateChangeInitialAction>
public class StateChangeInitialActionBuilder
extends Object
implements Builder<StateChangeInitialAction>
StateChangeInitialActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StateChangeInitialAction stateChangeInitialAction = StateChangeInitialAction.builder()
.initial(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StateChangeInitialAction with checking for non-null required valuesbuilds StateChangeInitialAction without checking for non-null required valuesSet totrue
for defining the State as initial State in a state machine and making it the first step in a workflow.Set totrue
for defining the State as initial State in a state machine and making it the first step in a workflow.of()
factory method for an instance of StateChangeInitialActionBuilderof
(StateChangeInitialAction template) create builder for StateChangeInitialAction instance
-
Constructor Details
-
StateChangeInitialActionBuilder
public StateChangeInitialActionBuilder()
-
-
Method Details
-
initial
Set to
true
for defining the State as initial State in a state machine and making it the first step in a workflow.- Parameters:
initial
- value to be set- Returns:
- Builder
-
getInitial
Set to
true
for defining the State as initial State in a state machine and making it the first step in a workflow.- Returns:
- initial
-
build
builds StateChangeInitialAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StateChangeInitialAction>
- Returns:
- StateChangeInitialAction
-
buildUnchecked
builds StateChangeInitialAction without checking for non-null required values- Returns:
- StateChangeInitialAction
-
of
factory method for an instance of StateChangeInitialActionBuilder- Returns:
- builder
-
of
create builder for StateChangeInitialAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-