Class Event.DateTimeTimezone
- java.lang.Object
-
- org.springframework.social.google.api.calendar.Event.DateTimeTimezone
-
-
Constructor Summary
Constructors Constructor Description DateTimeTimezone()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetDate()The date, if this is an all-day event.DategetDateTime()The time, if this is not an all-day event.TimeZonegetTimeZone()The time zone in which the time is specified (e.g.Event.DateTimeTimezonesetDate(Date date)Set the date to make this an all-day event.Event.DateTimeTimezonesetDateTime(Date dateTime)Set the time, to make this not an all-day event.Event.DateTimeTimezonesetTimeZone(TimeZone timeZone)Set the time zone in which the time is specified (e.g.
-
-
-
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
nullif none.
-
setDate
public Event.DateTimeTimezone setDate(Date date)
Set the date to make this an all-day event. For consistency, if a nonnullvalue is set, making this an all-day event, the time property must be set tonull.- Parameters:
date- the new value ornullif 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
nullif none.
-
setDateTime
public Event.DateTimeTimezone setDateTime(Date dateTime)
Set the time, to make this not an all-day event. For consistency, if a nonnullvalue is set, this cannot also be an all-day event, so the date property must be set tonull.- Parameters:
dateTime- the new value ornullif 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
nullif 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 ornullif none.- Returns:
- this
Event.DateTimeTimezone, for chaining.
-
-