Interface MyBusinessUnitUpdate


public interface MyBusinessUnitUpdate
MyBusinessUnitUpdate
Example to create an instance using the builder pattern

     MyBusinessUnitUpdate myBusinessUnitUpdate = MyBusinessUnitUpdate.builder()
             .version(0.3)
             .plusActions(actionsBuilder -> actionsBuilder)
             .build()
 
  • Method Details

    • getVersion

      @NotNull @NotNull Long getVersion()

      Expected version of the BusinessUnit on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.

      Returns:
      version
    • getActions

      @NotNull @Valid @NotNull @Valid List<BusinessUnitUpdateAction> getActions()

      Update actions to be performed on the BusinessUnit.

      Returns:
      actions
    • setVersion

      void setVersion(Long version)

      Expected version of the BusinessUnit on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.

      Parameters:
      version - value to be set
    • setActions

      void setActions(BusinessUnitUpdateAction... actions)

      Update actions to be performed on the BusinessUnit.

      Parameters:
      actions - values to be set
    • setActions

      void setActions(List<BusinessUnitUpdateAction> actions)

      Update actions to be performed on the BusinessUnit.

      Parameters:
      actions - values to be set
    • of

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

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

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

      static MyBusinessUnitUpdateBuilder builder()
      builder factory method for MyBusinessUnitUpdate
      Returns:
      builder
    • builder

      create builder for MyBusinessUnitUpdate instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMyBusinessUnitUpdate

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