Interface BusinessUnitPagedSearchResponse
public interface BusinessUnitPagedSearchResponse
BusinessUnitPagedSearchResponse
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitPagedSearchResponse businessUnitPagedSearchResponse = BusinessUnitPagedSearchResponse.builder()
.total(0.3)
.limit(0.3)
.offset(0.3)
.plusResults(resultsBuilder -> resultsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitPagedSearchResponsebuilder
(BusinessUnitPagedSearchResponse template) create builder for BusinessUnitPagedSearchResponse instancedeepCopy
(BusinessUnitPagedSearchResponse template) factory method to create a deep copy of BusinessUnitPagedSearchResponse@NotNull Integer
getLimit()
Number of results requested.@NotNull Integer
Number of elements skipped.@NotNull @Valid List<BusinessUnitSearchResult>
Search result containing the Business Units matching the search query.@NotNull Long
getTotal()
Total number of results matching the query.of()
factory methodof
(BusinessUnitPagedSearchResponse template) factory method to create a shallow copy BusinessUnitPagedSearchResponsevoid
Number of results requested.void
Number of elements skipped.void
setResults
(BusinessUnitSearchResult... results) Search result containing the Business Units matching the search query.void
setResults
(List<BusinessUnitSearchResult> results) Search result containing the Business Units matching the search query.void
Total number of results matching the query.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitPagedSearchResponse>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getTotal
Total number of results matching the query.
- Returns:
- total
-
getLimit
Number of results requested.
- Returns:
- limit
-
getOffset
Number of elements skipped.
- Returns:
- offset
-
getResults
Search result containing the Business Units matching the search query.
- Returns:
- results
-
setTotal
Total number of results matching the query.
- Parameters:
total
- value to be set
-
setLimit
Number of results requested.
- Parameters:
limit
- value to be set
-
setOffset
Number of elements skipped.
- Parameters:
offset
- value to be set
-
setResults
Search result containing the Business Units matching the search query.
- Parameters:
results
- values to be set
-
setResults
Search result containing the Business Units matching the search query.
- Parameters:
results
- values to be set
-
of
factory method- Returns:
- instance of BusinessUnitPagedSearchResponse
-
of
factory method to create a shallow copy BusinessUnitPagedSearchResponse- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitPagedSearchResponse deepCopy(@Nullable BusinessUnitPagedSearchResponse template) factory method to create a deep copy of BusinessUnitPagedSearchResponse- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitPagedSearchResponse- Returns:
- builder
-
builder
create builder for BusinessUnitPagedSearchResponse instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitPagedSearchResponse
default <T> T withBusinessUnitPagedSearchResponse(Function<BusinessUnitPagedSearchResponse, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitPagedSearchResponse> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-