Class QuoteRequestStateChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.QuoteRequestStateChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<QuoteRequestStateChangedMessagePayload>
public class QuoteRequestStateChangedMessagePayloadBuilder
extends Object
implements Builder<QuoteRequestStateChangedMessagePayload>
QuoteRequestStateChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
QuoteRequestStateChangedMessagePayload quoteRequestStateChangedMessagePayload = QuoteRequestStateChangedMessagePayload.builder()
.quoteRequestState(QuoteRequestState.SUBMITTED)
.oldQuoteRequestState(QuoteRequestState.SUBMITTED)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds QuoteRequestStateChangedMessagePayload with checking for non-null required valuesbuilds QuoteRequestStateChangedMessagePayload without checking for non-null required valuesState of the Quote Request before the Change Quote Request State update action.State of the Quote Request after the Change Quote Request State update action.of()
factory method for an instance of QuoteRequestStateChangedMessagePayloadBuilderof
(QuoteRequestStateChangedMessagePayload template) create builder for QuoteRequestStateChangedMessagePayload instanceoldQuoteRequestState
(QuoteRequestState oldQuoteRequestState) State of the Quote Request before the Change Quote Request State update action.quoteRequestState
(QuoteRequestState quoteRequestState) State of the Quote Request after the Change Quote Request State update action.
-
Constructor Details
-
QuoteRequestStateChangedMessagePayloadBuilder
public QuoteRequestStateChangedMessagePayloadBuilder()
-
-
Method Details
-
quoteRequestState
public QuoteRequestStateChangedMessagePayloadBuilder quoteRequestState(QuoteRequestState quoteRequestState) State of the Quote Request after the Change Quote Request State update action.
- Parameters:
quoteRequestState
- value to be set- Returns:
- Builder
-
oldQuoteRequestState
public QuoteRequestStateChangedMessagePayloadBuilder oldQuoteRequestState(QuoteRequestState oldQuoteRequestState) State of the Quote Request before the Change Quote Request State update action.
- Parameters:
oldQuoteRequestState
- value to be set- Returns:
- Builder
-
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
-
build
builds QuoteRequestStateChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<QuoteRequestStateChangedMessagePayload>
- Returns:
- QuoteRequestStateChangedMessagePayload
-
buildUnchecked
builds QuoteRequestStateChangedMessagePayload without checking for non-null required values- Returns:
- QuoteRequestStateChangedMessagePayload
-
of
factory method for an instance of QuoteRequestStateChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static QuoteRequestStateChangedMessagePayloadBuilder of(QuoteRequestStateChangedMessagePayload template) create builder for QuoteRequestStateChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-