Class SearchQueryBuilder
java.lang.Object
com.commercetools.api.models.search.SearchQueryBuilder
- All Implemented Interfaces:
Builder<SearchQuery>
SearchQueryBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchQuery searchQuery = SearchQuery.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SearchQuery with checking for non-null required valuesbuilds SearchQuery without checking for non-null required valuesstatic SearchQueryBuilder
of()
factory method for an instance of SearchQueryBuilderstatic SearchQueryBuilder
of
(SearchQuery template) create builder for SearchQuery instance
-
Constructor Details
-
SearchQueryBuilder
public SearchQueryBuilder()
-
-
Method Details
-
build
builds SearchQuery with checking for non-null required values- Specified by:
build
in interfaceBuilder<SearchQuery>
- Returns:
- SearchQuery
-
buildUnchecked
builds SearchQuery without checking for non-null required values- Returns:
- SearchQuery
-
of
factory method for an instance of SearchQueryBuilder- Returns:
- builder
-
of
create builder for SearchQuery instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-