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.

      Returns:
      type
    • setType

      void setType(StateTypeEnum type)

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

      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
    • deepCopy

      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 com.fasterxml.jackson.core.type.TypeReference<StateChangeTypeAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference