Interface QuoteStateChangedMessagePayload

All Superinterfaces:
MessagePayload, MessagePayloadMixin

public interface QuoteStateChangedMessagePayload extends MessagePayload

Generated after a successful Change Quote State update action.


Example to create an instance using the builder pattern

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

    • QUOTE_STATE_CHANGED

      static final String QUOTE_STATE_CHANGED
      discriminator value for QuoteStateChangedMessagePayload
      See Also:
  • Method Details

    • getQuoteState

      @NotNull @NotNull QuoteState getQuoteState()

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

      Returns:
      quoteState
    • getOldQuoteState

      @NotNull @NotNull QuoteState getOldQuoteState()

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

      Returns:
      oldQuoteState
    • setQuoteState

      void setQuoteState(QuoteState quoteState)

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

      Parameters:
      quoteState - value to be set
    • setOldQuoteState

      void setOldQuoteState(QuoteState oldQuoteState)

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

      Parameters:
      oldQuoteState - value to be set
    • of

      factory method
      Returns:
      instance of QuoteStateChangedMessagePayload
    • of

      factory method to create a shallow copy QuoteStateChangedMessagePayload
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of QuoteStateChangedMessagePayload
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for QuoteStateChangedMessagePayload
      Returns:
      builder
    • builder

      create builder for QuoteStateChangedMessagePayload instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withQuoteStateChangedMessagePayload

      default <T> T withQuoteStateChangedMessagePayload(Function<QuoteStateChangedMessagePayload,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<QuoteStateChangedMessagePayload> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference