Interface CustomerSearchRequest
public interface CustomerSearchRequest
CustomerSearchRequest
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerSearchRequest customerSearchRequest = CustomerSearchRequest.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomerSearchRequestBuilder
builder()
builder factory method for CustomerSearchRequeststatic CustomerSearchRequestBuilder
builder
(CustomerSearchRequest template) create builder for CustomerSearchRequest instancestatic CustomerSearchRequest
deepCopy
(CustomerSearchRequest template) factory method to create a deep copy of CustomerSearchRequestgetLimit()
The maximum number of search results to be returned.The number of search results to be skipped in the response for pagination.@Valid SearchQuery
getQuery()
The Customer search query.@Valid List<SearchSorting>
getSort()
Controls how results to your query are sorted.static CustomerSearchRequest
of()
factory methodstatic CustomerSearchRequest
of
(CustomerSearchRequest template) factory method to create a shallow copy CustomerSearchRequestvoid
The maximum number of search results to be returned.void
The number of search results to be skipped in the response for pagination.void
setQuery
(SearchQuery query) The Customer search query.void
setSort
(SearchSorting... sort) Controls how results to your query are sorted.void
setSort
(List<SearchSorting> sort) Controls how results to your query are sorted.static com.fasterxml.jackson.core.type.TypeReference<CustomerSearchRequest>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
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
Integer getLimit()The maximum number of search results to be returned.
- Returns:
- limit
-
getOffset
Integer getOffset()The number of search results to be skipped in the response for pagination.
- Returns:
- offset
-
setQuery
The Customer 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.
- 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 CustomerSearchRequest
-
of
factory method to create a shallow copy CustomerSearchRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomerSearchRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerSearchRequest- Returns:
- builder
-
builder
create builder for CustomerSearchRequest instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerSearchRequest
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
-