public final class EventDateTime
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Calendar API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
EventDateTime() |
Modifier and Type | Method and Description |
---|---|
EventDateTime |
clone() |
com.google.api.client.util.DateTime |
getDate()
The date, in the format "yyyy-mm-dd", if this is an all-day event.
|
com.google.api.client.util.DateTime |
getDateTime()
The time, as a combined date-time value (formatted according to RFC 3339).
|
java.lang.String |
getTimeZone()
The time zone in which the time is specified.
|
EventDateTime |
set(java.lang.String fieldName,
java.lang.Object value) |
EventDateTime |
setDate(com.google.api.client.util.DateTime date)
The date, in the format "yyyy-mm-dd", if this is an all-day event.
|
EventDateTime |
setDateTime(com.google.api.client.util.DateTime dateTime)
The time, as a combined date-time value (formatted according to RFC 3339).
|
EventDateTime |
setTimeZone(java.lang.String timeZone)
The time zone in which the time is specified.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public com.google.api.client.util.DateTime getDate()
null
for nonepublic EventDateTime setDate(com.google.api.client.util.DateTime date)
date
- date or null
for nonepublic com.google.api.client.util.DateTime getDateTime()
null
for nonepublic EventDateTime setDateTime(com.google.api.client.util.DateTime dateTime)
dateTime
- dateTime or null
for nonepublic java.lang.String getTimeZone()
null
for nonepublic EventDateTime setTimeZone(java.lang.String timeZone)
timeZone
- timeZone or null
for nonepublic EventDateTime set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public EventDateTime clone()
clone
in class com.google.api.client.json.GenericJson