Interface OrderImportedMessage

All Superinterfaces:
BaseResource, DomainResource<Message>, Identifiable<Message>, Message, OrderMessage, Versioned<Message>

public interface OrderImportedMessage extends OrderMessage

Generated after a successful Order Import.


Example to create an instance using the builder pattern

     OrderImportedMessage orderImportedMessage = OrderImportedMessage.builder()
             .id("{id}")
             .version(0.3)
             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .sequenceNumber(0.3)
             .resource(resourceBuilder -> resourceBuilder)
             .resourceVersion(0.3)
             .order(orderBuilder -> orderBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getOrder

      @NotNull @Valid @NotNull @Valid Order getOrder()

      Order that was imported.

      Returns:
      order
    • setOrder

      void setOrder(Order order)

      Order that was imported.

      Parameters:
      order - value to be set
    • of

      static OrderImportedMessage of()
      factory method
      Returns:
      instance of OrderImportedMessage
    • of

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

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

      static OrderImportedMessageBuilder builder()
      builder factory method for OrderImportedMessage
      Returns:
      builder
    • builder

      create builder for OrderImportedMessage instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withOrderImportedMessage

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