类 UserCustomAttrValue.Builder

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

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

    • Builder

      public Builder()
  • 方法详细资料

    • text

      public UserCustomAttrValue.Builder text(String text)
      字段类型为`TEXT`时该参数定义字段值,必填;字段类型为`HREF`时该参数定义网页标题,必填

      示例值:DemoText

      参数:
      text -
      返回:
    • url

      字段类型为 HREF 时,该参数定义默认 URL,例如手机端跳转小程序,PC端跳转网页

      示例值:http://www.fs.cn

      参数:
      url -
      返回:
    • pcUrl

      public UserCustomAttrValue.Builder pcUrl(String pcUrl)
      字段类型为 HREF 时,该参数定义PC端 URL

      示例值:http://www.fs.cn

      参数:
      pcUrl -
      返回:
    • optionId

      public UserCustomAttrValue.Builder optionId(String optionId)
      字段类型为 ENUMERATION 或 PICTURE_ENUM 时,该参数定义选项值

      示例值:edcvfrtg

      参数:
      optionId -
      返回:
    • optionValue

      public UserCustomAttrValue.Builder optionValue(String optionValue)
      选项类型的值。;;表示 成员详情/自定义字段 中选项选中的值

      示例值:option

      参数:
      optionValue -
      返回:
    • name

      public UserCustomAttrValue.Builder name(String name)
      选项类型为图片时,表示图片的名称

      示例值:name

      参数:
      name -
      返回:
    • pictureUrl

      public UserCustomAttrValue.Builder pictureUrl(String pictureUrl)
      图片链接

      示例值:https://xxxxxxxxxxxxxxxxxx

      参数:
      pictureUrl -
      返回:
    • genericUser

      public UserCustomAttrValue.Builder genericUser(CustomAttrGenericUser genericUser)
      字段类型为 GENERIC_USER 时,该参数定义引用人员

      示例值:

      参数:
      genericUser -
      返回:
    • build

      public UserCustomAttrValue build()