类 Grant.Builder

java.lang.Object
com.lark.oapi.service.admin.v1.model.Grant.Builder
封闭类:
Grant

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

    • Builder

      public Builder()
  • 方法详细资料

    • id

      public Grant.Builder id(String id)
      租户内授予名单的唯一标识,该值由系统随机生成。

      示例值:g_49Z7CQ

      参数:
      id -
      返回:
    • badgeId

      public Grant.Builder badgeId(String badgeId)
      企业勋章的唯一ID

      示例值:m_qTR2HM

      参数:
      badgeId -
      返回:
    • name

      public Grant.Builder name(String name)
      勋章下唯一的授予事项,最多100个字符。

      示例值:激励勋章的授予名单

      参数:
      name -
      返回:
    • grantType

      public Grant.Builder grantType(Integer grantType)
      授予名单类型

      示例值:0

      参数:
      grantType -
      返回:
    • grantType

      public Grant.Builder grantType(GrantGrantTypeEnum grantType)
      授予名单类型

      示例值:0

      参数:
      grantType - GrantGrantTypeEnum
      返回:
    • timeZone

      public Grant.Builder timeZone(String timeZone)
      授予名单的生效时间对应的时区,用于检查RuleDetail的时间戳的取值是否规范,取值范围为TZ database name

      示例值:Asia/Shanghai

      参数:
      timeZone -
      返回:
    • ruleDetail

      public Grant.Builder ruleDetail(RuleDetail ruleDetail)
      规则详情

      示例值:

      参数:
      ruleDetail -
      返回:
    • isGrantAll

      public Grant.Builder isGrantAll(Boolean isGrantAll)
      是否授予给全员。1.为false时,需要关联1~500个用户群体。2.为true时,不可关联用户、用户组、部门。

      示例值:false

      参数:
      isGrantAll -
      返回:
    • userIds

      public Grant.Builder userIds(String[] userIds)
      授予的用户ID列表,授予名单列表接口返回结果中不返回该字段,只在详情接口返回

      示例值:[u273y71]

      参数:
      userIds -
      返回:
    • departmentIds

      public Grant.Builder departmentIds(String[] departmentIds)
      授予的部门ID列表,授予名单列表接口返回结果中不返回该字段,只在详情接口返回

      示例值:[h121921]

      参数:
      departmentIds -
      返回:
    • groupIds

      public Grant.Builder groupIds(String[] groupIds)
      授予的用户组ID列表,授予名单列表接口返回结果中不返回该字段,只在详情接口返回

      示例值:[g122817]

      参数:
      groupIds -
      返回:
    • build

      public Grant build()