Class ProductSearchFacetRangesFacetRangeBuilder
java.lang.Object
com.commercetools.api.models.product_search.ProductSearchFacetRangesFacetRangeBuilder
- All Implemented Interfaces:
Builder<ProductSearchFacetRangesFacetRange>
public class ProductSearchFacetRangesFacetRangeBuilder
extends Object
implements Builder<ProductSearchFacetRangesFacetRange>
ProductSearchFacetRangesFacetRangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSearchFacetRangesFacetRange productSearchFacetRangesFacetRange = ProductSearchFacetRangesFacetRange.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSearchFacetRangesFacetRange with checking for non-null required valuesbuilds ProductSearchFacetRangesFacetRange without checking for non-null required valuesStarting value of the bucket (inclusive).getFrom()
Starting value of the bucket (inclusive).getKey()
Key to assign the bucket.getTo()
Ending value of the bucket (non-inclusive).Key to assign the bucket.of()
factory method for an instance of ProductSearchFacetRangesFacetRangeBuilderof
(ProductSearchFacetRangesFacetRange template) create builder for ProductSearchFacetRangesFacetRange instanceEnding value of the bucket (non-inclusive).
-
Constructor Details
-
ProductSearchFacetRangesFacetRangeBuilder
public ProductSearchFacetRangesFacetRangeBuilder()
-
-
Method Details
-
from
Starting value of the bucket (inclusive).
- Parameters:
from
- value to be set- Returns:
- Builder
-
to
Ending value of the bucket (non-inclusive).
- Parameters:
to
- value to be set- Returns:
- Builder
-
key
Key to assign the bucket.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getFrom
Starting value of the bucket (inclusive).
- Returns:
- from
-
getTo
Ending value of the bucket (non-inclusive).
- Returns:
- to
-
getKey
Key to assign the bucket.
- Returns:
- key
-
build
builds ProductSearchFacetRangesFacetRange with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSearchFacetRangesFacetRange>
- Returns:
- ProductSearchFacetRangesFacetRange
-
buildUnchecked
builds ProductSearchFacetRangesFacetRange without checking for non-null required values- Returns:
- ProductSearchFacetRangesFacetRange
-
of
factory method for an instance of ProductSearchFacetRangesFacetRangeBuilder- Returns:
- builder
-
of
public static ProductSearchFacetRangesFacetRangeBuilder of(ProductSearchFacetRangesFacetRange template) create builder for ProductSearchFacetRangesFacetRange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-