Class CustomerSearchRequestBuilder
- All Implemented Interfaces:
Builder<CustomerSearchRequest>
Example to create an instance using the builder pattern
CustomerSearchRequest customerSearchRequest = CustomerSearchRequest.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddSort
(Function<SearchSortingBuilder, SearchSorting> builder) Controls how results to your query are sorted.build()
builds CustomerSearchRequest with checking for non-null required valuesbuilds CustomerSearchRequest without checking for non-null required valuesgetLimit()
The maximum number of search results to be returned.The number of search results to be skipped in the response for pagination.getQuery()
The Customer search query.getSort()
Controls how results to your query are sorted.The maximum number of search results to be returned.static CustomerSearchRequestBuilder
of()
factory method for an instance of CustomerSearchRequestBuilderstatic CustomerSearchRequestBuilder
of
(CustomerSearchRequest template) create builder for CustomerSearchRequest instanceThe number of search results to be skipped in the response for pagination.plusSort
(SearchSorting... sort) Controls how results to your query are sorted.Controls how results to your query are sorted.query
(SearchQuery query) The Customer search query.query
(Function<SearchQueryBuilder, SearchQueryBuilder> builder) The Customer search query.setSort
(Function<SearchSortingBuilder, SearchSorting> builder) Controls how results to your query are sorted.sort
(SearchSorting... sort) Controls how results to your query are sorted.sort
(List<SearchSorting> sort) Controls how results to your query are sorted.withQuery
(Function<SearchQueryBuilder, SearchQuery> builder) The Customer search query.Controls how results to your query are sorted.
-
Constructor Details
-
CustomerSearchRequestBuilder
public CustomerSearchRequestBuilder()
-
-
Method Details
-
query
The Customer search query.
- Parameters:
builder
- function to build the query value- Returns:
- Builder
-
withQuery
The Customer search query.
- Parameters:
builder
- function to build the query value- Returns:
- Builder
-
query
The Customer search query.
- Parameters:
query
- value to be set- Returns:
- Builder
-
sort
Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.
- Parameters:
sort
- value to be set- Returns:
- Builder
-
sort
Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.
- Parameters:
sort
- value to be set- Returns:
- Builder
-
plusSort
Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.
- Parameters:
sort
- value to be set- Returns:
- Builder
-
plusSort
public CustomerSearchRequestBuilder plusSort(Function<SearchSortingBuilder, SearchSortingBuilder> builder) Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.
- Parameters:
builder
- function to build the sort value- Returns:
- Builder
-
withSort
public CustomerSearchRequestBuilder withSort(Function<SearchSortingBuilder, SearchSortingBuilder> builder) Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.
- Parameters:
builder
- function to build the sort value- Returns:
- Builder
-
addSort
Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.
- Parameters:
builder
- function to build the sort value- Returns:
- Builder
-
setSort
Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.
- Parameters:
builder
- function to build the sort value- Returns:
- Builder
-
limit
The maximum number of search results to be returned.
- Parameters:
limit
- value to be set- Returns:
- Builder
-
offset
The number of search results to be skipped in the response for pagination.
- Parameters:
offset
- value to be set- Returns:
- Builder
-
getQuery
The Customer search query.
- Returns:
- query
-
getSort
Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.
- Returns:
- sort
-
getLimit
The maximum number of search results to be returned.
- Returns:
- limit
-
getOffset
The number of search results to be skipped in the response for pagination.
- Returns:
- offset
-
build
builds CustomerSearchRequest with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerSearchRequest>
- Returns:
- CustomerSearchRequest
-
buildUnchecked
builds CustomerSearchRequest without checking for non-null required values- Returns:
- CustomerSearchRequest
-
of
factory method for an instance of CustomerSearchRequestBuilder- Returns:
- builder
-
of
create builder for CustomerSearchRequest instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-