Interface UpdateAction

All Superinterfaces:
ResourceUpdateAction<UpdateAction>

public interface UpdateAction extends ResourceUpdateAction<UpdateAction>
UpdateAction
Example to create an instance using the builder pattern

     UpdateAction updateAction = UpdateAction.builder()
             .action("{action}")
             .build()
 
  • Method Details

    • getAction

      @NotNull @NotNull String getAction()
      Specified by:
      getAction in interface ResourceUpdateAction<UpdateAction>
      Returns:
      action
    • setAction

      void setAction(String action)
      set action
      Parameters:
      action - value to be set
    • of

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

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

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

      static UpdateActionBuilder builder()
      builder factory method for UpdateAction
      Returns:
      builder
    • builder

      static UpdateActionBuilder builder(UpdateAction template)
      create builder for UpdateAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withUpdateAction

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