Class BusinessUnitSearchRequestBuilder
- All Implemented Interfaces:
Builder<BusinessUnitSearchRequest>
Example to create an instance using the builder pattern
BusinessUnitSearchRequest businessUnitSearchRequest = BusinessUnitSearchRequest.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddSort
(Function<SearchSortingBuilder, SearchSorting> builder) Controls how results to your query are sorted.build()
builds BusinessUnitSearchRequest with checking for non-null required valuesbuilds BusinessUnitSearchRequest 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 Business Unit Search query.getSort()
Controls how results to your query are sorted.The maximum number of search results to be returned.of()
factory method for an instance of BusinessUnitSearchRequestBuilderof
(BusinessUnitSearchRequest template) create builder for BusinessUnitSearchRequest 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 Business Unit Search query.query
(Function<SearchQueryBuilder, SearchQueryBuilder> builder) The Business Unit 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 Business Unit Search query.Controls how results to your query are sorted.
-
Constructor Details
-
BusinessUnitSearchRequestBuilder
public BusinessUnitSearchRequestBuilder()
-
-
Method Details
-
query
public BusinessUnitSearchRequestBuilder query(Function<SearchQueryBuilder, SearchQueryBuilder> builder) The Business Unit Search query.
- Parameters:
builder
- function to build the query value- Returns:
- Builder
-
withQuery
The Business Unit Search query.
- Parameters:
builder
- function to build the query value- Returns:
- Builder
-
query
The Business Unit 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 BusinessUnitSearchRequestBuilder 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 BusinessUnitSearchRequestBuilder 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
public BusinessUnitSearchRequestBuilder addSort(Function<SearchSortingBuilder, SearchSorting> 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
-
setSort
public BusinessUnitSearchRequestBuilder setSort(Function<SearchSortingBuilder, SearchSorting> 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
-
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 Business Unit 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 BusinessUnitSearchRequest with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitSearchRequest>
- Returns:
- BusinessUnitSearchRequest
-
buildUnchecked
builds BusinessUnitSearchRequest without checking for non-null required values- Returns:
- BusinessUnitSearchRequest
-
of
factory method for an instance of BusinessUnitSearchRequestBuilder- Returns:
- builder
-
of
create builder for BusinessUnitSearchRequest instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-