Interface ProductSearchResult
public interface ProductSearchResult
ProductSearchResult
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSearchResult productSearchResult = ProductSearchResult.builder()
.id("{id}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProductSearchResultBuilder
builder()
builder factory method for ProductSearchResultstatic ProductSearchResultBuilder
builder
(ProductSearchResult template) create builder for ProductSearchResult instancestatic ProductSearchResult
deepCopy
(ProductSearchResult template) factory method to create a deep copy of ProductSearchResult@NotNull String
getId()
id
of the Product that matches the search query.Information about which Product Variants match the search query.@Valid ProductProjection
Projected data of the Product withid
.static ProductSearchResult
of()
factory methodstatic ProductSearchResult
of
(ProductSearchResult template) factory method to create a shallow copy ProductSearchResultvoid
id
of the Product that matches the search query.void
setMatchingVariants
(ProductSearchMatchingVariants matchingVariants) Information about which Product Variants match the search query.void
setProductProjection
(ProductProjection productProjection) Projected data of the Product withid
.static com.fasterxml.jackson.core.type.TypeReference<ProductSearchResult>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductSearchResult
(Function<ProductSearchResult, T> helper) accessor map function
-
Method Details
-
getId
id
of the Product that matches the search query.- Returns:
- id
-
getMatchingVariants
Information about which Product Variants match the search query. Only present if
markMatchingVariants
is set totrue
in the ProductSearchRequest.- Returns:
- matchingVariants
-
getProductProjection
Projected data of the Product with
id
. Only present if data integration with Product Projection parameters is requested.- Returns:
- productProjection
-
setId
id
of the Product that matches the search query.- Parameters:
id
- value to be set
-
setMatchingVariants
Information about which Product Variants match the search query. Only present if
markMatchingVariants
is set totrue
in the ProductSearchRequest.- Parameters:
matchingVariants
- value to be set
-
setProductProjection
Projected data of the Product with
id
. Only present if data integration with Product Projection parameters is requested.- Parameters:
productProjection
- value to be set
-
of
factory method- Returns:
- instance of ProductSearchResult
-
of
factory method to create a shallow copy ProductSearchResult- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductSearchResult- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSearchResult- Returns:
- builder
-
builder
create builder for ProductSearchResult instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSearchResult
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
-