Interface ProductTailoringCreatedMessagePayload

All Superinterfaces:
MessagePayload, MessagePayloadMixin

public interface ProductTailoringCreatedMessagePayload extends MessagePayload

Generated after a successful Create Product Tailoring or Create Product Tailoring in Store request.


Example to create an instance using the builder pattern

     ProductTailoringCreatedMessagePayload productTailoringCreatedMessagePayload = ProductTailoringCreatedMessagePayload.builder()
             .store(storeBuilder -> storeBuilder)
             .product(productBuilder -> productBuilder)
             .published(true)
             .build()
 
  • Field Details

    • PRODUCT_TAILORING_CREATED

      static final String PRODUCT_TAILORING_CREATED
      discriminator value for ProductTailoringCreatedMessagePayload
      See Also:
  • Method Details

    • getKey

      String getKey()

      User-defined unique identifier of the Product Tailoring.

      Returns:
      key
    • getStore

      @NotNull @Valid @NotNull @Valid StoreKeyReference getStore()

      The Store to which the Product Tailoring belongs.

      Returns:
      store
    • getProductKey

      String getProductKey()

      User-defined unique identifier of the Product this Product Tailoring belongs to.

      Returns:
      productKey
    • getProduct

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

      Reference to the Product the Product Tailoring belongs to.

      Returns:
      product
    • getDescription

      @Valid @Valid LocalizedString getDescription()

      The description of the Product Tailoring at the time of creation.

      Returns:
      description
    • getName

      @Valid @Valid LocalizedString getName()

      The name of the Product Tailoring at the time of creation.

      Returns:
      name
    • getSlug

      @Valid @Valid LocalizedString getSlug()

      The slug of the Product Tailoring at the time of creation.

      Returns:
      slug
    • getPublished

      @NotNull @NotNull Boolean getPublished()

      true if the ProductTailoring is published.

      Returns:
      published
    • setKey

      void setKey(String key)

      User-defined unique identifier of the Product Tailoring.

      Parameters:
      key - value to be set
    • setStore

      void setStore(StoreKeyReference store)

      The Store to which the Product Tailoring belongs.

      Parameters:
      store - value to be set
    • setProductKey

      void setProductKey(String productKey)

      User-defined unique identifier of the Product this Product Tailoring belongs to.

      Parameters:
      productKey - value to be set
    • setProduct

      void setProduct(ProductReference product)

      Reference to the Product the Product Tailoring belongs to.

      Parameters:
      product - value to be set
    • setDescription

      void setDescription(LocalizedString description)

      The description of the Product Tailoring at the time of creation.

      Parameters:
      description - value to be set
    • setName

      void setName(LocalizedString name)

      The name of the Product Tailoring at the time of creation.

      Parameters:
      name - value to be set
    • setSlug

      void setSlug(LocalizedString slug)

      The slug of the Product Tailoring at the time of creation.

      Parameters:
      slug - value to be set
    • setPublished

      void setPublished(Boolean published)

      true if the ProductTailoring is published.

      Parameters:
      published - value to be set
    • of

      factory method
      Returns:
      instance of ProductTailoringCreatedMessagePayload
    • of

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

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

      builder factory method for ProductTailoringCreatedMessagePayload
      Returns:
      builder
    • builder

      create builder for ProductTailoringCreatedMessagePayload instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductTailoringCreatedMessagePayload

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