Interface StateSetTransitionsAction
- All Superinterfaces:
ResourceUpdateAction<StateUpdateAction>
,StateUpdateAction
Example to create an instance using the builder pattern
StateSetTransitionsAction stateSetTransitionsAction = StateSetTransitionsAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StateSetTransitionsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StateSetTransitionsActionbuilder
(StateSetTransitionsAction template) create builder for StateSetTransitionsAction instancestatic StateSetTransitionsAction
deepCopy
(StateSetTransitionsAction template) factory method to create a deep copy of StateSetTransitionsAction@Valid List<StateResourceIdentifier>
Value to set.static StateSetTransitionsAction
of()
factory methodstatic StateSetTransitionsAction
of
(StateSetTransitionsAction template) factory method to create a shallow copy StateSetTransitionsActionvoid
setTransitions
(StateResourceIdentifier... transitions) Value to set.void
setTransitions
(List<StateResourceIdentifier> transitions) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StateSetTransitionsAction>
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
-
SET_TRANSITIONS
discriminator value for StateSetTransitionsAction- See Also:
-
-
Method Details
-
getTransitions
Value to set. If empty, any existing value will be removed.
Possible transformations of the current State to other States of the same
type
(for example, Initial -> Shipped). When performing atransitionState
update action andtransitions
is set, the currently referenced State must have a transition to the new State.If
transitions
is an empty list, it means the current State is a final State and no further transitions are allowed. Iftransitions
is not set, the validation is turned off.When performing a
transitionState
update action, any other State of the sametype
can be transitioned to.- Returns:
- transitions
-
setTransitions
Value to set. If empty, any existing value will be removed.
Possible transformations of the current State to other States of the same
type
(for example, Initial -> Shipped). When performing atransitionState
update action andtransitions
is set, the currently referenced State must have a transition to the new State.If
transitions
is an empty list, it means the current State is a final State and no further transitions are allowed. Iftransitions
is not set, the validation is turned off.When performing a
transitionState
update action, any other State of the sametype
can be transitioned to.- Parameters:
transitions
- values to be set
-
setTransitions
Value to set. If empty, any existing value will be removed.
Possible transformations of the current State to other States of the same
type
(for example, Initial -> Shipped). When performing atransitionState
update action andtransitions
is set, the currently referenced State must have a transition to the new State.If
transitions
is an empty list, it means the current State is a final State and no further transitions are allowed. Iftransitions
is not set, the validation is turned off.When performing a
transitionState
update action, any other State of the sametype
can be transitioned to.- Parameters:
transitions
- values to be set
-
of
factory method- Returns:
- instance of StateSetTransitionsAction
-
of
factory method to create a shallow copy StateSetTransitionsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of StateSetTransitionsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StateSetTransitionsAction- Returns:
- builder
-
builder
create builder for StateSetTransitionsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStateSetTransitionsAction
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
-