Interface InvalidStateTransitionError

All Superinterfaces:
ErrorObject

public interface InvalidStateTransitionError extends ErrorObject
InvalidStateTransitionError
Example to create an instance using the builder pattern

     InvalidStateTransitionError invalidStateTransitionError = InvalidStateTransitionError.builder()
             .message("{message}")
             .currentState(ProcessingState.PROCESSING)
             .newState(ProcessingState.PROCESSING)
             .build()
 
  • Field Details

    • INVALID_TRANSITION

      static final String INVALID_TRANSITION
      discriminator value for InvalidStateTransitionError
      See Also:
  • Method Details

    • getCurrentState

      @NotNull @NotNull ProcessingState getCurrentState()

      Every Import Operation is assigned one of the following states.

      Returns:
      currentState
    • getNewState

      @NotNull @NotNull ProcessingState getNewState()

      Every Import Operation is assigned one of the following states.

      Returns:
      newState
    • setCurrentState

      void setCurrentState(ProcessingState currentState)

      Every Import Operation is assigned one of the following states.

      Parameters:
      currentState - value to be set
    • setNewState

      void setNewState(ProcessingState newState)

      Every Import Operation is assigned one of the following states.

      Parameters:
      newState - value to be set
    • of

      factory method
      Returns:
      instance of InvalidStateTransitionError
    • of

      factory method to create a shallow copy InvalidStateTransitionError
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of InvalidStateTransitionError
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for InvalidStateTransitionError
      Returns:
      builder
    • builder

      create builder for InvalidStateTransitionError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withInvalidStateTransitionError

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