Interface SimilarProductMeta
public interface SimilarProductMeta
SimilarProductMeta
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SimilarProductMeta similarProductMeta = SimilarProductMeta.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic SimilarProductMetaBuilderbuilder()builder factory method for SimilarProductMetastatic SimilarProductMetaBuilderbuilder(SimilarProductMeta template) create builder for SimilarProductMeta instancestatic SimilarProductMetadeepCopy(SimilarProductMeta template) factory method to create a deep copy of SimilarProductMeta@Valid LocalizedStringLocalized product description used for similarity estimation.@Valid LocalizedStringgetName()Localized product name used for similarity estimation.@Valid MoneygetPrice()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.static SimilarProductMetaof()factory methodstatic SimilarProductMetaof(SimilarProductMeta template) factory method to create a shallow copy SimilarProductMetavoidsetDescription(LocalizedString description) Localized product description used for similarity estimation.voidsetName(LocalizedString name) Localized product name used for similarity estimation.voidThe product price in cents using the currency defined in SimilarProductSearchRequest If multiple prices exist, the median value is taken as a representative amount.voidsetVariantCount(Long variantCount) Total number of variants associated with the product.static com.fasterxml.jackson.core.type.TypeReference<SimilarProductMeta>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithSimilarProductMeta(Function<SimilarProductMeta, T> helper) accessor map function
-
Method Details
-
getName
Localized product name used for similarity estimation.
- Returns:
- name
-
getDescription
Localized product description used for similarity estimation.
- 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.
- Returns:
- price
-
getVariantCount
Long getVariantCount()Total number of variants associated with the product.
- Returns:
- variantCount
-
setName
Localized product name used for similarity estimation.
- Parameters:
name- value to be set
-
setDescription
Localized product description used for similarity estimation.
- Parameters:
description- value to be set
-
setPrice
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
Total number of variants associated with the product.
- Parameters:
variantCount- value to be set
-
of
factory method- Returns:
- instance of SimilarProductMeta
-
of
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
builder factory method for SimilarProductMeta- Returns:
- builder
-
builder
create builder for SimilarProductMeta instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withSimilarProductMeta
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-