Class AssignedProductSelectionPagedQueryResponseBuilder
- All Implemented Interfaces:
Builder<AssignedProductSelectionPagedQueryResponse>
Example to create an instance using the builder pattern
AssignedProductSelectionPagedQueryResponse assignedProductSelectionPagedQueryResponse = AssignedProductSelectionPagedQueryResponse.builder()
.limit(0.3)
.offset(0.3)
.count(0.3)
.plusResults(resultsBuilder -> resultsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReferences to ProductSelection that are assigned to the Product.build()
builds AssignedProductSelectionPagedQueryResponse with checking for non-null required valuesbuilds AssignedProductSelectionPagedQueryResponse without checking for non-null required valuesActual number of results returned.getCount()
Actual number of results returned.getLimit()
Number of results requested.Number of elements skipped.References to ProductSelection that are assigned to the Product.getTotal()
Total number of results matching the query.Number of results requested.of()
factory method for an instance of AssignedProductSelectionPagedQueryResponseBuilderof
(AssignedProductSelectionPagedQueryResponse template) create builder for AssignedProductSelectionPagedQueryResponse instanceNumber of elements skipped.plusResults
(AssignedProductSelection... results) References to ProductSelection that are assigned to the Product.References to ProductSelection that are assigned to the Product.results
(AssignedProductSelection... results) References to ProductSelection that are assigned to the Product.results
(List<AssignedProductSelection> results) References to ProductSelection that are assigned to the Product.References to ProductSelection that are assigned to the Product.Total number of results matching the query.References to ProductSelection that are assigned to the Product.
-
Constructor Details
-
AssignedProductSelectionPagedQueryResponseBuilder
public AssignedProductSelectionPagedQueryResponseBuilder()
-
-
Method Details
-
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
-
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. Unlike other endpoints, the Product Selection endpoint does not return this field by default. To get
total
, pass the query parameterwithTotal
set totrue
. When the results are filtered with a Query Predicate,total
is subject to a limit.- Parameters:
total
- value to be set- Returns:
- Builder
-
results
public AssignedProductSelectionPagedQueryResponseBuilder results(AssignedProductSelection... results) References to ProductSelection that are assigned to the Product.
- Parameters:
results
- value to be set- Returns:
- Builder
-
results
public AssignedProductSelectionPagedQueryResponseBuilder results(List<AssignedProductSelection> results) References to ProductSelection that are assigned to the Product.
- Parameters:
results
- value to be set- Returns:
- Builder
-
plusResults
public AssignedProductSelectionPagedQueryResponseBuilder plusResults(AssignedProductSelection... results) References to ProductSelection that are assigned to the Product.
- Parameters:
results
- value to be set- Returns:
- Builder
-
plusResults
public AssignedProductSelectionPagedQueryResponseBuilder plusResults(Function<AssignedProductSelectionBuilder, AssignedProductSelectionBuilder> builder) References to ProductSelection that are assigned to the Product.
- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
withResults
public AssignedProductSelectionPagedQueryResponseBuilder withResults(Function<AssignedProductSelectionBuilder, AssignedProductSelectionBuilder> builder) References to ProductSelection that are assigned to the Product.
- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
addResults
public AssignedProductSelectionPagedQueryResponseBuilder addResults(Function<AssignedProductSelectionBuilder, AssignedProductSelection> builder) References to ProductSelection that are assigned to the Product.
- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
setResults
public AssignedProductSelectionPagedQueryResponseBuilder setResults(Function<AssignedProductSelectionBuilder, AssignedProductSelection> builder) References to ProductSelection that are assigned to the Product.
- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
getLimit
Number of results requested.
- 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. Unlike other endpoints, the Product Selection endpoint does not return this field by default. To get
total
, pass the query parameterwithTotal
set totrue
. When the results are filtered with a Query Predicate,total
is subject to a limit.- Returns:
- total
-
getResults
References to ProductSelection that are assigned to the Product.
- Returns:
- results
-
build
builds AssignedProductSelectionPagedQueryResponse with checking for non-null required values- Specified by:
build
in interfaceBuilder<AssignedProductSelectionPagedQueryResponse>
- Returns:
- AssignedProductSelectionPagedQueryResponse
-
buildUnchecked
builds AssignedProductSelectionPagedQueryResponse without checking for non-null required values- Returns:
- AssignedProductSelectionPagedQueryResponse
-
of
factory method for an instance of AssignedProductSelectionPagedQueryResponseBuilder- Returns:
- builder
-
of
public static AssignedProductSelectionPagedQueryResponseBuilder of(AssignedProductSelectionPagedQueryResponse template) create builder for AssignedProductSelectionPagedQueryResponse instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-