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