Interface StateChangeInitialAction
- All Superinterfaces:
ResourceUpdateAction<StateUpdateAction>
,StateUpdateAction
StateChangeInitialAction
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()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StateChangeInitialAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StateChangeInitialActionbuilder
(StateChangeInitialAction template) create builder for StateChangeInitialAction instancestatic StateChangeInitialAction
deepCopy
(StateChangeInitialAction template) factory method to create a deep copy of StateChangeInitialAction@NotNull Boolean
Set totrue
for defining the State as initial State in a state machine and making it the first step in a workflow.static StateChangeInitialAction
of()
factory methodstatic StateChangeInitialAction
of
(StateChangeInitialAction template) factory method to create a shallow copy StateChangeInitialActionvoid
setInitial
(Boolean initial) Set totrue
for defining the State as initial State in a state machine and making it the first step in a workflow.static com.fasterxml.jackson.core.type.TypeReference<StateChangeInitialAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.state.StateUpdateAction
getAction, withStateUpdateAction
-
Field Details
-
CHANGE_INITIAL
discriminator value for StateChangeInitialAction- See Also:
-
-
Method Details
-
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
-
setInitial
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
-
of
factory method- Returns:
- instance of StateChangeInitialAction
-
of
factory method to create a shallow copy StateChangeInitialAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of StateChangeInitialAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StateChangeInitialAction- Returns:
- builder
-
builder
create builder for StateChangeInitialAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStateChangeInitialAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-