Interface ProductCreatedMessagePayload

All Superinterfaces:
MessagePayload, MessagePayloadMixin

public interface ProductCreatedMessagePayload extends MessagePayload

Generated after a successful Create Product request.


Example to create an instance using the builder pattern

     ProductCreatedMessagePayload productCreatedMessagePayload = ProductCreatedMessagePayload.builder()
             .productProjection(productProjectionBuilder -> productProjectionBuilder)
             .build()
 
  • Field Details

    • PRODUCT_CREATED

      static final String PRODUCT_CREATED
      discriminator value for ProductCreatedMessagePayload
      See Also:
  • Method Details

    • getProductProjection

      @NotNull @Valid @NotNull @Valid ProductProjection getProductProjection()

      The staged Product Projection of the Product at the time of creation.

      Returns:
      productProjection
    • setProductProjection

      void setProductProjection(ProductProjection productProjection)

      The staged Product Projection of the Product at the time of creation.

      Parameters:
      productProjection - value to be set
    • of

      factory method
      Returns:
      instance of ProductCreatedMessagePayload
    • of

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

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

      builder factory method for ProductCreatedMessagePayload
      Returns:
      builder
    • builder

      create builder for ProductCreatedMessagePayload instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductCreatedMessagePayload

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