Interface RecurringOrderStateTransitionMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after a successful Transition State update action.
Example to create an instance using the builder pattern
RecurringOrderStateTransitionMessagePayload recurringOrderStateTransitionMessagePayload = RecurringOrderStateTransitionMessagePayload.builder()
.state(stateBuilder -> stateBuilder)
.force(true)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for RecurringOrderStateTransitionMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for RecurringOrderStateTransitionMessagePayloadcreate builder for RecurringOrderStateTransitionMessagePayload instancecopyDeep()factory method to create a deep copy of RecurringOrderStateTransitionMessagePayload@NotNull BooleangetForce()Whether State transition validations were turned off during the Transition State update action.@Valid StateReferenceRecurringOrderState before the Transition State update action.@NotNull @Valid StateReferencegetState()RecurringOrderState after the Transition State update action.of()factory methodfactory method to create a shallow copy RecurringOrderStateTransitionMessagePayloadvoidWhether State transition validations were turned off during the Transition State update action.voidsetOldState(StateReference oldState) RecurringOrderState before the Transition State update action.voidsetState(StateReference state) RecurringOrderState after the Transition State update action.static com.fasterxml.jackson.core.type.TypeReference<RecurringOrderStateTransitionMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithRecurringOrderStateTransitionMessagePayload(Function<RecurringOrderStateTransitionMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
RECURRING_ORDER_STATE_TRANSITION
discriminator value for RecurringOrderStateTransitionMessagePayload- See Also:
-
-
Method Details
-
getState
RecurringOrderState after the Transition State update action.
- Returns:
- state
-
getOldState
RecurringOrderState before the Transition State update action.
- Returns:
- oldState
-
getForce
Whether State transition validations were turned off during the Transition State update action.
- Returns:
- force
-
setState
RecurringOrderState after the Transition State update action.
- Parameters:
state- value to be set
-
setOldState
RecurringOrderState before the Transition State update action.
- Parameters:
oldState- value to be set
-
setForce
Whether State transition validations were turned off during the Transition State update action.
- Parameters:
force- value to be set
-
of
factory method- Returns:
- instance of RecurringOrderStateTransitionMessagePayload
-
of
static RecurringOrderStateTransitionMessagePayload of(RecurringOrderStateTransitionMessagePayload template) factory method to create a shallow copy RecurringOrderStateTransitionMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
RecurringOrderStateTransitionMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static RecurringOrderStateTransitionMessagePayload deepCopy(@Nullable RecurringOrderStateTransitionMessagePayload template) factory method to create a deep copy of RecurringOrderStateTransitionMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for RecurringOrderStateTransitionMessagePayload- Returns:
- builder
-
builder
static RecurringOrderStateTransitionMessagePayloadBuilder builder(RecurringOrderStateTransitionMessagePayload template) create builder for RecurringOrderStateTransitionMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withRecurringOrderStateTransitionMessagePayload
default <T> T withRecurringOrderStateTransitionMessagePayload(Function<RecurringOrderStateTransitionMessagePayload, 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<RecurringOrderStateTransitionMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-