Class AssociateRolePagedQueryResponseBuilder
- All Implemented Interfaces:
Builder<AssociateRolePagedQueryResponse>
Example to create an instance using the builder pattern
AssociateRolePagedQueryResponse associateRolePagedQueryResponse = AssociateRolePagedQueryResponse.builder()
.limit(0.3)
.offset(0.3)
.count(0.3)
.plusResults(resultsBuilder -> resultsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddResults
(Function<AssociateRoleBuilder, AssociateRole> builder) AssociateRoles matching the query.build()
builds AssociateRolePagedQueryResponse with checking for non-null required valuesbuilds AssociateRolePagedQueryResponse without checking for non-null required valuesActual number of results returned.getCount()
Actual number of results returned.getLimit()
Number of requested results.Number of elements skipped.AssociateRoles matching the query.getTotal()
Total number of results matching the query.Number of requested results.of()
factory method for an instance of AssociateRolePagedQueryResponseBuilderof
(AssociateRolePagedQueryResponse template) create builder for AssociateRolePagedQueryResponse instanceNumber of elements skipped.plusResults
(AssociateRole... results) AssociateRoles matching the query.AssociateRoles matching the query.results
(AssociateRole... results) AssociateRoles matching the query.results
(List<AssociateRole> results) AssociateRoles matching the query.setResults
(Function<AssociateRoleBuilder, AssociateRole> builder) AssociateRoles matching the query.Total number of results matching the query.AssociateRoles matching the query.
-
Constructor Details
-
AssociateRolePagedQueryResponseBuilder
public AssociateRolePagedQueryResponseBuilder()
-
-
Method Details
-
limit
Number of requested results.
- Parameters:
limit
- value to be set- Returns:
- Builder
-
offset
Number of elements skipped.
- Parameters:
offset
- value to be set- Returns:
- Builder
-
count
Actual number of results returned.
- Parameters:
count
- value to be set- Returns:
- Builder
-
total
Total number of results matching the query. This number is an estimation that is not strongly consistent. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter
withTotal=false
. When the results are filtered with a Query Predicate,total
is subject to a limit.- Parameters:
total
- value to be set- Returns:
- Builder
-
results
AssociateRoles matching the query.
- Parameters:
results
- value to be set- Returns:
- Builder
-
results
AssociateRoles matching the query.
- Parameters:
results
- value to be set- Returns:
- Builder
-
plusResults
AssociateRoles matching the query.
- Parameters:
results
- value to be set- Returns:
- Builder
-
plusResults
public AssociateRolePagedQueryResponseBuilder plusResults(Function<AssociateRoleBuilder, AssociateRoleBuilder> builder) AssociateRoles matching the query.
- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
withResults
public AssociateRolePagedQueryResponseBuilder withResults(Function<AssociateRoleBuilder, AssociateRoleBuilder> builder) AssociateRoles matching the query.
- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
addResults
public AssociateRolePagedQueryResponseBuilder addResults(Function<AssociateRoleBuilder, AssociateRole> builder) AssociateRoles matching the query.
- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
setResults
public AssociateRolePagedQueryResponseBuilder setResults(Function<AssociateRoleBuilder, AssociateRole> builder) AssociateRoles matching the query.
- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
getLimit
Number of requested results.
- Returns:
- limit
-
getOffset
Number of elements skipped.
- Returns:
- offset
-
getCount
Actual number of results returned.
- Returns:
- count
-
getTotal
Total number of results matching the query. This number is an estimation that is not strongly consistent. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter
withTotal=false
. When the results are filtered with a Query Predicate,total
is subject to a limit.- Returns:
- total
-
getResults
AssociateRoles matching the query.
- Returns:
- results
-
build
builds AssociateRolePagedQueryResponse with checking for non-null required values- Specified by:
build
in interfaceBuilder<AssociateRolePagedQueryResponse>
- Returns:
- AssociateRolePagedQueryResponse
-
buildUnchecked
builds AssociateRolePagedQueryResponse without checking for non-null required values- Returns:
- AssociateRolePagedQueryResponse
-
of
factory method for an instance of AssociateRolePagedQueryResponseBuilder- Returns:
- builder
-
of
create builder for AssociateRolePagedQueryResponse instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-