Class AttributeGroupPagedQueryResponseBuilder
- All Implemented Interfaces:
Builder<AttributeGroupPagedQueryResponse>
Example to create an instance using the builder pattern
AttributeGroupPagedQueryResponse attributeGroupPagedQueryResponse = AttributeGroupPagedQueryResponse.builder()
.limit(0.3)
.offset(0.3)
.count(0.3)
.plusResults(resultsBuilder -> resultsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAttributeGroups matching the query.build()
builds AttributeGroupPagedQueryResponse with checking for non-null required valuesbuilds AttributeGroupPagedQueryResponse without checking for non-null required valuesActual number of results returned.getCount()
Actual number of results returned.getLimit()
Number of results requested in the query request.Offset supplied by the client or the server default.AttributeGroups matching the query.getTotal()
Total number of results matching the query.Number of results requested in the query request.of()
factory method for an instance of AttributeGroupPagedQueryResponseBuilderof
(AttributeGroupPagedQueryResponse template) create builder for AttributeGroupPagedQueryResponse instanceOffset supplied by the client or the server default.plusResults
(AttributeGroup... results) AttributeGroups matching the query.AttributeGroups matching the query.results
(AttributeGroup... results) AttributeGroups matching the query.results
(List<AttributeGroup> results) AttributeGroups matching the query.AttributeGroups matching the query.Total number of results matching the query.AttributeGroups matching the query.
-
Constructor Details
-
AttributeGroupPagedQueryResponseBuilder
public AttributeGroupPagedQueryResponseBuilder()
-
-
Method Details
-
limit
Number of results requested in the query request.
- Parameters:
limit
- value to be set- Returns:
- Builder
-
offset
Offset supplied by the client or the server default. It is the number of elements skipped, not a page number.
- 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
AttributeGroups matching the query.
- Parameters:
results
- value to be set- Returns:
- Builder
-
results
AttributeGroups matching the query.
- Parameters:
results
- value to be set- Returns:
- Builder
-
plusResults
AttributeGroups matching the query.
- Parameters:
results
- value to be set- Returns:
- Builder
-
plusResults
public AttributeGroupPagedQueryResponseBuilder plusResults(Function<AttributeGroupBuilder, AttributeGroupBuilder> builder) AttributeGroups matching the query.
- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
withResults
public AttributeGroupPagedQueryResponseBuilder withResults(Function<AttributeGroupBuilder, AttributeGroupBuilder> builder) AttributeGroups matching the query.
- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
addResults
public AttributeGroupPagedQueryResponseBuilder addResults(Function<AttributeGroupBuilder, AttributeGroup> builder) AttributeGroups matching the query.
- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
setResults
public AttributeGroupPagedQueryResponseBuilder setResults(Function<AttributeGroupBuilder, AttributeGroup> builder) AttributeGroups matching the query.
- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
getLimit
Number of results requested in the query request.
- Returns:
- limit
-
getOffset
Offset supplied by the client or the server default. It is the number of elements skipped, not a page number.
- 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
AttributeGroups matching the query.
- Returns:
- results
-
build
builds AttributeGroupPagedQueryResponse with checking for non-null required values- Specified by:
build
in interfaceBuilder<AttributeGroupPagedQueryResponse>
- Returns:
- AttributeGroupPagedQueryResponse
-
buildUnchecked
builds AttributeGroupPagedQueryResponse without checking for non-null required values- Returns:
- AttributeGroupPagedQueryResponse
-
of
factory method for an instance of AttributeGroupPagedQueryResponseBuilder- Returns:
- builder
-
of
create builder for AttributeGroupPagedQueryResponse instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-