Class OrderSearchRequestBuilder
- All Implemented Interfaces:
Builder<OrderSearchRequest>
Example to create an instance using the builder pattern
OrderSearchRequest orderSearchRequest = OrderSearchRequest.builder()
.query(queryBuilder -> queryBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionControls how results to your query are sorted.build()
builds OrderSearchRequest with checking for non-null required valuesbuilds OrderSearchRequest without checking for non-null required valuesgetLimit()
The maximum number of search results to be returned on one page.The number of search results to be skipped in the response for pagination.getQuery()
The Order search query.getSort()
Controls how results to your query are sorted.The maximum number of search results to be returned on one page.static OrderSearchRequestBuilder
of()
factory method for an instance of OrderSearchRequestBuilderstatic OrderSearchRequestBuilder
of
(OrderSearchRequest template) create builder for OrderSearchRequest instanceThe number of search results to be skipped in the response for pagination.plusSort
(OrderSearchSorting... sort) Controls how results to your query are sorted.Controls how results to your query are sorted.query
(OrderSearchQuery query) The Order search query.The Order search query.Controls how results to your query are sorted.sort
(OrderSearchSorting... sort) Controls how results to your query are sorted.sort
(List<OrderSearchSorting> sort) Controls how results to your query are sorted.The Order search query.Controls how results to your query are sorted.
-
Constructor Details
-
OrderSearchRequestBuilder
public OrderSearchRequestBuilder()
-
-
Method Details
-
query
public OrderSearchRequestBuilder query(Function<OrderSearchQueryBuilder, OrderSearchQueryBuilder> builder) The Order search query.
- Parameters:
builder
- function to build the query value- Returns:
- Builder
-
withQuery
public OrderSearchRequestBuilder withQuery(Function<OrderSearchQueryBuilder, OrderSearchQuery> builder) The Order search query.
- Parameters:
builder
- function to build the query value- Returns:
- Builder
-
query
The Order 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 OrderSearchRequestBuilder plusSort(Function<OrderSearchSortingBuilder, OrderSearchSortingBuilder> 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 OrderSearchRequestBuilder withSort(Function<OrderSearchSortingBuilder, OrderSearchSortingBuilder> 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 OrderSearchRequestBuilder addSort(Function<OrderSearchSortingBuilder, OrderSearchSorting> 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 OrderSearchRequestBuilder setSort(Function<OrderSearchSortingBuilder, OrderSearchSorting> 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 on one page.
- 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 Order 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 on one page.
- Returns:
- limit
-
getOffset
The number of search results to be skipped in the response for pagination.
- Returns:
- offset
-
build
builds OrderSearchRequest with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSearchRequest>
- Returns:
- OrderSearchRequest
-
buildUnchecked
builds OrderSearchRequest without checking for non-null required values- Returns:
- OrderSearchRequest
-
of
factory method for an instance of OrderSearchRequestBuilder- Returns:
- builder
-
of
create builder for OrderSearchRequest instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-