Interface OperationStates
The number of ImportOperations in each ProcessingState.
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()
-
Method Summary
Modifier and TypeMethodDescriptionstatic OperationStatesBuilderbuilder()builder factory method for OperationStatesstatic OperationStatesBuilderbuilder(OperationStates template) create builder for OperationStates instancecopyDeep()static OperationStatesdeepCopy(OperationStates template) factory method to create a deep copy of OperationStates@NotNull LongThe number of ImportOperations in thecanceledstate.@NotNull LongThe number of ImportOperations in theimportedstate.@NotNull LongThe number of ImportOperations in theprocessingstate.@NotNull LongThe number of ImportOperations in therejectedstate.@NotNull LongThe number of ImportOperations in theunresolvedstate.@NotNull LongThe number of ImportOperations in thevalidationFailedstate.@NotNull LongThe number of ImportOperations in thewaitForMasterVariantstate.static OperationStatesof()factory methodstatic OperationStatesof(OperationStates template) factory method to create a shallow copy OperationStatesvoidsetCanceled(Long canceled) The number of ImportOperations in thecanceledstate.voidsetImported(Long imported) The number of ImportOperations in theimportedstate.voidsetProcessing(Long processing) The number of ImportOperations in theprocessingstate.voidsetRejected(Long rejected) The number of ImportOperations in therejectedstate.voidsetUnresolved(Long unresolved) The number of ImportOperations in theunresolvedstate.voidsetValidationFailed(Long validationFailed) The number of ImportOperations in thevalidationFailedstate.voidsetWaitForMasterVariant(Long waitForMasterVariant) The number of ImportOperations in thewaitForMasterVariantstate.static com.fasterxml.jackson.core.type.TypeReference<OperationStates>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithOperationStates(Function<OperationStates, T> helper) accessor map function
-
Method Details
-
getProcessing
The number of ImportOperations in the
processingstate.- Returns:
- processing
-
getValidationFailed
The number of ImportOperations in the
validationFailedstate.- Returns:
- validationFailed
-
getUnresolved
The number of ImportOperations in the
unresolvedstate.- Returns:
- unresolved
-
getWaitForMasterVariant
The number of ImportOperations in the
waitForMasterVariantstate.- Returns:
- waitForMasterVariant
-
getImported
The number of ImportOperations in the
importedstate.- Returns:
- imported
-
getRejected
The number of ImportOperations in the
rejectedstate.- Returns:
- rejected
-
getCanceled
The number of ImportOperations in the
canceledstate.- Returns:
- canceled
-
setProcessing
The number of ImportOperations in the
processingstate.- Parameters:
processing- value to be set
-
setValidationFailed
The number of ImportOperations in the
validationFailedstate.- Parameters:
validationFailed- value to be set
-
setUnresolved
The number of ImportOperations in the
unresolvedstate.- Parameters:
unresolved- value to be set
-
setWaitForMasterVariant
The number of ImportOperations in the
waitForMasterVariantstate.- Parameters:
waitForMasterVariant- value to be set
-
setImported
The number of ImportOperations in the
importedstate.- Parameters:
imported- value to be set
-
setRejected
The number of ImportOperations in the
rejectedstate.- Parameters:
rejected- value to be set
-
setCanceled
The number of ImportOperations in the
canceledstate.- Parameters:
canceled- value to be set
-
of
factory method- Returns:
- instance of OperationStates
-
of
factory method to create a shallow copy OperationStates- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
OperationStates copyDeep() -
deepCopy
factory method to create a deep copy of OperationStates- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OperationStates- Returns:
- builder
-
builder
create builder for OperationStates instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withOperationStates
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-