Class ImportOperationPagedResponseBuilder
java.lang.Object
com.commercetools.importapi.models.importoperations.ImportOperationPagedResponseBuilder
- All Implemented Interfaces:
Builder<ImportOperationPagedResponse>
public class ImportOperationPagedResponseBuilder
extends Object
implements Builder<ImportOperationPagedResponse>
ImportOperationPagedResponseBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ImportOperationPagedResponse importOperationPagedResponse = ImportOperationPagedResponse.builder()
.limit(1)
.offset(1)
.count(1)
.total(1)
.plusResults(resultsBuilder -> resultsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe array of Import Operations matching the query.build()
builds ImportOperationPagedResponse with checking for non-null required valuesbuilds ImportOperationPagedResponse without checking for non-null required valuesThe actual number of results returned.getCount()
The actual number of results returned.getLimit()
Number of results requested.Number of elements skipped.The array of Import Operations matching the query.getTotal()
The total number of import operations matching the query.Number of results requested.of()
factory method for an instance of ImportOperationPagedResponseBuilderof
(ImportOperationPagedResponse template) create builder for ImportOperationPagedResponse instanceNumber of elements skipped.plusResults
(ImportOperation... results) The array of Import Operations matching the query.The array of Import Operations matching the query.results
(ImportOperation... results) The array of Import Operations matching the query.results
(List<ImportOperation> results) The array of Import Operations matching the query.The array of Import Operations matching the query.The total number of import operations matching the query.The array of Import Operations matching the query.
-
Constructor Details
-
ImportOperationPagedResponseBuilder
public ImportOperationPagedResponseBuilder()
-
-
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
The actual number of results returned.
- Parameters:
count
- value to be set- Returns:
- Builder
-
total
The total number of import operations matching the query.
- Parameters:
total
- value to be set- Returns:
- Builder
-
results
The array of Import Operations matching the query.
- Parameters:
results
- value to be set- Returns:
- Builder
-
results
The array of Import Operations matching the query.
- Parameters:
results
- value to be set- Returns:
- Builder
-
plusResults
The array of Import Operations matching the query.
- Parameters:
results
- value to be set- Returns:
- Builder
-
plusResults
public ImportOperationPagedResponseBuilder plusResults(Function<ImportOperationBuilder, ImportOperationBuilder> builder) The array of Import Operations matching the query.
- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
withResults
public ImportOperationPagedResponseBuilder withResults(Function<ImportOperationBuilder, ImportOperationBuilder> builder) The array of Import Operations matching the query.
- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
addResults
public ImportOperationPagedResponseBuilder addResults(Function<ImportOperationBuilder, ImportOperation> builder) The array of Import Operations matching the query.
- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
setResults
public ImportOperationPagedResponseBuilder setResults(Function<ImportOperationBuilder, ImportOperation> builder) The array of Import Operations matching the query.
- 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
The actual number of results returned.
- Returns:
- count
-
getTotal
The total number of import operations matching the query.
- Returns:
- total
-
getResults
The array of Import Operations matching the query.
- Returns:
- results
-
build
builds ImportOperationPagedResponse with checking for non-null required values- Specified by:
build
in interfaceBuilder<ImportOperationPagedResponse>
- Returns:
- ImportOperationPagedResponse
-
buildUnchecked
builds ImportOperationPagedResponse without checking for non-null required values- Returns:
- ImportOperationPagedResponse
-
of
factory method for an instance of ImportOperationPagedResponseBuilder- Returns:
- builder
-
of
create builder for ImportOperationPagedResponse instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-