Interface SimilarProductMeta


public interface SimilarProductMeta
SimilarProductMeta
Example to create an instance using the builder pattern

     SimilarProductMeta similarProductMeta = SimilarProductMeta.builder()
             .build()
 
  • Method Details

    • getName

      @Valid @Valid LocalizedString getName()

      Localized product name used for similarity estimation.

      Returns:
      name
    • getDescription

      @Valid @Valid LocalizedString getDescription()

      Localized product description used for similarity estimation.

      Returns:
      description
    • getPrice

      @Valid @Valid Money getPrice()

      The product price in cents using the currency defined in SimilarProductSearchRequest If multiple prices exist, the median value is taken as a representative amount.

      Returns:
      price
    • getVariantCount

      Long getVariantCount()

      Total number of variants associated with the product.

      Returns:
      variantCount
    • setName

      void setName(LocalizedString name)

      Localized product name used for similarity estimation.

      Parameters:
      name - value to be set
    • setDescription

      void setDescription(LocalizedString description)

      Localized product description used for similarity estimation.

      Parameters:
      description - value to be set
    • setPrice

      void setPrice(Money price)

      The product price in cents using the currency defined in SimilarProductSearchRequest If multiple prices exist, the median value is taken as a representative amount.

      Parameters:
      price - value to be set
    • setVariantCount

      void setVariantCount(Long variantCount)

      Total number of variants associated with the product.

      Parameters:
      variantCount - value to be set
    • of

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

      static SimilarProductMeta of(SimilarProductMeta template)
      factory method to create a shallow copy SimilarProductMeta
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      static SimilarProductMetaBuilder builder()
      builder factory method for SimilarProductMeta
      Returns:
      builder
    • builder

      static SimilarProductMetaBuilder builder(SimilarProductMeta template)
      create builder for SimilarProductMeta instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withSimilarProductMeta

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