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 Details

    • getProcessing

      @NotNull @NotNull Long getProcessing()

      The number of resources in the processing state.

      Returns:
      processing
    • getValidationFailed

      @NotNull @NotNull Long getValidationFailed()

      The number of resources in the validationFailed state.

      Returns:
      validationFailed
    • getUnresolved

      @NotNull @NotNull Long getUnresolved()

      The number of resources in the unresolved state.

      Returns:
      unresolved
    • getWaitForMasterVariant

      @NotNull @NotNull Long getWaitForMasterVariant()

      The number of resources in the waitForMasterVariant state.

      Returns:
      waitForMasterVariant
    • getImported

      @NotNull @NotNull Long getImported()

      The number of resources in the imported state.

      Returns:
      imported
    • getRejected

      @NotNull @NotNull Long getRejected()

      The number of resources in the rejected state.

      Returns:
      rejected
    • getCanceled

      @NotNull @NotNull Long getCanceled()

      The number of resources in the canceled state.

      Returns:
      canceled
    • setProcessing

      void setProcessing(Long processing)

      The number of resources in the processing state.

      Parameters:
      processing - value to be set
    • setValidationFailed

      void setValidationFailed(Long validationFailed)

      The number of resources in the validationFailed state.

      Parameters:
      validationFailed - value to be set
    • setUnresolved

      void setUnresolved(Long unresolved)

      The number of resources in the unresolved state.

      Parameters:
      unresolved - value to be set
    • setWaitForMasterVariant

      void setWaitForMasterVariant(Long waitForMasterVariant)

      The number of resources in the waitForMasterVariant state.

      Parameters:
      waitForMasterVariant - value to be set
    • setImported

      void setImported(Long imported)

      The number of resources in the imported state.

      Parameters:
      imported - value to be set
    • setRejected

      void setRejected(Long rejected)

      The number of resources in the rejected state.

      Parameters:
      rejected - value to be set
    • setCanceled

      void setCanceled(Long canceled)

      The number of resources in the canceled state.

      Parameters:
      canceled - value to be set
    • of

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

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

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

      static OperationStatesBuilder builder()
      builder factory method for OperationStates
      Returns:
      builder
    • builder

      static OperationStatesBuilder builder(OperationStates template)
      create builder for OperationStates instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withOperationStates

      default <T> T withOperationStates(Function<OperationStates,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<OperationStates> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference