Builder

public final class Builder

A builder for creating a GetAvailabilityRequest.

Parameters

startTime

Unix timestamp for the start time to check availability for.

endTime

Unix timestamp for the end time to check availability for.

participants

Participant details to check availability for.

durationMinutes

The total number of minutes the event should last.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard

Set the rules to apply when checking availability.

Link copied to clipboard
Link copied to clipboard

Set the Nylas checks from the nearest interval of the passed startTime. For example, to schedule 30-minute meetings (durationMinutes) with 15 minutes between them (intervalMinutes). If you have a meeting starting at 9:59, the API returns times starting at 10:00. 10:00-10:30, 10:15-10:45.

Link copied to clipboard

Set the number of minutes to round the time slots to. This allows for rounding to any multiple of 5 minutes, up to a maximum of 60 minutes. The default value is set to 15 minutes. When this variable is assigned a value, it overrides the behavior of the roundTo30Minutes flag, if it was set.

Link copied to clipboard
@Deprecated(message = "Use roundTo instead")
public final GetAvailabilityRequest.Builder roundTo30Minutes(Boolean roundTo30Minutes)

Set when set to true, the availability time slots will start at 30 minutes past or on the hour. For example, a free slot starting at 16:10 is considered available only from 16:30.