Class ProductSearchFacetResultBucketEntryBuilder
java.lang.Object
com.commercetools.api.models.product_search.ProductSearchFacetResultBucketEntryBuilder
- All Implemented Interfaces:
Builder<ProductSearchFacetResultBucketEntry>
public class ProductSearchFacetResultBucketEntryBuilder
extends Object
implements Builder<ProductSearchFacetResultBucketEntry>
ProductSearchFacetResultBucketEntryBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSearchFacetResultBucketEntry productSearchFacetResultBucketEntry = ProductSearchFacetResultBucketEntry.builder()
.key("{key}")
.count(0.3)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductSearchFacetResultBucketEntry with checking for non-null required valuesbuilds ProductSearchFacetResultBucketEntry without checking for non-null required valuesNumber of values in the bucket.getCount()Number of values in the bucket.getKey()Key of the bucket.Key of the bucket.of()factory method for an instance of ProductSearchFacetResultBucketEntryBuilderof(ProductSearchFacetResultBucketEntry template) create builder for ProductSearchFacetResultBucketEntry instance
-
Constructor Details
-
ProductSearchFacetResultBucketEntryBuilder
public ProductSearchFacetResultBucketEntryBuilder()
-
-
Method Details
-
key
Key of the bucket.
- Parameters:
key- value to be set- Returns:
- Builder
-
count
Number of values in the bucket.
- Parameters:
count- value to be set- Returns:
- Builder
-
getKey
Key of the bucket.
- Returns:
- key
-
getCount
Number of values in the bucket.
- Returns:
- count
-
build
builds ProductSearchFacetResultBucketEntry with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductSearchFacetResultBucketEntry>- Returns:
- ProductSearchFacetResultBucketEntry
-
buildUnchecked
builds ProductSearchFacetResultBucketEntry without checking for non-null required values- Returns:
- ProductSearchFacetResultBucketEntry
-
of
factory method for an instance of ProductSearchFacetResultBucketEntryBuilder- Returns:
- builder
-
of
public static ProductSearchFacetResultBucketEntryBuilder of(ProductSearchFacetResultBucketEntry template) create builder for ProductSearchFacetResultBucketEntry instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-