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 ProductSearchResultBuilderbuilder()builder factory method for ProductSearchResultstatic ProductSearchResultBuilderbuilder(ProductSearchResult template) create builder for ProductSearchResult instancecopyDeep()static ProductSearchResultdeepCopy(ProductSearchResult template) factory method to create a deep copy of ProductSearchResult@NotNull StringgetId()idof the Product that matches the search query.Information about which Product Variants match the search query.@Valid ProductProjectionProjected data of the Product withid.static ProductSearchResultof()factory methodstatic ProductSearchResultof(ProductSearchResult template) factory method to create a shallow copy ProductSearchResultvoididof the Product that matches the search query.voidsetMatchingVariants(ProductSearchMatchingVariants matchingVariants) Information about which Product Variants match the search query.voidsetProductProjection(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> TwithProductSearchResult(Function<ProductSearchResult, T> helper) accessor map function
-
Method Details
-
getId
idof the Product that matches the search query.- Returns:
- id
-
getMatchingVariants
Information about which Product Variants match the search query. Only present if
markMatchingVariantsis set totruein 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
idof 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
markMatchingVariantsis set totruein 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
-
copyDeep
ProductSearchResult copyDeep() -
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
-