Interface QuoteCreatedMessagePayload

All Superinterfaces:
MessagePayload, MessagePayloadMixin

public interface QuoteCreatedMessagePayload extends MessagePayload

Generated after a successful Create Quote request.


Example to create an instance using the builder pattern

     QuoteCreatedMessagePayload quoteCreatedMessagePayload = QuoteCreatedMessagePayload.builder()
             .quote(quoteBuilder -> quoteBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getQuote

      @NotNull @Valid @NotNull @Valid Quote getQuote()

      Quote that was created.

      Returns:
      quote
    • setQuote

      void setQuote(Quote quote)

      Quote that was created.

      Parameters:
      quote - value to be set
    • of

      factory method
      Returns:
      instance of QuoteCreatedMessagePayload
    • of

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

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

      builder factory method for QuoteCreatedMessagePayload
      Returns:
      builder
    • builder

      create builder for QuoteCreatedMessagePayload instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withQuoteCreatedMessagePayload

      default <T> T withQuoteCreatedMessagePayload(Function<QuoteCreatedMessagePayload,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<QuoteCreatedMessagePayload> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference