Class ProductSearchFacetRangesExpressionBuilder
java.lang.Object
com.commercetools.api.models.product_search.ProductSearchFacetRangesExpressionBuilder
- All Implemented Interfaces:
Builder<ProductSearchFacetRangesExpression>
public class ProductSearchFacetRangesExpressionBuilder
extends Object
implements Builder<ProductSearchFacetRangesExpression>
ProductSearchFacetRangesExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSearchFacetRangesExpression productSearchFacetRangesExpression = ProductSearchFacetRangesExpression.builder()
.ranges(rangesBuilder -> rangesBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductSearchFacetRangesExpression with checking for non-null required valuesbuilds ProductSearchFacetRangesExpression without checking for non-null required valuesDefinition of the ranges facet.of()factory method for an instance of ProductSearchFacetRangesExpressionBuilderof(ProductSearchFacetRangesExpression template) create builder for ProductSearchFacetRangesExpression instanceranges(ProductSearchFacetRangesValue ranges) Definition of the ranges facet.Definition of the ranges facet.Definition of the ranges facet.
-
Constructor Details
-
ProductSearchFacetRangesExpressionBuilder
public ProductSearchFacetRangesExpressionBuilder()
-
-
Method Details
-
ranges
public ProductSearchFacetRangesExpressionBuilder ranges(Function<ProductSearchFacetRangesValueBuilder, ProductSearchFacetRangesValueBuilder> builder) Definition of the ranges facet.
- Parameters:
builder- function to build the ranges value- Returns:
- Builder
-
withRanges
public ProductSearchFacetRangesExpressionBuilder withRanges(Function<ProductSearchFacetRangesValueBuilder, ProductSearchFacetRangesValue> builder) Definition of the ranges facet.
- Parameters:
builder- function to build the ranges value- Returns:
- Builder
-
ranges
Definition of the ranges facet.
- Parameters:
ranges- value to be set- Returns:
- Builder
-
getRanges
Definition of the ranges facet.
- Returns:
- ranges
-
build
builds ProductSearchFacetRangesExpression with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductSearchFacetRangesExpression>- Returns:
- ProductSearchFacetRangesExpression
-
buildUnchecked
builds ProductSearchFacetRangesExpression without checking for non-null required values- Returns:
- ProductSearchFacetRangesExpression
-
of
factory method for an instance of ProductSearchFacetRangesExpressionBuilder- Returns:
- builder
-
of
public static ProductSearchFacetRangesExpressionBuilder of(ProductSearchFacetRangesExpression template) create builder for ProductSearchFacetRangesExpression instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-