Class SimilarProductMetaImpl

java.lang.Object
com.commercetools.ml.models.similar_products.SimilarProductMetaImpl
All Implemented Interfaces:
SimilarProductMeta, io.vrap.rmf.base.client.ModelBase

public class SimilarProductMetaImpl extends Object implements SimilarProductMeta, io.vrap.rmf.base.client.ModelBase
SimilarProductMeta
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Localized product description used for similarity estimation.
    Localized product name used for similarity estimation.
    The product price in cents using the currency defined in SimilarProductSearchRequest If multiple prices exist, the median value is taken as a representative amount.
    Total number of variants associated with the product.
    int
     
    void
    Localized product description used for similarity estimation.
    void
    Localized product name used for similarity estimation.
    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.
    void
    setVariantCount(Long variantCount)
    Total number of variants associated with the product.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString

    Methods inherited from interface com.commercetools.ml.models.similar_products.SimilarProductMeta

    withSimilarProductMeta
  • Constructor Details

    • SimilarProductMetaImpl

      public SimilarProductMetaImpl()
      create empty instance
  • Method Details

    • getName

      public LocalizedString getName()

      Localized product name used for similarity estimation.

      Specified by:
      getName in interface SimilarProductMeta
      Returns:
      name
    • getDescription

      public LocalizedString getDescription()

      Localized product description used for similarity estimation.

      Specified by:
      getDescription in interface SimilarProductMeta
      Returns:
      description
    • getPrice

      public 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.

      Specified by:
      getPrice in interface SimilarProductMeta
      Returns:
      price
    • getVariantCount

      public Long getVariantCount()

      Total number of variants associated with the product.

      Specified by:
      getVariantCount in interface SimilarProductMeta
      Returns:
      variantCount
    • setName

      public void setName(LocalizedString name)
      Description copied from interface: SimilarProductMeta

      Localized product name used for similarity estimation.

      Specified by:
      setName in interface SimilarProductMeta
      Parameters:
      name - value to be set
    • setDescription

      public void setDescription(LocalizedString description)
      Description copied from interface: SimilarProductMeta

      Localized product description used for similarity estimation.

      Specified by:
      setDescription in interface SimilarProductMeta
      Parameters:
      description - value to be set
    • setPrice

      public void setPrice(Money price)
      Description copied from interface: SimilarProductMeta

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

      Specified by:
      setPrice in interface SimilarProductMeta
      Parameters:
      price - value to be set
    • setVariantCount

      public void setVariantCount(Long variantCount)
      Description copied from interface: SimilarProductMeta

      Total number of variants associated with the product.

      Specified by:
      setVariantCount in interface SimilarProductMeta
      Parameters:
      variantCount - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object