Interface StateChangeTypeAction

All Superinterfaces:
ResourceUpdateAction<StateUpdateAction>, StateUpdateAction

public interface StateChangeTypeAction extends StateUpdateAction
StateChangeTypeAction
Example to create an instance using the builder pattern

     StateChangeTypeAction stateChangeTypeAction = StateChangeTypeAction.builder()
             .type(StateTypeEnum.ORDER_STATE)
             .build()
 
  • Field Details

  • Method Details

    • getType

      @NotNull @NotNull StateTypeEnum getType()

      Resource or object types the State shall be assigned to. Must not be empty.

      If the new value is the same as the current value, an InvalidOperation error is returned.

      Returns:
      type
    • setType

      void setType(StateTypeEnum type)

      Resource or object types the State shall be assigned to. Must not be empty.

      If the new value is the same as the current value, an InvalidOperation error is returned.

      Parameters:
      type - value to be set
    • of

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

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

      Specified by:
      copyDeep in interface StateUpdateAction
    • deepCopy

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

      static StateChangeTypeActionBuilder builder()
      builder factory method for StateChangeTypeAction
      Returns:
      builder
    • builder

      create builder for StateChangeTypeAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStateChangeTypeAction

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

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