类 OkrObjective.Builder

java.lang.Object
com.lark.oapi.service.docx.v1.model.OkrObjective.Builder
封闭类:
OkrObjective

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

    • Builder

      public Builder()
  • 方法详细资料

    • objectiveId

      public OkrObjective.Builder objectiveId(String objectiveId)
      Objective ID

      示例值:"7109022409227026460"

      参数:
      objectiveId -
      返回:
    • confidential

      public OkrObjective.Builder confidential(Boolean confidential)
      是否在 OKR 平台设置了私密权限

      示例值:false

      参数:
      confidential -
      返回:
    • position

      public OkrObjective.Builder position(Integer position)
      Objective 的位置编号,对应 Block 中 O1、O2 的 1、2

      示例值:1

      参数:
      position -
      返回:
    • score

      public OkrObjective.Builder score(Integer score)
      打分信息

      示例值:0

      参数:
      score -
      返回:
    • visible

      public OkrObjective.Builder visible(Boolean visible)
      OKR Block 中是否展示该 Objective

      示例值:true

      参数:
      visible -
      返回:
    • weight

      public OkrObjective.Builder weight(Double weight)
      Objective 的权重

      示例值:1.0

      参数:
      weight -
      返回:
    • progressRate

      public OkrObjective.Builder progressRate(OkrProgressRate progressRate)
      进展信息

      示例值:

      参数:
      progressRate -
      返回:
    • content

      public OkrObjective.Builder content(Text content)
      Objective 的文本内容

      示例值:

      参数:
      content -
      返回:
    • build

      public OkrObjective build()