Class ProductSearchFacetStatsExpressionBuilder
java.lang.Object
com.commercetools.api.models.product_search.ProductSearchFacetStatsExpressionBuilder
- All Implemented Interfaces:
Builder<ProductSearchFacetStatsExpression>
public class ProductSearchFacetStatsExpressionBuilder
extends Object
implements Builder<ProductSearchFacetStatsExpression>
ProductSearchFacetStatsExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSearchFacetStatsExpression productSearchFacetStatsExpression = ProductSearchFacetStatsExpression.builder()
.stats(statsBuilder -> statsBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSearchFacetStatsExpression with checking for non-null required valuesbuilds ProductSearchFacetStatsExpression without checking for non-null required valuesgetStats()
Definition of the stats facet.of()
factory method for an instance of ProductSearchFacetStatsExpressionBuilderof
(ProductSearchFacetStatsExpression template) create builder for ProductSearchFacetStatsExpression instanceDefinition of the stats facet.Definition of the stats facet.Definition of the stats facet.
-
Constructor Details
-
ProductSearchFacetStatsExpressionBuilder
public ProductSearchFacetStatsExpressionBuilder()
-
-
Method Details
-
stats
public ProductSearchFacetStatsExpressionBuilder stats(Function<ProductSearchFacetStatsValueBuilder, ProductSearchFacetStatsValueBuilder> builder) Definition of the stats facet.
- Parameters:
builder
- function to build the stats value- Returns:
- Builder
-
withStats
public ProductSearchFacetStatsExpressionBuilder withStats(Function<ProductSearchFacetStatsValueBuilder, ProductSearchFacetStatsValue> builder) Definition of the stats facet.
- Parameters:
builder
- function to build the stats value- Returns:
- Builder
-
stats
Definition of the stats facet.
- Parameters:
stats
- value to be set- Returns:
- Builder
-
getStats
Definition of the stats facet.
- Returns:
- stats
-
build
builds ProductSearchFacetStatsExpression with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSearchFacetStatsExpression>
- Returns:
- ProductSearchFacetStatsExpression
-
buildUnchecked
builds ProductSearchFacetStatsExpression without checking for non-null required values- Returns:
- ProductSearchFacetStatsExpression
-
of
factory method for an instance of ProductSearchFacetStatsExpressionBuilder- Returns:
- builder
-
of
public static ProductSearchFacetStatsExpressionBuilder of(ProductSearchFacetStatsExpression template) create builder for ProductSearchFacetStatsExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-