Class ImportSummaryBuilder
java.lang.Object
com.commercetools.importapi.models.importsummaries.ImportSummaryBuilder
- All Implemented Interfaces:
Builder<ImportSummary>
ImportSummaryBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ImportSummary importSummary = ImportSummary.builder()
.states(statesBuilder -> statesBuilder)
.total(1)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ImportSummary with checking for non-null required valuesbuilds ImportSummary without checking for non-null required valuesThe import status of an ImportContainer given by the number of resources in each Processing State.getTotal()
The total number of ImportOperations received for this Import Summary.static ImportSummaryBuilder
of()
factory method for an instance of ImportSummaryBuilderstatic ImportSummaryBuilder
of
(ImportSummary template) create builder for ImportSummary instancestates
(OperationStates states) The import status of an ImportContainer given by the number of resources in each Processing State.The import status of an ImportContainer given by the number of resources in each Processing State.The total number of ImportOperations received for this Import Summary.The import status of an ImportContainer given by the number of resources in each Processing State.
-
Constructor Details
-
ImportSummaryBuilder
public ImportSummaryBuilder()
-
-
Method Details
-
states
The import status of an ImportContainer given by the number of resources in each Processing State.
- Parameters:
builder
- function to build the states value- Returns:
- Builder
-
withStates
The import status of an ImportContainer given by the number of resources in each Processing State.
- Parameters:
builder
- function to build the states value- Returns:
- Builder
-
states
The import status of an ImportContainer given by the number of resources in each Processing State.
- Parameters:
states
- value to be set- Returns:
- Builder
-
total
The total number of ImportOperations received for this Import Summary.
- Parameters:
total
- value to be set- Returns:
- Builder
-
getStates
The import status of an ImportContainer given by the number of resources in each Processing State.
- Returns:
- states
-
getTotal
The total number of ImportOperations received for this Import Summary.
- Returns:
- total
-
build
builds ImportSummary with checking for non-null required values- Specified by:
build
in interfaceBuilder<ImportSummary>
- Returns:
- ImportSummary
-
buildUnchecked
builds ImportSummary without checking for non-null required values- Returns:
- ImportSummary
-
of
factory method for an instance of ImportSummaryBuilder- Returns:
- builder
-
of
create builder for ImportSummary instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-