Class BusinessUnitPagedSearchResponseBuilder
- All Implemented Interfaces:
Builder<BusinessUnitPagedSearchResponse>
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSearch result containing the Business Units matching the search query.build()
builds BusinessUnitPagedSearchResponse with checking for non-null required valuesbuilds BusinessUnitPagedSearchResponse without checking for non-null required valuesgetLimit()
Number of results requested.Number of elements skipped.Search result containing the Business Units matching the search query.getTotal()
Total number of results matching the query.Number of results requested.of()
factory method for an instance of BusinessUnitPagedSearchResponseBuilderof
(BusinessUnitPagedSearchResponse template) create builder for BusinessUnitPagedSearchResponse instanceNumber of elements skipped.plusResults
(BusinessUnitSearchResult... results) Search result containing the Business Units matching the search query.Search result containing the Business Units matching the search query.results
(BusinessUnitSearchResult... results) Search result containing the Business Units matching the search query.results
(List<BusinessUnitSearchResult> results) Search result containing the Business Units matching the search query.Search result containing the Business Units matching the search query.Total number of results matching the query.Search result containing the Business Units matching the search query.
-
Constructor Details
-
BusinessUnitPagedSearchResponseBuilder
public BusinessUnitPagedSearchResponseBuilder()
-
-
Method Details
-
total
Total number of results matching the query.
- Parameters:
total
- value to be set- Returns:
- Builder
-
limit
Number of results requested.
- Parameters:
limit
- value to be set- Returns:
- Builder
-
offset
Number of elements skipped.
- Parameters:
offset
- value to be set- Returns:
- Builder
-
results
Search result containing the Business Units matching the search query.
- Parameters:
results
- value to be set- Returns:
- Builder
-
results
Search result containing the Business Units matching the search query.
- Parameters:
results
- value to be set- Returns:
- Builder
-
plusResults
Search result containing the Business Units matching the search query.
- Parameters:
results
- value to be set- Returns:
- Builder
-
plusResults
public BusinessUnitPagedSearchResponseBuilder plusResults(Function<BusinessUnitSearchResultBuilder, BusinessUnitSearchResultBuilder> builder) Search result containing the Business Units matching the search query.
- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
withResults
public BusinessUnitPagedSearchResponseBuilder withResults(Function<BusinessUnitSearchResultBuilder, BusinessUnitSearchResultBuilder> builder) Search result containing the Business Units matching the search query.
- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
addResults
public BusinessUnitPagedSearchResponseBuilder addResults(Function<BusinessUnitSearchResultBuilder, BusinessUnitSearchResult> builder) Search result containing the Business Units matching the search query.
- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
setResults
public BusinessUnitPagedSearchResponseBuilder setResults(Function<BusinessUnitSearchResultBuilder, BusinessUnitSearchResult> builder) Search result containing the Business Units matching the search query.
- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
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
-
build
builds BusinessUnitPagedSearchResponse with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitPagedSearchResponse>
- Returns:
- BusinessUnitPagedSearchResponse
-
buildUnchecked
builds BusinessUnitPagedSearchResponse without checking for non-null required values- Returns:
- BusinessUnitPagedSearchResponse
-
of
factory method for an instance of BusinessUnitPagedSearchResponseBuilder- Returns:
- builder
-
of
create builder for BusinessUnitPagedSearchResponse instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-