Interface BusinessUnitAssociateResponse


public interface BusinessUnitAssociateResponse

Information about all roles and permissions of an Associate in a BusinessUnit.


Example to create an instance using the builder pattern

     BusinessUnitAssociateResponse businessUnitAssociateResponse = BusinessUnitAssociateResponse.builder()
             .customer(customerBuilder -> customerBuilder)
             .plusAssociateRoles(associateRolesBuilder -> associateRolesBuilder)
             .plusInheritedAssociateRoles(inheritedAssociateRolesBuilder -> inheritedAssociateRolesBuilder)
             .plusPermissions(permissionsBuilder -> permissionsBuilder)
             .build()
 
  • Method Details

    • getCustomer

      @NotNull @Valid @NotNull @Valid CustomerReference getCustomer()

      The Customer that acts as an Associate in the Business Unit.

      Returns:
      customer
    • getAssociateRoles

      @NotNull @Valid @NotNull @Valid List<AssociateRole> getAssociateRoles()

      Roles assigned to Associates in the Business Unit.

      Returns:
      associateRoles
    • getInheritedAssociateRoles

      @NotNull @Valid @NotNull @Valid List<AssociateRole> getInheritedAssociateRoles()

      Roles inherited by Associates from the parent Business Unit.

      Returns:
      inheritedAssociateRoles
    • getPermissions

      @NotNull @NotNull List<Permission> getPermissions()

      Permissions the Associate has in the Business Unit.

      Returns:
      permissions
    • setCustomer

      void setCustomer(CustomerReference customer)

      The Customer that acts as an Associate in the Business Unit.

      Parameters:
      customer - value to be set
    • setAssociateRoles

      void setAssociateRoles(AssociateRole... associateRoles)

      Roles assigned to Associates in the Business Unit.

      Parameters:
      associateRoles - values to be set
    • setAssociateRoles

      void setAssociateRoles(List<AssociateRole> associateRoles)

      Roles assigned to Associates in the Business Unit.

      Parameters:
      associateRoles - values to be set
    • setInheritedAssociateRoles

      void setInheritedAssociateRoles(AssociateRole... inheritedAssociateRoles)

      Roles inherited by Associates from the parent Business Unit.

      Parameters:
      inheritedAssociateRoles - values to be set
    • setInheritedAssociateRoles

      void setInheritedAssociateRoles(List<AssociateRole> inheritedAssociateRoles)

      Roles inherited by Associates from the parent Business Unit.

      Parameters:
      inheritedAssociateRoles - values to be set
    • setPermissions

      void setPermissions(Permission... permissions)

      Permissions the Associate has in the Business Unit.

      Parameters:
      permissions - values to be set
    • setPermissions

      void setPermissions(List<Permission> permissions)

      Permissions the Associate has in the Business Unit.

      Parameters:
      permissions - values to be set
    • of

      factory method
      Returns:
      instance of BusinessUnitAssociateResponse
    • of

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

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

      builder factory method for BusinessUnitAssociateResponse
      Returns:
      builder
    • builder

      create builder for BusinessUnitAssociateResponse instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withBusinessUnitAssociateResponse

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