Class ProductSearchFacetDistinctExpressionBuilder
java.lang.Object
com.commercetools.api.models.product_search.ProductSearchFacetDistinctExpressionBuilder
- All Implemented Interfaces:
Builder<ProductSearchFacetDistinctExpression>
public class ProductSearchFacetDistinctExpressionBuilder
extends Object
implements Builder<ProductSearchFacetDistinctExpression>
ProductSearchFacetDistinctExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSearchFacetDistinctExpression productSearchFacetDistinctExpression = ProductSearchFacetDistinctExpression.builder()
.distinct(distinctBuilder -> distinctBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSearchFacetDistinctExpression with checking for non-null required valuesbuilds ProductSearchFacetDistinctExpression without checking for non-null required valuesdistinct
(ProductSearchFacetDistinctValue distinct) Definition of the distinct facet.distinct
(Function<ProductSearchFacetDistinctValueBuilder, ProductSearchFacetDistinctValueBuilder> builder) Definition of the distinct facet.Definition of the distinct facet.of()
factory method for an instance of ProductSearchFacetDistinctExpressionBuilderof
(ProductSearchFacetDistinctExpression template) create builder for ProductSearchFacetDistinctExpression instancewithDistinct
(Function<ProductSearchFacetDistinctValueBuilder, ProductSearchFacetDistinctValue> builder) Definition of the distinct facet.
-
Constructor Details
-
ProductSearchFacetDistinctExpressionBuilder
public ProductSearchFacetDistinctExpressionBuilder()
-
-
Method Details
-
distinct
public ProductSearchFacetDistinctExpressionBuilder distinct(Function<ProductSearchFacetDistinctValueBuilder, ProductSearchFacetDistinctValueBuilder> builder) Definition of the distinct facet.
- Parameters:
builder
- function to build the distinct value- Returns:
- Builder
-
withDistinct
public ProductSearchFacetDistinctExpressionBuilder withDistinct(Function<ProductSearchFacetDistinctValueBuilder, ProductSearchFacetDistinctValue> builder) Definition of the distinct facet.
- Parameters:
builder
- function to build the distinct value- Returns:
- Builder
-
distinct
public ProductSearchFacetDistinctExpressionBuilder distinct(ProductSearchFacetDistinctValue distinct) Definition of the distinct facet.
- Parameters:
distinct
- value to be set- Returns:
- Builder
-
getDistinct
Definition of the distinct facet.
- Returns:
- distinct
-
build
builds ProductSearchFacetDistinctExpression with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSearchFacetDistinctExpression>
- Returns:
- ProductSearchFacetDistinctExpression
-
buildUnchecked
builds ProductSearchFacetDistinctExpression without checking for non-null required values- Returns:
- ProductSearchFacetDistinctExpression
-
of
factory method for an instance of ProductSearchFacetDistinctExpressionBuilder- Returns:
- builder
-
of
public static ProductSearchFacetDistinctExpressionBuilder of(ProductSearchFacetDistinctExpression template) create builder for ProductSearchFacetDistinctExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-