类 DepartmentEvent.Builder

java.lang.Object
com.lark.oapi.service.contact.v3.model.DepartmentEvent.Builder
封闭类:
DepartmentEvent

public static class DepartmentEvent.Builder extends Object
  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • name

      public DepartmentEvent.Builder name(String name)
      部门名称

      示例值:测试部门

      参数:
      name -
      返回:
    • parentDepartmentId

      public DepartmentEvent.Builder parentDepartmentId(String parentDepartmentId)
      父部门的部门open_department_id [部门相关ID概念](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)

      示例值:jkfsd89782

      参数:
      parentDepartmentId -
      返回:
    • departmentId

      public DepartmentEvent.Builder departmentId(String departmentId)
      本部门的department_id [部门相关ID概念](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)

      示例值:yd7sa8yf2j

      参数:
      departmentId -
      返回:
    • openDepartmentId

      public DepartmentEvent.Builder openDepartmentId(String openDepartmentId)
      部门的open_department_id [部门相关ID概念](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)

      示例值:od_j10j52hjksd9g0isdfg43

      参数:
      openDepartmentId -
      返回:
    • leaderUserId

      public DepartmentEvent.Builder leaderUserId(String leaderUserId)
      部门主管用户open_id [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

      示例值:ou_3j1kh45jk18fgh23hf

      参数:
      leaderUserId -
      返回:
    • chatId

      public DepartmentEvent.Builder chatId(String chatId)
      部门群ID

      示例值:oc_uiy325uy23bnv48gdf

      参数:
      chatId -
      返回:
    • order

      public DepartmentEvent.Builder order(Integer order)
      部门的排序

      示例值:100

      参数:
      order -
      返回:
    • status

      public DepartmentEvent.Builder status(DepartmentStatus status)
      部门状态

      示例值:

      参数:
      status -
      返回:
    • leaders

      public DepartmentEvent.Builder leaders(DepartmentLeader[] leaders)
      部门负责人

      示例值:

      参数:
      leaders -
      返回:
    • departmentHrbps

      public DepartmentEvent.Builder departmentHrbps(UserId[] departmentHrbps)
      部门HRBP

      示例值:

      参数:
      departmentHrbps -
      返回:
    • build

      public DepartmentEvent build()