target.apidocs.com.google.api.services.calendar.model.EventDateTime.html Maven / Gradle / Ivy
EventDateTime (Calendar API v3-rev20240927-2.0.0)
com.google.api.services.calendar.model
Class EventDateTime
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.calendar.model.EventDateTime
-
public final class EventDateTime
extends com.google.api.client.json.GenericJson
Model definition for EventDateTime.
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:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
EventDateTime()
-
Method Summary
All Methods Instance Methods Concrete Methods
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 RFC3339).
String
getTimeZone()
The time zone in which the time is specified.
EventDateTime
set(String fieldName,
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 RFC3339).
EventDateTime
setTimeZone(String timeZone)
The time zone in which the time is specified.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getDate
public com.google.api.client.util.DateTime getDate()
The date, in the format "yyyy-mm-dd", if this is an all-day event.
- Returns:
- value or
null
for none
-
setDate
public EventDateTime setDate(com.google.api.client.util.DateTime date)
The date, in the format "yyyy-mm-dd", if this is an all-day event.
- Parameters:
date
- date or null
for none
-
getDateTime
public com.google.api.client.util.DateTime getDateTime()
The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is
required unless a time zone is explicitly specified in timeZone.
- Returns:
- value or
null
for none
-
setDateTime
public EventDateTime setDateTime(com.google.api.client.util.DateTime dateTime)
The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is
required unless a time zone is explicitly specified in timeZone.
- Parameters:
dateTime
- dateTime or null
for none
-
getTimeZone
public String getTimeZone()
The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name,
e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone
in which the recurrence is expanded. For single events this field is optional and indicates a
custom time zone for the event start/end.
- Returns:
- value or
null
for none
-
setTimeZone
public EventDateTime setTimeZone(String timeZone)
The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name,
e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone
in which the recurrence is expanded. For single events this field is optional and indicates a
custom time zone for the event start/end.
- Parameters:
timeZone
- timeZone or null
for none
-
set
public EventDateTime set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public EventDateTime clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy