类 MyAiPresent.Builder

java.lang.Object
com.lark.oapi.service.approval.v4.model.MyAiPresent.Builder
封闭类:
MyAiPresent

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

    • Builder

      public Builder()
  • 方法详细资料

    • type

      public MyAiPresent.Builder type(String type)
      present type

      示例值:rich_text

      参数:
      type -
      返回:
    • body

      public MyAiPresent.Builder body(String body)
      response body

      示例值:{}

      参数:
      body -
      返回:
    • callbackUrl

      public MyAiPresent.Builder callbackUrl(String callbackUrl)
      msg callback url

      示例值:https://open......./myai/message_callback

      参数:
      callbackUrl -
      返回:
    • callbackInfo

      public MyAiPresent.Builder callbackInfo(String callbackInfo)
      approval context

      示例值:"{\"session_id\":\"11111\"}"

      参数:
      callbackInfo -
      返回:
    • cardTemplateId

      public MyAiPresent.Builder cardTemplateId(String cardTemplateId)
      template ID

      示例值:default

      参数:
      cardTemplateId -
      返回:
    • cardVariables

      public MyAiPresent.Builder cardVariables(MyAiPresentCardVariables cardVariables)
      卡片变量

      示例值:

      参数:
      cardVariables -
      返回:
    • interactable

      public MyAiPresent.Builder interactable(Boolean interactable)
      interactable

      示例值:true false

      参数:
      interactable -
      返回:
    • operationType

      public MyAiPresent.Builder operationType(String operationType)
      operation_type

      示例值:operation_type

      参数:
      operationType -
      返回:
    • operationUrl

      public MyAiPresent.Builder operationUrl(String operationUrl)
      operation_url

      示例值:https://open-boe.feichu.com

      参数:
      operationUrl -
      返回:
    • build

      public MyAiPresent build()