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 SimilarProductMetaBuilder
builder()
builder factory method for SimilarProductMetastatic SimilarProductMetaBuilder
builder
(SimilarProductMeta template) create builder for SimilarProductMeta instancestatic SimilarProductMeta
deepCopy
(SimilarProductMeta template) factory method to create a deep copy of SimilarProductMeta@Valid LocalizedString
Localized product description used for similarity estimation.@Valid LocalizedString
getName()
Localized product name used for similarity estimation.@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.Total number of variants associated with the product.static SimilarProductMeta
of()
factory methodstatic SimilarProductMeta
of
(SimilarProductMeta template) factory method to create a shallow copy SimilarProductMetavoid
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.static com.fasterxml.jackson.core.type.TypeReference<SimilarProductMeta>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withSimilarProductMeta
(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
-