Class ProductSearchFacetCountExpressionBuilder
java.lang.Object
com.commercetools.api.models.product_search.ProductSearchFacetCountExpressionBuilder
- All Implemented Interfaces:
Builder<ProductSearchFacetCountExpression>
public class ProductSearchFacetCountExpressionBuilder
extends Object
implements Builder<ProductSearchFacetCountExpression>
ProductSearchFacetCountExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSearchFacetCountExpression productSearchFacetCountExpression = ProductSearchFacetCountExpression.builder()
.count(countBuilder -> countBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSearchFacetCountExpression with checking for non-null required valuesbuilds ProductSearchFacetCountExpression without checking for non-null required valuesDefinition of the count facet.Definition of the count facet.getCount()
Definition of the count facet.of()
factory method for an instance of ProductSearchFacetCountExpressionBuilderof
(ProductSearchFacetCountExpression template) create builder for ProductSearchFacetCountExpression instanceDefinition of the count facet.
-
Constructor Details
-
ProductSearchFacetCountExpressionBuilder
public ProductSearchFacetCountExpressionBuilder()
-
-
Method Details
-
count
public ProductSearchFacetCountExpressionBuilder count(Function<ProductSearchFacetCountValueBuilder, ProductSearchFacetCountValueBuilder> builder) Definition of the count facet.
- Parameters:
builder
- function to build the count value- Returns:
- Builder
-
withCount
public ProductSearchFacetCountExpressionBuilder withCount(Function<ProductSearchFacetCountValueBuilder, ProductSearchFacetCountValue> builder) Definition of the count facet.
- Parameters:
builder
- function to build the count value- Returns:
- Builder
-
count
Definition of the count facet.
- Parameters:
count
- value to be set- Returns:
- Builder
-
getCount
Definition of the count facet.
- Returns:
- count
-
build
builds ProductSearchFacetCountExpression with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSearchFacetCountExpression>
- Returns:
- ProductSearchFacetCountExpression
-
buildUnchecked
builds ProductSearchFacetCountExpression without checking for non-null required values- Returns:
- ProductSearchFacetCountExpression
-
of
factory method for an instance of ProductSearchFacetCountExpressionBuilder- Returns:
- builder
-
of
public static ProductSearchFacetCountExpressionBuilder of(ProductSearchFacetCountExpression template) create builder for ProductSearchFacetCountExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-