Interface StateSetTransitionsAction
- All Superinterfaces:
ResourceUpdateAction<StateUpdateAction>,StateUpdateAction
Example to create an instance using the builder pattern
StateSetTransitionsAction stateSetTransitionsAction = StateSetTransitionsAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StateSetTransitionsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StateSetTransitionsActionbuilder(StateSetTransitionsAction template) create builder for StateSetTransitionsAction instancecopyDeep()static StateSetTransitionsActiondeepCopy(StateSetTransitionsAction template) factory method to create a deep copy of StateSetTransitionsAction@Valid List<StateResourceIdentifier>Value to set.static StateSetTransitionsActionof()factory methodstatic StateSetTransitionsActionof(StateSetTransitionsAction template) factory method to create a shallow copy StateSetTransitionsActionvoidsetTransitions(StateResourceIdentifier... transitions) Value to set.voidsetTransitions(List<StateResourceIdentifier> transitions) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StateSetTransitionsAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods 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 atransitionStateupdate action andtransitionsis set, the currently referenced State must have a transition to the new State.If
transitionsis an empty list, it means the current State is a final State and no further transitions are allowed. Iftransitionsis not set, the validation is turned off.When performing a
transitionStateupdate action, any other State of the sametypecan 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 atransitionStateupdate action andtransitionsis set, the currently referenced State must have a transition to the new State.If
transitionsis an empty list, it means the current State is a final State and no further transitions are allowed. Iftransitionsis not set, the validation is turned off.When performing a
transitionStateupdate action, any other State of the sametypecan 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 atransitionStateupdate action andtransitionsis set, the currently referenced State must have a transition to the new State.If
transitionsis an empty list, it means the current State is a final State and no further transitions are allowed. Iftransitionsis not set, the validation is turned off.When performing a
transitionStateupdate action, any other State of the sametypecan 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
-
copyDeep
StateSetTransitionsAction copyDeep()- Specified by:
copyDeepin interfaceStateUpdateAction
-
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
-