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

     QuoteChangeQuoteStateAction quoteChangeQuoteStateAction = QuoteChangeQuoteStateAction.builder()
             .quoteState(QuoteState.PENDING)
             .build()
 
  • Constructor Details

    • QuoteChangeQuoteStateActionBuilder

      public QuoteChangeQuoteStateActionBuilder()
  • Method Details

    • quoteState

      public QuoteChangeQuoteStateActionBuilder quoteState(QuoteState quoteState)

      New state to be set for the Quote, except DeclinedForRenegotiation. The DeclinedForRenegotiation state can be set only when performing a renegotiation request.

      Parameters:
      quoteState - value to be set
      Returns:
      Builder
    • getQuoteState

      public QuoteState getQuoteState()

      New state to be set for the Quote, except DeclinedForRenegotiation. The DeclinedForRenegotiation state can be set only when performing a renegotiation request.

      Returns:
      quoteState
    • build

      builds QuoteChangeQuoteStateAction with checking for non-null required values
      Specified by:
      build in interface Builder<QuoteChangeQuoteStateAction>
      Returns:
      QuoteChangeQuoteStateAction
    • buildUnchecked

      public 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