Class OperationStatesBuilder
- All Implemented Interfaces:
Builder<OperationStates>
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OperationStates with checking for non-null required valuesbuilds OperationStates without checking for non-null required valuesThe number of ImportOperations in thecanceled
state.The number of ImportOperations in thecanceled
state.The number of ImportOperations in theimported
state.The number of ImportOperations in theprocessing
state.The number of ImportOperations in therejected
state.The number of ImportOperations in theunresolved
state.The number of ImportOperations in thevalidationFailed
state.The number of ImportOperations in thewaitForMasterVariant
state.The number of ImportOperations 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 ImportOperations in theprocessing
state.The number of ImportOperations in therejected
state.unresolved
(Long unresolved) The number of ImportOperations in theunresolved
state.validationFailed
(Long validationFailed) The number of ImportOperations in thevalidationFailed
state.waitForMasterVariant
(Long waitForMasterVariant) The number of ImportOperations in thewaitForMasterVariant
state.
-
Constructor Details
-
OperationStatesBuilder
public OperationStatesBuilder()
-
-
Method Details
-
processing
The number of ImportOperations in the
processing
state.- Parameters:
processing
- value to be set- Returns:
- Builder
-
validationFailed
The number of ImportOperations in the
validationFailed
state.- Parameters:
validationFailed
- value to be set- Returns:
- Builder
-
unresolved
The number of ImportOperations in the
unresolved
state.- Parameters:
unresolved
- value to be set- Returns:
- Builder
-
waitForMasterVariant
The number of ImportOperations in the
waitForMasterVariant
state.- Parameters:
waitForMasterVariant
- value to be set- Returns:
- Builder
-
imported
The number of ImportOperations in the
imported
state.- Parameters:
imported
- value to be set- Returns:
- Builder
-
rejected
The number of ImportOperations in the
rejected
state.- Parameters:
rejected
- value to be set- Returns:
- Builder
-
canceled
The number of ImportOperations in the
canceled
state.- Parameters:
canceled
- value to be set- Returns:
- Builder
-
getProcessing
The number of ImportOperations in the
processing
state.- Returns:
- processing
-
getValidationFailed
The number of ImportOperations in the
validationFailed
state.- Returns:
- validationFailed
-
getUnresolved
The number of ImportOperations in the
unresolved
state.- Returns:
- unresolved
-
getWaitForMasterVariant
The number of ImportOperations in the
waitForMasterVariant
state.- Returns:
- waitForMasterVariant
-
getImported
The number of ImportOperations in the
imported
state.- Returns:
- imported
-
getRejected
The number of ImportOperations in the
rejected
state.- Returns:
- rejected
-
getCanceled
The number of ImportOperations 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
-