Interface ProductVariantTailoring


public interface ProductVariantTailoring

The tailoring of a ProductVariant.


Example to create an instance using the builder pattern

     ProductVariantTailoring productVariantTailoring = ProductVariantTailoring.builder()
             .id(0.3)
             .build()
 
  • Method Details

    • getId

      @NotNull @NotNull Long getId()

      The id of the tailored ProductVariant.

      Returns:
      id
    • getImages

      @Valid @Valid List<Image> getImages()

      Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.

      Returns:
      images
    • getAssets

      @Valid @Valid List<Asset> getAssets()

      Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.

      Returns:
      assets
    • getAttributes

      @Valid @Valid List<ProductTailoringAttribute> getAttributes()

      Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

      • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
      • otherwise the Attribute and its value are added to the ProductVariant.
      Returns:
      attributes
    • setId

      void setId(Long id)

      The id of the tailored ProductVariant.

      Parameters:
      id - value to be set
    • setImages

      void setImages(Image... images)

      Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.

      Parameters:
      images - values to be set
    • setImages

      void setImages(List<Image> images)

      Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.

      Parameters:
      images - values to be set
    • setAssets

      void setAssets(Asset... assets)

      Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.

      Parameters:
      assets - values to be set
    • setAssets

      void setAssets(List<Asset> assets)

      Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.

      Parameters:
      assets - values to be set
    • setAttributes

      void setAttributes(ProductTailoringAttribute... attributes)

      Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

      • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
      • otherwise the Attribute and its value are added to the ProductVariant.
      Parameters:
      attributes - values to be set
    • setAttributes

      void setAttributes(List<ProductTailoringAttribute> attributes)

      Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

      • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
      • otherwise the Attribute and its value are added to the ProductVariant.
      Parameters:
      attributes - values to be set
    • of

      factory method
      Returns:
      instance of ProductVariantTailoring
    • of

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

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

      builder factory method for ProductVariantTailoring
      Returns:
      builder
    • builder

      create builder for ProductVariantTailoring instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductVariantTailoring

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