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 Details

    • getStates

      @NotNull @Valid @NotNull @Valid OperationStates getStates()

      The import status of an ImportContainer given by the number of resources in each Processing State.

      Returns:
      states
    • getTotal

      @NotNull @NotNull Long getTotal()

      The total number of ImportOperations received for this Import Summary.

      Returns:
      total
    • setStates

      void setStates(OperationStates states)

      The import status of an ImportContainer given by the number of resources in each Processing State.

      Parameters:
      states - value to be set
    • setTotal

      void setTotal(Long total)

      The total number of ImportOperations received for this Import Summary.

      Parameters:
      total - value to be set
    • of

      static ImportSummary of()
      factory method
      Returns:
      instance of ImportSummary
    • of

      static ImportSummary of(ImportSummary template)
      factory method to create a shallow copy ImportSummary
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static ImportSummary deepCopy(@Nullable ImportSummary template)
      factory method to create a deep copy of ImportSummary
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static ImportSummaryBuilder builder()
      builder factory method for ImportSummary
      Returns:
      builder
    • builder

      static ImportSummaryBuilder builder(ImportSummary template)
      create builder for ImportSummary instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withImportSummary

      default <T> T withImportSummary(Function<ImportSummary,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ImportSummary> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference