Interface QuoteRequestStateChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Change Quote Request State update action.
Example to create an instance using the builder pattern
QuoteRequestStateChangedMessagePayload quoteRequestStateChangedMessagePayload = QuoteRequestStateChangedMessagePayload.builder()
.quoteRequestState(QuoteRequestState.SUBMITTED)
.oldQuoteRequestState(QuoteRequestState.SUBMITTED)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for QuoteRequestStateChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for QuoteRequestStateChangedMessagePayloadcreate builder for QuoteRequestStateChangedMessagePayload instancefactory method to create a deep copy of QuoteRequestStateChangedMessagePayload@NotNull QuoteRequestState
State of the Quote Request before the Change Quote Request State update action.@NotNull QuoteRequestState
State of the Quote Request after the Change Quote Request State update action.of()
factory methodof
(QuoteRequestStateChangedMessagePayload template) factory method to create a shallow copy QuoteRequestStateChangedMessagePayloadvoid
setOldQuoteRequestState
(QuoteRequestState oldQuoteRequestState) State of the Quote Request before the Change Quote Request State update action.void
setQuoteRequestState
(QuoteRequestState quoteRequestState) State of the Quote Request after the Change Quote Request State update action.static com.fasterxml.jackson.core.type.TypeReference<QuoteRequestStateChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withQuoteRequestStateChangedMessagePayload
(Function<QuoteRequestStateChangedMessagePayload, T> helper) 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_REQUEST_STATE_CHANGED
discriminator value for QuoteRequestStateChangedMessagePayload- See Also:
-
-
Method Details
-
getQuoteRequestState
State of the Quote Request after the Change Quote Request State update action.
- Returns:
- quoteRequestState
-
getOldQuoteRequestState
State of the Quote Request before the Change Quote Request State update action.
- Returns:
- oldQuoteRequestState
-
setQuoteRequestState
State of the Quote Request after the Change Quote Request State update action.
- Parameters:
quoteRequestState
- value to be set
-
setOldQuoteRequestState
State of the Quote Request before the Change Quote Request State update action.
- Parameters:
oldQuoteRequestState
- value to be set
-
of
factory method- Returns:
- instance of QuoteRequestStateChangedMessagePayload
-
of
factory method to create a shallow copy QuoteRequestStateChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static QuoteRequestStateChangedMessagePayload deepCopy(@Nullable QuoteRequestStateChangedMessagePayload template) factory method to create a deep copy of QuoteRequestStateChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for QuoteRequestStateChangedMessagePayload- Returns:
- builder
-
builder
static QuoteRequestStateChangedMessagePayloadBuilder builder(QuoteRequestStateChangedMessagePayload template) create builder for QuoteRequestStateChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withQuoteRequestStateChangedMessagePayload
default <T> T withQuoteRequestStateChangedMessagePayload(Function<QuoteRequestStateChangedMessagePayload, 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<QuoteRequestStateChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-