Interface RecurringOrderStateChangedMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after a successful Set RecurringOrderState update action.
Example to create an instance using the builder pattern
RecurringOrderStateChangedMessagePayload recurringOrderStateChangedMessagePayload = RecurringOrderStateChangedMessagePayload.builder()
.state(RecurringOrderState.ACTIVE)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for RecurringOrderStateChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for RecurringOrderStateChangedMessagePayloadcreate builder for RecurringOrderStateChangedMessagePayload instancecopyDeep()factory method to create a deep copy of RecurringOrderStateChangedMessagePayloadRecurringOrderState before the Set RecurringOrderState update action.@NotNull RecurringOrderStategetState()RecurringOrderState after the Set RecurringOrderState update action.of()factory methodof(RecurringOrderStateChangedMessagePayload template) factory method to create a shallow copy RecurringOrderStateChangedMessagePayloadvoidsetOldState(RecurringOrderState oldState) RecurringOrderState before the Set RecurringOrderState update action.voidsetState(RecurringOrderState state) RecurringOrderState after the Set RecurringOrderState update action.static com.fasterxml.jackson.core.type.TypeReference<RecurringOrderStateChangedMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithRecurringOrderStateChangedMessagePayload(Function<RecurringOrderStateChangedMessagePayload, 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_CHANGED
discriminator value for RecurringOrderStateChangedMessagePayload- See Also:
-
-
Method Details
-
getState
RecurringOrderState after the Set RecurringOrderState update action.
- Returns:
- state
-
getOldState
RecurringOrderState getOldState()RecurringOrderState before the Set RecurringOrderState update action.
- Returns:
- oldState
-
setState
RecurringOrderState after the Set RecurringOrderState update action.
- Parameters:
state- value to be set
-
setOldState
RecurringOrderState before the Set RecurringOrderState update action.
- Parameters:
oldState- value to be set
-
of
factory method- Returns:
- instance of RecurringOrderStateChangedMessagePayload
-
of
static RecurringOrderStateChangedMessagePayload of(RecurringOrderStateChangedMessagePayload template) factory method to create a shallow copy RecurringOrderStateChangedMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
RecurringOrderStateChangedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static RecurringOrderStateChangedMessagePayload deepCopy(@Nullable RecurringOrderStateChangedMessagePayload template) factory method to create a deep copy of RecurringOrderStateChangedMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for RecurringOrderStateChangedMessagePayload- Returns:
- builder
-
builder
static RecurringOrderStateChangedMessagePayloadBuilder builder(RecurringOrderStateChangedMessagePayload template) create builder for RecurringOrderStateChangedMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withRecurringOrderStateChangedMessagePayload
default <T> T withRecurringOrderStateChangedMessagePayload(Function<RecurringOrderStateChangedMessagePayload, 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<RecurringOrderStateChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-