Interface VariantDeletedMessage

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

public interface VariantDeletedMessage extends Message

Generated after a successful Delete Variant request.


Example to create an instance using the builder pattern

     VariantDeletedMessage variantDeletedMessage = VariantDeletedMessage.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)
             .product(productBuilder -> productBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getProduct

      @NotNull @Valid @NotNull @Valid ProductReference getProduct()

      Reference to the Product containing the Variant.

      Returns:
      product
    • setProduct

      void setProduct(ProductReference product)

      Reference to the Product containing the Variant.

      Parameters:
      product - value to be set
    • of

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

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

      Specified by:
      copyDeep in interface BaseResource
      Specified by:
      copyDeep in interface Message
    • deepCopy

      @Nullable static VariantDeletedMessage deepCopy(@Nullable VariantDeletedMessage template)
      factory method to create a deep copy of VariantDeletedMessage
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static VariantDeletedMessageBuilder builder()
      builder factory method for VariantDeletedMessage
      Returns:
      builder
    • builder

      create builder for VariantDeletedMessage instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withVariantDeletedMessage

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

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