Class QuoteChangeQuoteStateActionBuilder
java.lang.Object
com.commercetools.api.models.quote.QuoteChangeQuoteStateActionBuilder
- All Implemented Interfaces:
Builder<QuoteChangeQuoteStateAction>
public class QuoteChangeQuoteStateActionBuilder
extends Object
implements Builder<QuoteChangeQuoteStateAction>
QuoteChangeQuoteStateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
QuoteChangeQuoteStateAction quoteChangeQuoteStateAction = QuoteChangeQuoteStateAction.builder()
.quoteState(QuoteState.PENDING)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds QuoteChangeQuoteStateAction with checking for non-null required valuesbuilds QuoteChangeQuoteStateAction without checking for non-null required valuesNew state to be set for the Quote, exceptDeclinedForRenegotiation.of()factory method for an instance of QuoteChangeQuoteStateActionBuilderof(QuoteChangeQuoteStateAction template) create builder for QuoteChangeQuoteStateAction instancequoteState(QuoteState quoteState) New state to be set for the Quote, exceptDeclinedForRenegotiation.
-
Constructor Details
-
QuoteChangeQuoteStateActionBuilder
public QuoteChangeQuoteStateActionBuilder()
-
-
Method Details
-
quoteState
New state to be set for the Quote, except
DeclinedForRenegotiation. TheDeclinedForRenegotiationstate can be set only when performing a renegotiation request.- Parameters:
quoteState- value to be set- Returns:
- Builder
-
getQuoteState
New state to be set for the Quote, except
DeclinedForRenegotiation. TheDeclinedForRenegotiationstate can be set only when performing a renegotiation request.- Returns:
- quoteState
-
build
builds QuoteChangeQuoteStateAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<QuoteChangeQuoteStateAction>- Returns:
- QuoteChangeQuoteStateAction
-
buildUnchecked
builds QuoteChangeQuoteStateAction without checking for non-null required values- Returns:
- QuoteChangeQuoteStateAction
-
of
factory method for an instance of QuoteChangeQuoteStateActionBuilder- Returns:
- builder
-
of
create builder for QuoteChangeQuoteStateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-