类 CalendarEvent.Builder

java.lang.Object
com.lark.oapi.service.calendar.v4.model.CalendarEvent.Builder
封闭类:
CalendarEvent

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

    • Builder

      public Builder()
  • 方法详细资料

    • eventId

      public CalendarEvent.Builder eventId(String eventId)
      日程ID。参见[日程ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/introduction)

      示例值:00592a0e-7edf-4678-bc9d-1b77383ef08e_0

      参数:
      eventId -
      返回:
    • organizerCalendarId

      public CalendarEvent.Builder organizerCalendarId(String organizerCalendarId)
      日程组织者日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

      示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

      参数:
      organizerCalendarId -
      返回:
    • summary

      public CalendarEvent.Builder summary(String summary)
      日程标题

      示例值:日程标题

      参数:
      summary -
      返回:
    • description

      public CalendarEvent.Builder description(String description)
      日程描述;目前不支持编辑富文本描述,如果日程描述通过客户端编辑过,更新描述会导致富文本格式丢失

      示例值:日程描述

      参数:
      description -
      返回:
    • needNotification

      public CalendarEvent.Builder needNotification(Boolean needNotification)
      更新日程是否给日程参与人发送bot通知,默认为true

      示例值:false

      参数:
      needNotification -
      返回:
    • startTime

      public CalendarEvent.Builder startTime(TimeInfo startTime)
      日程开始时间

      示例值:

      参数:
      startTime -
      返回:
    • endTime

      public CalendarEvent.Builder endTime(TimeInfo endTime)
      日程结束时间

      示例值:

      参数:
      endTime -
      返回:
    • vchat

      public CalendarEvent.Builder vchat(Vchat vchat)
      视频会议信息。

      示例值:

      参数:
      vchat -
      返回:
    • visibility

      public CalendarEvent.Builder visibility(String visibility)
      日程公开范围,新建日程默认为Default;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效

      示例值:default

      参数:
      visibility -
      返回:
    • visibility

      日程公开范围,新建日程默认为Default;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效

      示例值:default

      参数:
      visibility - CalendarEventEventVisibilityEnum
      返回:
    • attendeeAbility

      public CalendarEvent.Builder attendeeAbility(String attendeeAbility)
      参与人权限

      示例值:can_see_others

      参数:
      attendeeAbility -
      返回:
    • attendeeAbility

      public CalendarEvent.Builder attendeeAbility(CalendarEventEventAttendeeAbilityEnum attendeeAbility)
      参与人权限

      示例值:can_see_others

      参数:
      attendeeAbility - CalendarEventEventAttendeeAbilityEnum
      返回:
    • freeBusyStatus

      public CalendarEvent.Builder freeBusyStatus(String freeBusyStatus)
      日程占用的忙闲状态,新建日程默认为Busy;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效

      示例值:busy

      参数:
      freeBusyStatus -
      返回:
    • freeBusyStatus

      public CalendarEvent.Builder freeBusyStatus(CalendarEventEventFreeBusyStatusEnum freeBusyStatus)
      日程占用的忙闲状态,新建日程默认为Busy;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效

      示例值:busy

      参数:
      freeBusyStatus - CalendarEventEventFreeBusyStatusEnum
      返回:
    • location

      public CalendarEvent.Builder location(EventLocation location)
      日程地点

      示例值:

      参数:
      location -
      返回:
    • color

      public CalendarEvent.Builder color(Integer color)
      日程颜色,颜色RGB值的int32表示。仅对当前身份生效;客户端展示时会映射到色板上最接近的一种颜色;值为0或-1时默认跟随日历颜色。

      示例值:-1

      参数:
      color -
      返回:
    • reminders

      public CalendarEvent.Builder reminders(Reminder[] reminders)
      日程提醒列表

      示例值:

      参数:
      reminders -
      返回:
    • recurrence

      public CalendarEvent.Builder recurrence(String recurrence)
      重复日程的重复性规则;参考[rfc5545](https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10);;- 不支持COUNT和UNTIL同时出现;;- 预定会议室重复日程长度不得超过两年。

      示例值:FREQ=DAILY;INTERVAL=1

      参数:
      recurrence -
      返回:
    • status

      public CalendarEvent.Builder status(String status)
      日程状态

      示例值:confirmed

      参数:
      status -
      返回:
    • status

      日程状态

      示例值:confirmed

      参数:
      status - CalendarEventEventStatusEnum
      返回:
    • isException

      public CalendarEvent.Builder isException(Boolean isException)
      日程是否是一个重复日程的例外日程

      示例值:false

      参数:
      isException -
      返回:
    • recurringEventId

      public CalendarEvent.Builder recurringEventId(String recurringEventId)
      例外日程的原重复日程的event_id

      示例值:1cd45aaa-fa70-4195-80b7-c93b2e208f45

      参数:
      recurringEventId -
      返回:
    • createTime

      public CalendarEvent.Builder createTime(String createTime)
      日程的创建时间(秒级时间戳)

      示例值:1602504000

      参数:
      createTime -
      返回:
    • schemas

      public CalendarEvent.Builder schemas(Schema[] schemas)
      日程自定义信息;控制日程详情页的ui展示。

      示例值:

      参数:
      schemas -
      返回:
    • eventOrganizer

      public CalendarEvent.Builder eventOrganizer(EventOrganizer eventOrganizer)
      日程组织者信息

      示例值:

      参数:
      eventOrganizer -
      返回:
    • appLink

      public CalendarEvent.Builder appLink(String appLink)
      日程的app_link,跳转到具体的某个日程

      示例值:https://applink.larkoffice.com/client/calendar/event/detail?calendarId=7039673579105026066无效输入:'&key'=aeac9c56-aeb1-4179-a21b-02f278f59048无效输入:'&originalTime'=0无效输入:'&startTime'=1700496000

      参数:
      appLink -
      返回:
    • attendees

      public CalendarEvent.Builder attendees(CalendarEventAttendee[] attendees)
      日程参与人信息

      示例值:

      参数:
      attendees -
      返回:
    • hasMoreAttendee

      public CalendarEvent.Builder hasMoreAttendee(Boolean hasMoreAttendee)
      是否有更多的参与人

      示例值:

      参数:
      hasMoreAttendee -
      返回:
    • build

      public CalendarEvent build()