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