Class ProductSearchFacetResultCountBuilder
java.lang.Object
com.commercetools.api.models.product_search.ProductSearchFacetResultCountBuilder
- All Implemented Interfaces:
Builder<ProductSearchFacetResultCount>
public class ProductSearchFacetResultCountBuilder
extends Object
implements Builder<ProductSearchFacetResultCount>
ProductSearchFacetResultCountBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSearchFacetResultCount productSearchFacetResultCount = ProductSearchFacetResultCount.builder()
.name("{name}")
.value(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSearchFacetResultCount with checking for non-null required valuesbuilds ProductSearchFacetResultCount without checking for non-null required valuesgetName()
Name of the facet.getValue()
Number of Products (or Product Variants) matching the query.Name of the facet.of()
factory method for an instance of ProductSearchFacetResultCountBuilderof
(ProductSearchFacetResultCount template) create builder for ProductSearchFacetResultCount instanceNumber of Products (or Product Variants) matching the query.
-
Constructor Details
-
ProductSearchFacetResultCountBuilder
public ProductSearchFacetResultCountBuilder()
-
-
Method Details
-
name
Name of the facet.
- Parameters:
name
- value to be set- Returns:
- Builder
-
value
Number of Products (or Product Variants) matching the query.
- Parameters:
value
- value to be set- Returns:
- Builder
-
getName
Name of the facet.
- Returns:
- name
-
getValue
Number of Products (or Product Variants) matching the query.
- Returns:
- value
-
build
builds ProductSearchFacetResultCount with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSearchFacetResultCount>
- Returns:
- ProductSearchFacetResultCount
-
buildUnchecked
builds ProductSearchFacetResultCount without checking for non-null required values- Returns:
- ProductSearchFacetResultCount
-
of
factory method for an instance of ProductSearchFacetResultCountBuilder- Returns:
- builder
-
of
create builder for ProductSearchFacetResultCount instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-