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()
Unique identifier of the Product.Describes the variants that matched the search criteria.@Valid ProductProjection
Contains Product Projection data for Products matching theprojection
field in the Search Products request.static ProductSearchResult
of()
factory methodstatic ProductSearchResult
of
(ProductSearchResult template) factory method to create a shallow copy ProductSearchResultvoid
Unique identifier of the Product.void
setMatchingVariants
(ProductSearchMatchingVariants matchingVariants) Describes the variants that matched the search criteria.void
setProductProjection
(ProductProjection productProjection) Contains Product Projection data for Products matching theprojection
field in the Search Products request.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
Unique identifier of the Product.
- Returns:
- id
-
getProductProjection
Contains Product Projection data for Products matching the
projection
field in the Search Products request.- Returns:
- productProjection
-
getMatchingVariants
Describes the variants that matched the search criteria.
- Returns:
- matchingVariants
-
setId
Unique identifier of the Product.
- Parameters:
id
- value to be set
-
setProductProjection
Contains Product Projection data for Products matching the
projection
field in the Search Products request.- Parameters:
productProjection
- value to be set
-
setMatchingVariants
Describes the variants that matched the search criteria.
- Parameters:
matchingVariants
- 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
-