Interface RecurringOrderTransitionStateAction
- All Superinterfaces:
RecurringOrderUpdateAction
If the existing State has set transitions, there must be a direct transition to the new State. If transitions is not set, no validation is performed.
This update action produces the Recurring Order State Transition Message.
Example to create an instance using the builder pattern
RecurringOrderTransitionStateAction recurringOrderTransitionStateAction = RecurringOrderTransitionStateAction.builder()
.state(stateBuilder -> stateBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for RecurringOrderTransitionStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for RecurringOrderTransitionStateActionbuilder(RecurringOrderTransitionStateAction template) create builder for RecurringOrderTransitionStateAction instancecopyDeep()deepCopy(RecurringOrderTransitionStateAction template) factory method to create a deep copy of RecurringOrderTransitionStateActiongetForce()Set totrueto turn off validation.@NotNull @Valid StateResourceIdentifiergetState()Value to set.of()factory methodof(RecurringOrderTransitionStateAction template) factory method to create a shallow copy RecurringOrderTransitionStateActionvoidSet totrueto turn off validation.voidsetState(StateResourceIdentifier state) Value to set.static com.fasterxml.jackson.core.type.TypeReference<RecurringOrderTransitionStateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.recurring_order.RecurringOrderUpdateAction
getAction, withRecurringOrderUpdateAction
-
Field Details
-
TRANSITION_STATE
discriminator value for RecurringOrderTransitionStateAction- See Also:
-
-
Method Details
-
getState
Value to set. If there is no State yet, the new State must be an initial State.
- Returns:
- state
-
getForce
Boolean getForce()Set to
trueto turn off validation.- Returns:
- force
-
setState
Value to set. If there is no State yet, the new State must be an initial State.
- Parameters:
state- value to be set
-
setForce
Set to
trueto turn off validation.- Parameters:
force- value to be set
-
of
factory method- Returns:
- instance of RecurringOrderTransitionStateAction
-
of
factory method to create a shallow copy RecurringOrderTransitionStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
RecurringOrderTransitionStateAction copyDeep()- Specified by:
copyDeepin interfaceRecurringOrderUpdateAction
-
deepCopy
@Nullable static RecurringOrderTransitionStateAction deepCopy(@Nullable RecurringOrderTransitionStateAction template) factory method to create a deep copy of RecurringOrderTransitionStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for RecurringOrderTransitionStateAction- Returns:
- builder
-
builder
static RecurringOrderTransitionStateActionBuilder builder(RecurringOrderTransitionStateAction template) create builder for RecurringOrderTransitionStateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withRecurringOrderTransitionStateAction
default <T> T withRecurringOrderTransitionStateAction(Function<RecurringOrderTransitionStateAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<RecurringOrderTransitionStateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-