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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Localized product description used for similarity estimation.getName()
Localized product name used for similarity estimation.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.Total number of variants associated with the product.int
hashCode()
void
setDescription
(LocalizedString description) Localized product description used for similarity estimation.void
setName
(LocalizedString name) Localized product name used for similarity estimation.void
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
Localized product name used for similarity estimation.
- Specified by:
getName
in interfaceSimilarProductMeta
- Returns:
- name
-
getDescription
Localized product description used for similarity estimation.
- Specified by:
getDescription
in interfaceSimilarProductMeta
- Returns:
- description
-
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 interfaceSimilarProductMeta
- Returns:
- price
-
getVariantCount
Total number of variants associated with the product.
- Specified by:
getVariantCount
in interfaceSimilarProductMeta
- Returns:
- variantCount
-
setName
Description copied from interface:SimilarProductMeta
Localized product name used for similarity estimation.
- Specified by:
setName
in interfaceSimilarProductMeta
- Parameters:
name
- value to be set
-
setDescription
Description copied from interface:SimilarProductMeta
Localized product description used for similarity estimation.
- Specified by:
setDescription
in interfaceSimilarProductMeta
- Parameters:
description
- value to be set
-
setPrice
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 interfaceSimilarProductMeta
- Parameters:
price
- value to be set
-
setVariantCount
Description copied from interface:SimilarProductMeta
Total number of variants associated with the product.
- Specified by:
setVariantCount
in interfaceSimilarProductMeta
- Parameters:
variantCount
- value to be set
-
equals
-
hashCode
public int hashCode()
-