Class QuoteStateChangedMessagePayloadBuilder

java.lang.Object
com.commercetools.api.models.message.QuoteStateChangedMessagePayloadBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<QuoteStateChangedMessagePayload>

public class QuoteStateChangedMessagePayloadBuilder extends Object implements io.vrap.rmf.base.client.Builder<QuoteStateChangedMessagePayload>
QuoteStateChangedMessagePayloadBuilder
Example to create an instance using the builder pattern

     QuoteStateChangedMessagePayload quoteStateChangedMessagePayload = QuoteStateChangedMessagePayload.builder()
             .quoteState(QuoteState.PENDING)
             .oldQuoteState(QuoteState.PENDING)
             .build()
 
  • Constructor Details

    • QuoteStateChangedMessagePayloadBuilder

      public QuoteStateChangedMessagePayloadBuilder()
  • Method Details

    • quoteState

      public QuoteStateChangedMessagePayloadBuilder quoteState(QuoteState quoteState)

      State of the Quote after the Change Quote State update action.

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

      public QuoteStateChangedMessagePayloadBuilder oldQuoteState(QuoteState oldQuoteState)

      State of the Quote before the Change Quote State update action.

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

      public QuoteState getQuoteState()

      State of the Quote after the Change Quote State update action.

      Returns:
      quoteState
    • getOldQuoteState

      public 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 interface io.vrap.rmf.base.client.Builder<QuoteStateChangedMessagePayload>
      Returns:
      QuoteStateChangedMessagePayload
    • buildUnchecked

      public 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