Interface BusinessUnitSetAssociatesAction

All Superinterfaces:
BusinessUnitUpdateAction, ResourceUpdateAction<BusinessUnitUpdateAction>

public interface BusinessUnitSetAssociatesAction extends BusinessUnitUpdateAction

Changes the Associates of a Business Unit, generates a BusinessUnitAssociatesSet Message.


Example to create an instance using the builder pattern

     BusinessUnitSetAssociatesAction businessUnitSetAssociatesAction = BusinessUnitSetAssociatesAction.builder()
             .plusAssociates(associatesBuilder -> associatesBuilder)
             .build()
 
  • Field Details

    • SET_ASSOCIATES

      static final String SET_ASSOCIATES
      discriminator value for BusinessUnitSetAssociatesAction
      See Also:
  • Method Details

    • getAssociates

      @NotNull @Valid @NotNull @Valid List<AssociateDraft> getAssociates()

      The new list of Associates. If not provided, any existing list is removed.

      Returns:
      associates
    • setAssociates

      void setAssociates(AssociateDraft... associates)

      The new list of Associates. If not provided, any existing list is removed.

      Parameters:
      associates - values to be set
    • setAssociates

      void setAssociates(List<AssociateDraft> associates)

      The new list of Associates. If not provided, any existing list is removed.

      Parameters:
      associates - values to be set
    • of

      factory method
      Returns:
      instance of BusinessUnitSetAssociatesAction
    • of

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

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

      builder factory method for BusinessUnitSetAssociatesAction
      Returns:
      builder
    • builder

      create builder for BusinessUnitSetAssociatesAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withBusinessUnitSetAssociatesAction

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