Class Event.DateTimeTimezone

  • Enclosing class:
    Event

    public static class Event.DateTimeTimezone
    extends Object
    Details of the start or end of an event.

    Only a date or a dateTime may be specified.

    • Constructor Detail

      • DateTimeTimezone

        public DateTimeTimezone()
    • Method Detail

      • getDate

        public Date getDate()
        The date, if this is an all-day event. The time should be midnight on the given date.
        Returns:
        the value or null if none.
      • setDate

        public Event.DateTimeTimezone setDate​(Date date)
        Set the date to make this an all-day event. For consistency, if a non null value is set, making this an all-day event, the time property must be set to null.
        Parameters:
        date - the new value or null if none.
        Returns:
        this Event.DateTimeTimezone, for chaining.
      • getDateTime

        public Date getDateTime()
        The time, if this is not an all-day event.
        Returns:
        the value or null if none.
      • setDateTime

        public Event.DateTimeTimezone setDateTime​(Date dateTime)
        Set the time, to make this not an all-day event. For consistency, if a non null value is set, this cannot also be an all-day event, so the date property must be set to null.
        Parameters:
        dateTime - the new value or null if none.
        Returns:
        this Event.DateTimeTimezone, for chaining.
      • getTimeZone

        public TimeZone getTimeZone()
        The time zone in which the time is specified (e.g. "Europe/Zurich"). The time zone is required for recurring events.
        Returns:
        the value or null if none.
      • setTimeZone

        public Event.DateTimeTimezone setTimeZone​(TimeZone timeZone)
        Set the time zone in which the time is specified (e.g. "Europe/Zurich"). The time zone is required for recurring events.
        Parameters:
        timeZone - the new value or null if none.
        Returns:
        this Event.DateTimeTimezone, for chaining.