Interface OperationStates
public interface OperationStates
The number of resources in each Processing State.
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 OperationStatesBuilder
builder()
builder factory method for OperationStatesstatic OperationStatesBuilder
builder
(OperationStates template) create builder for OperationStates instancestatic OperationStates
deepCopy
(OperationStates template) factory method to create a deep copy of OperationStates@NotNull Long
The number of resources in thecanceled
state.@NotNull Long
The number of resources in theimported
state.@NotNull Long
The number of resources in theprocessing
state.@NotNull Long
The number of resources in therejected
state.@NotNull Long
The number of resources in theunresolved
state.@NotNull Long
The number of resources in thevalidationFailed
state.@NotNull Long
The number of resources in thewaitForMasterVariant
state.static OperationStates
of()
factory methodstatic OperationStates
of
(OperationStates template) factory method to create a shallow copy OperationStatesvoid
setCanceled
(Long canceled) The number of resources in thecanceled
state.void
setImported
(Long imported) The number of resources in theimported
state.void
setProcessing
(Long processing) The number of resources in theprocessing
state.void
setRejected
(Long rejected) The number of resources in therejected
state.void
setUnresolved
(Long unresolved) The number of resources in theunresolved
state.void
setValidationFailed
(Long validationFailed) The number of resources in thevalidationFailed
state.void
setWaitForMasterVariant
(Long waitForMasterVariant) The number of resources in thewaitForMasterVariant
state.static com.fasterxml.jackson.core.type.TypeReference<OperationStates>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOperationStates
(Function<OperationStates, T> helper) accessor map function
-
Method Details
-
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
-
setProcessing
The number of resources in the
processing
state.- Parameters:
processing
- value to be set
-
setValidationFailed
The number of resources in the
validationFailed
state.- Parameters:
validationFailed
- value to be set
-
setUnresolved
The number of resources in the
unresolved
state.- Parameters:
unresolved
- value to be set
-
setWaitForMasterVariant
The number of resources in the
waitForMasterVariant
state.- Parameters:
waitForMasterVariant
- value to be set
-
setImported
The number of resources in the
imported
state.- Parameters:
imported
- value to be set
-
setRejected
The number of resources in the
rejected
state.- Parameters:
rejected
- value to be set
-
setCanceled
The number of resources in the
canceled
state.- 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
-
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
-