Interface DivisionBusinessUnitImport

All Superinterfaces:
BusinessUnitImport

public interface DivisionBusinessUnitImport extends BusinessUnitImport

Represents a Division, a sub-unit of a Company or another Division.


Example to create an instance using the builder pattern

     DivisionBusinessUnitImport divisionBusinessUnitImport = DivisionBusinessUnitImport.builder()
             .key("{key}")
             .name("{name}")
             .parentUnit(parentUnitBuilder -> parentUnitBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getStoreMode

      BusinessUnitStoreMode getStoreMode()

      If Explicit, the stores field cannot be empty and the Business Unit is explicitly associated with the given Stores. If FromParent, the Business Unit inherits the Stores from its parent.

      Returns:
      storeMode
    • getParentUnit

      @NotNull @Valid @NotNull @Valid BusinessUnitKeyReference getParentUnit()

      The parent Business Unit of this Division.

      Returns:
      parentUnit
    • getAssociateMode

      BusinessUnitAssociateMode getAssociateMode()

      If Explicit, Associates are not inherited from the parent. If ExplicitAndFromParent, Associates are inherited from the parent.

      Returns:
      associateMode
    • getApprovalRuleMode

      BusinessUnitApprovalRuleMode getApprovalRuleMode()

      If Explicit, approval rules are not inherited from the parent. If ExplicitAndFromParent, approval rules are inherited from the parent.

      Returns:
      approvalRuleMode
    • setStoreMode

      void setStoreMode(BusinessUnitStoreMode storeMode)

      If Explicit, the stores field cannot be empty and the Business Unit is explicitly associated with the given Stores. If FromParent, the Business Unit inherits the Stores from its parent.

      Parameters:
      storeMode - value to be set
    • setParentUnit

      void setParentUnit(BusinessUnitKeyReference parentUnit)

      The parent Business Unit of this Division.

      Parameters:
      parentUnit - value to be set
    • setAssociateMode

      void setAssociateMode(BusinessUnitAssociateMode associateMode)

      If Explicit, Associates are not inherited from the parent. If ExplicitAndFromParent, Associates are inherited from the parent.

      Parameters:
      associateMode - value to be set
    • setApprovalRuleMode

      void setApprovalRuleMode(BusinessUnitApprovalRuleMode approvalRuleMode)

      If Explicit, approval rules are not inherited from the parent. If ExplicitAndFromParent, approval rules are inherited from the parent.

      Parameters:
      approvalRuleMode - value to be set
    • of

      factory method
      Returns:
      instance of DivisionBusinessUnitImport
    • of

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

      Specified by:
      copyDeep in interface BusinessUnitImport
    • deepCopy

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

      builder factory method for DivisionBusinessUnitImport
      Returns:
      builder
    • builder

      create builder for DivisionBusinessUnitImport instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withDivisionBusinessUnitImport

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