Interface SimilarProductSearchRequest
Example to create an instance using the builder pattern
SimilarProductSearchRequest similarProductSearchRequest = SimilarProductSearchRequest.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for SimilarProductSearchRequestbuilder
(SimilarProductSearchRequest template) create builder for SimilarProductSearchRequest instancestatic SimilarProductSearchRequest
deepCopy
(SimilarProductSearchRequest template) factory method to create a deep copy of SimilarProductSearchRequestThe three-digit currency code to compare prices in.language tag used to prioritize language for text comparisons.getLimit()
Number of results requested.Number of elements skipped.@Valid List<ProductSetSelector>
Array of length 2 of ProductSetSelector@Valid SimilarityMeasures
similarityMeasures
defines the attributes taken into account to measure product similarity.static SimilarProductSearchRequest
of()
factory methodstatic SimilarProductSearchRequest
of
(SimilarProductSearchRequest template) factory method to create a shallow copy SimilarProductSearchRequestvoid
setConfidenceMax
(Double confidenceMax) set confidenceMaxvoid
setConfidenceMin
(Double confidenceMin) set confidenceMinvoid
setCurrencyCode
(String currencyCode) The three-digit currency code to compare prices in.void
setLanguage
(String language) language tag used to prioritize language for text comparisons.void
Number of results requested.void
Number of elements skipped.void
setProductSetSelectors
(ProductSetSelector... productSetSelectors) Array of length 2 of ProductSetSelectorvoid
setProductSetSelectors
(List<ProductSetSelector> productSetSelectors) Array of length 2 of ProductSetSelectorvoid
setSimilarityMeasures
(SimilarityMeasures similarityMeasures) similarityMeasures
defines the attributes taken into account to measure product similarity.static com.fasterxml.jackson.core.type.TypeReference<SimilarProductSearchRequest>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getLimit
Long getLimit()Number of results requested.
- Returns:
- limit
-
getOffset
Long getOffset()Number of elements skipped.
- Returns:
- offset
-
getLanguage
String getLanguage()language tag used to prioritize language for text comparisons.
- Returns:
- language
-
getCurrencyCode
String getCurrencyCode()The three-digit currency code to compare prices in. When a product has multiple prices, all prices for the product are converted to the currency provided by the currency attribute and the median price is calculated for comparison. Currencies are converted using the ECB currency exchange rates at the time the request is made. Of the currency codes, only currencies with currency exchange rates provided by the ECB are supported.
- Returns:
- currencyCode
-
getSimilarityMeasures
similarityMeasures
defines the attributes taken into account to measure product similarity.- Returns:
- similarityMeasures
-
getProductSetSelectors
Array of length 2 of ProductSetSelector
- Returns:
- productSetSelectors
-
getConfidenceMin
Double getConfidenceMin()- Returns:
- confidenceMin
-
getConfidenceMax
Double getConfidenceMax()- Returns:
- confidenceMax
-
setLimit
Number of results requested.
- Parameters:
limit
- value to be set
-
setOffset
Number of elements skipped.
- Parameters:
offset
- value to be set
-
setLanguage
language tag used to prioritize language for text comparisons.
- Parameters:
language
- value to be set
-
setCurrencyCode
The three-digit currency code to compare prices in. When a product has multiple prices, all prices for the product are converted to the currency provided by the currency attribute and the median price is calculated for comparison. Currencies are converted using the ECB currency exchange rates at the time the request is made. Of the currency codes, only currencies with currency exchange rates provided by the ECB are supported.
- Parameters:
currencyCode
- value to be set
-
setSimilarityMeasures
similarityMeasures
defines the attributes taken into account to measure product similarity.- Parameters:
similarityMeasures
- value to be set
-
setProductSetSelectors
Array of length 2 of ProductSetSelector
- Parameters:
productSetSelectors
- values to be set
-
setProductSetSelectors
Array of length 2 of ProductSetSelector
- Parameters:
productSetSelectors
- values to be set
-
setConfidenceMin
set confidenceMin- Parameters:
confidenceMin
- value to be set
-
setConfidenceMax
set confidenceMax- Parameters:
confidenceMax
- value to be set
-
of
factory method- Returns:
- instance of SimilarProductSearchRequest
-
of
factory method to create a shallow copy SimilarProductSearchRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static SimilarProductSearchRequest deepCopy(@Nullable SimilarProductSearchRequest template) factory method to create a deep copy of SimilarProductSearchRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for SimilarProductSearchRequest- Returns:
- builder
-
builder
create builder for SimilarProductSearchRequest instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withSimilarProductSearchRequest
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
-