Interface OrderSearchRequest
public interface OrderSearchRequest
OrderSearchRequest
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSearchRequest orderSearchRequest = OrderSearchRequest.builder()
.query(queryBuilder -> queryBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic OrderSearchRequestBuilder
builder()
builder factory method for OrderSearchRequeststatic OrderSearchRequestBuilder
builder
(OrderSearchRequest template) create builder for OrderSearchRequest instancestatic OrderSearchRequest
deepCopy
(OrderSearchRequest template) factory method to create a deep copy of OrderSearchRequestgetLimit()
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.@NotNull @Valid OrderSearchQuery
getQuery()
The Order search query.@Valid List<OrderSearchSorting>
getSort()
Controls how results to your query are sorted.static OrderSearchRequest
of()
factory methodstatic OrderSearchRequest
of
(OrderSearchRequest template) factory method to create a shallow copy OrderSearchRequestvoid
The maximum number of search results to be returned on one page.void
The number of search results to be skipped in the response for pagination.void
setQuery
(OrderSearchQuery query) The Order search query.void
setSort
(OrderSearchSorting... sort) Controls how results to your query are sorted.void
setSort
(List<OrderSearchSorting> sort) Controls how results to your query are sorted.static com.fasterxml.jackson.core.type.TypeReference<OrderSearchRequest>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderSearchRequest
(Function<OrderSearchRequest, T> helper) accessor map function
-
Method Details
-
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
Integer getLimit()The maximum number of search results to be returned on one page.
- Returns:
- limit
-
getOffset
Integer getOffset()The number of search results to be skipped in the response for pagination.
- Returns:
- offset
-
setQuery
The Order search query.
- Parameters:
query
- value to be set
-
setSort
Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.
- Parameters:
sort
- values to be set
-
setSort
Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.
- Parameters:
sort
- values to be set
-
setLimit
The maximum number of search results to be returned on one page.
- Parameters:
limit
- value to be set
-
setOffset
The number of search results to be skipped in the response for pagination.
- Parameters:
offset
- value to be set
-
of
factory method- Returns:
- instance of OrderSearchRequest
-
of
factory method to create a shallow copy OrderSearchRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderSearchRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderSearchRequest- Returns:
- builder
-
builder
create builder for OrderSearchRequest instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderSearchRequest
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-