Interface ImportSummary
public interface ImportSummary
Describes the status of an ImportContainer by the number of resources in each Processing State. Can be used to monitor the import progress per Import Container.
Example to create an instance using the builder pattern
ImportSummary importSummary = ImportSummary.builder()
.states(statesBuilder -> statesBuilder)
.total(1)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImportSummaryBuilder
builder()
builder factory method for ImportSummarystatic ImportSummaryBuilder
builder
(ImportSummary template) create builder for ImportSummary instancestatic ImportSummary
deepCopy
(ImportSummary template) factory method to create a deep copy of ImportSummary@NotNull @Valid OperationStates
The import status of an ImportContainer given by the number of resources in each Processing State.@NotNull Long
getTotal()
The total number of ImportOperations received for this Import Summary.static ImportSummary
of()
factory methodstatic ImportSummary
of
(ImportSummary template) factory method to create a shallow copy ImportSummaryvoid
setStates
(OperationStates states) The import status of an ImportContainer given by the number of resources in each Processing State.void
The total number of ImportOperations received for this Import Summary.static com.fasterxml.jackson.core.type.TypeReference<ImportSummary>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withImportSummary
(Function<ImportSummary, T> helper) accessor map function
-
Method Details
-
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
-
setStates
The import status of an ImportContainer given by the number of resources in each Processing State.
- Parameters:
states
- value to be set
-
setTotal
The total number of ImportOperations received for this Import Summary.
- Parameters:
total
- value to be set
-
of
factory method- Returns:
- instance of ImportSummary
-
of
factory method to create a shallow copy ImportSummary- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ImportSummary- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ImportSummary- Returns:
- builder
-
builder
create builder for ImportSummary instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withImportSummary
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
-