CreateEventRequest

public final class CreateEventRequest

Class representing a request to create an event.

Constructors

Link copied to clipboard
public CreateEventRequest CreateEventRequest(@Json(name = "when") CreateEventRequest.When whenObj, @Json(name = "title") String title, @Json(name = "description") String description, @Json(name = "location") String location, @Json(name = "participants") List<CreateEventRequest.Participant> participants, @Json(name = "busy") Boolean busy, @Json(name = "conferencing") CreateEventRequest.Conferencing conferencing, @Json(name = "reminders") Reminders reminders, @Json(name = "metadata") Map<String, String> metadata, @Json(name = "recurrence") List<String> recurrence, @Json(name = "calendar_id") String calendarId, @Json(name = "read_only") Boolean readOnly, @Json(name = "visibility") EventVisibility visibility, @Json(name = "capacity") Integer capacity, @Json(name = "hide_participant") Boolean hideParticipant)

Types

Link copied to clipboard
public final class Builder

Builder for CreateEventRequest.

Link copied to clipboard
public class Conferencing

This sealed class represents the different types of conferencing configurations.

Link copied to clipboard
public final class Participant

Class representation of an event participant.

Link copied to clipboard
public class When

This sealed class represents the different types of event time configurations.

Properties

Link copied to clipboard
private final Boolean busy

This value determines whether to show this event's time block as available on shared or public calendars.

Link copied to clipboard
private final String calendarId

Calendar ID of the event.

Link copied to clipboard
private final Integer capacity

Sets the maximum number of participants that may attend the event.

Link copied to clipboard

Representation of conferencing details for events. Conferencing object can be in one of two formats (sub-objects):

Link copied to clipboard
private final String description

Creates an event with the specified description. This value may contain more details about an event or an agenda.

Link copied to clipboard
private final Boolean hideParticipant

Whether participants of the event should be hidden.

Link copied to clipboard
private final String location

Creates an event with the specified location.

Link copied to clipboard
private final Map<String, String> metadata

A list of key-value pairs storing additional data.

Link copied to clipboard

Creates an event with the specified participants.

Link copied to clipboard
private final Boolean readOnly

If the event participants are able to edit the event.

Link copied to clipboard
private final List<String> recurrence

An array of RRULE and EXDATE strings. Please note that EXRULE, RDATE, and TZID are not supported.

Link copied to clipboard
private final Reminders reminders

A list of reminders to send for the event. If left empty or omitted, the event uses the provider defaults.

Link copied to clipboard
private final String title

Creates an event with the specified title.

Link copied to clipboard

Sets the visibility for the event. The calendar default will be used if this field is omitted.

Link copied to clipboard

Representation of time and duration for events. When object can be in one of four formats (sub-objects):

Functions

Link copied to clipboard
public final Boolean getBusy()

This value determines whether to show this event's time block as available on shared or public calendars.

Link copied to clipboard
public final String getCalendarId()

Calendar ID of the event.

Link copied to clipboard
public final Integer getCapacity()

Sets the maximum number of participants that may attend the event.

Link copied to clipboard

Representation of conferencing details for events. Conferencing object can be in one of two formats (sub-objects):

Link copied to clipboard
public final String getDescription()

Creates an event with the specified description. This value may contain more details about an event or an agenda.

Link copied to clipboard
public final Boolean getHideParticipant()

Whether participants of the event should be hidden.

Link copied to clipboard
public final String getLocation()

Creates an event with the specified location.

Link copied to clipboard
public final Map<String, String> getMetadata()

A list of key-value pairs storing additional data.

Link copied to clipboard

Creates an event with the specified participants.

Link copied to clipboard
public final Boolean getReadOnly()

If the event participants are able to edit the event.

Link copied to clipboard
public final List<String> getRecurrence()

An array of RRULE and EXDATE strings. Please note that EXRULE, RDATE, and TZID are not supported.

Link copied to clipboard
public final Reminders getReminders()

A list of reminders to send for the event. If left empty or omitted, the event uses the provider defaults.

Link copied to clipboard
public final String getTitle()

Creates an event with the specified title.

Link copied to clipboard

Sets the visibility for the event. The calendar default will be used if this field is omitted.

Link copied to clipboard

Representation of time and duration for events. When object can be in one of four formats (sub-objects):