Interface QuoteStateChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Change Quote State update action.
Example to create an instance using the builder pattern
QuoteStateChangedMessagePayload quoteStateChangedMessagePayload = QuoteStateChangedMessagePayload.builder()
.quoteState(QuoteState.PENDING)
.oldQuoteState(QuoteState.PENDING)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for QuoteStateChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for QuoteStateChangedMessagePayloadbuilder
(QuoteStateChangedMessagePayload template) create builder for QuoteStateChangedMessagePayload instancedeepCopy
(QuoteStateChangedMessagePayload template) factory method to create a deep copy of QuoteStateChangedMessagePayload@NotNull QuoteState
State of the Quote before the Change Quote State update action.@NotNull QuoteState
State of the Quote after the Change Quote State update action.of()
factory methodof
(QuoteStateChangedMessagePayload template) factory method to create a shallow copy QuoteStateChangedMessagePayloadvoid
setOldQuoteState
(QuoteState oldQuoteState) State of the Quote before the Change Quote State update action.void
setQuoteState
(QuoteState quoteState) State of the Quote after the Change Quote State update action.static com.fasterxml.jackson.core.type.TypeReference<QuoteStateChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
QUOTE_STATE_CHANGED
discriminator value for QuoteStateChangedMessagePayload- See Also:
-
-
Method Details
-
getQuoteState
State of the Quote after the Change Quote State update action.
- Returns:
- quoteState
-
getOldQuoteState
State of the Quote before the Change Quote State update action.
- Returns:
- oldQuoteState
-
setQuoteState
State of the Quote after the Change Quote State update action.
- Parameters:
quoteState
- value to be set
-
setOldQuoteState
State of the Quote before the Change Quote State update action.
- Parameters:
oldQuoteState
- value to be set
-
of
factory method- Returns:
- instance of QuoteStateChangedMessagePayload
-
of
factory method to create a shallow copy QuoteStateChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static QuoteStateChangedMessagePayload deepCopy(@Nullable QuoteStateChangedMessagePayload template) factory method to create a deep copy of QuoteStateChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for QuoteStateChangedMessagePayload- Returns:
- builder
-
builder
create builder for QuoteStateChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withQuoteStateChangedMessagePayload
default <T> T withQuoteStateChangedMessagePayload(Function<QuoteStateChangedMessagePayload, 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<QuoteStateChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-