Class OperationStatesBuilder
java.lang.Object
com.commercetools.importapi.models.importsummaries.OperationStatesBuilder
- All Implemented Interfaces:
Builder<OperationStates>
OperationStatesBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OperationStates operationStates = OperationStates.builder()
.processing(1)
.validationFailed(1)
.unresolved(1)
.waitForMasterVariant(1)
.imported(1)
.rejected(1)
.canceled(1)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OperationStates with checking for non-null required valuesbuilds OperationStates without checking for non-null required valuesThe number of resources in thecanceled
state.The number of resources in thecanceled
state.The number of resources in theimported
state.The number of resources in theprocessing
state.The number of resources in therejected
state.The number of resources in theunresolved
state.The number of resources in thevalidationFailed
state.The number of resources in thewaitForMasterVariant
state.The number of resources in theimported
state.static OperationStatesBuilder
of()
factory method for an instance of OperationStatesBuilderstatic OperationStatesBuilder
of
(OperationStates template) create builder for OperationStates instanceprocessing
(Long processing) The number of resources in theprocessing
state.The number of resources in therejected
state.unresolved
(Long unresolved) The number of resources in theunresolved
state.validationFailed
(Long validationFailed) The number of resources in thevalidationFailed
state.waitForMasterVariant
(Long waitForMasterVariant) The number of resources in thewaitForMasterVariant
state.
-
Constructor Details
-
OperationStatesBuilder
public OperationStatesBuilder()
-
-
Method Details
-
processing
The number of resources in the
processing
state.- Parameters:
processing
- value to be set- Returns:
- Builder
-
validationFailed
The number of resources in the
validationFailed
state.- Parameters:
validationFailed
- value to be set- Returns:
- Builder
-
unresolved
The number of resources in the
unresolved
state.- Parameters:
unresolved
- value to be set- Returns:
- Builder
-
waitForMasterVariant
The number of resources in the
waitForMasterVariant
state.- Parameters:
waitForMasterVariant
- value to be set- Returns:
- Builder
-
imported
The number of resources in the
imported
state.- Parameters:
imported
- value to be set- Returns:
- Builder
-
rejected
The number of resources in the
rejected
state.- Parameters:
rejected
- value to be set- Returns:
- Builder
-
canceled
The number of resources in the
canceled
state.- Parameters:
canceled
- value to be set- Returns:
- Builder
-
getProcessing
The number of resources in the
processing
state.- Returns:
- processing
-
getValidationFailed
The number of resources in the
validationFailed
state.- Returns:
- validationFailed
-
getUnresolved
The number of resources in the
unresolved
state.- Returns:
- unresolved
-
getWaitForMasterVariant
The number of resources in the
waitForMasterVariant
state.- Returns:
- waitForMasterVariant
-
getImported
The number of resources in the
imported
state.- Returns:
- imported
-
getRejected
The number of resources in the
rejected
state.- Returns:
- rejected
-
getCanceled
The number of resources in the
canceled
state.- Returns:
- canceled
-
build
builds OperationStates with checking for non-null required values- Specified by:
build
in interfaceBuilder<OperationStates>
- Returns:
- OperationStates
-
buildUnchecked
builds OperationStates without checking for non-null required values- Returns:
- OperationStates
-
of
factory method for an instance of OperationStatesBuilder- Returns:
- builder
-
of
create builder for OperationStates instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-