Class ProductSearchFacetResultBuilder
java.lang.Object
com.commercetools.api.models.product_search.ProductSearchFacetResultBuilder
- All Implemented Interfaces:
Builder<ProductSearchFacetResult>
public class ProductSearchFacetResultBuilder
extends Object
implements Builder<ProductSearchFacetResult>
ProductSearchFacetResultBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSearchFacetResult productSearchFacetResult = ProductSearchFacetResult.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSearchFacetResult with checking for non-null required valuesbuilds ProductSearchFacetResult without checking for non-null required valuesgetName()
Name of the facet.Name of the facet.of()
factory method for an instance of ProductSearchFacetResultBuilderof
(ProductSearchFacetResult template) create builder for ProductSearchFacetResult instance
-
Constructor Details
-
ProductSearchFacetResultBuilder
public ProductSearchFacetResultBuilder()
-
-
Method Details
-
name
Name of the facet.
- Parameters:
name
- value to be set- Returns:
- Builder
-
getName
Name of the facet.
- Returns:
- name
-
build
builds ProductSearchFacetResult with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSearchFacetResult>
- Returns:
- ProductSearchFacetResult
-
buildUnchecked
builds ProductSearchFacetResult without checking for non-null required values- Returns:
- ProductSearchFacetResult
-
of
factory method for an instance of ProductSearchFacetResultBuilder- Returns:
- builder
-
of
create builder for ProductSearchFacetResult instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-