public final class VacationSettings
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 Gmail API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
VacationSettings() |
Modifier and Type | Method and Description |
---|---|
VacationSettings |
clone() |
Boolean |
getEnableAutoReply()
Flag that controls whether Gmail automatically replies to messages.
|
Long |
getEndTime()
An optional end time for sending auto-replies (epoch ms).
|
String |
getResponseBodyHtml()
Response body in HTML format.
|
String |
getResponseBodyPlainText()
Response body in plain text format.
|
String |
getResponseSubject()
Optional text to prepend to the subject line in vacation responses.
|
Boolean |
getRestrictToContacts()
Flag that determines whether responses are sent to recipients who are not in the user's list of
contacts.
|
Boolean |
getRestrictToDomain()
Flag that determines whether responses are sent to recipients who are outside of the user's
domain.
|
Long |
getStartTime()
An optional start time for sending auto-replies (epoch ms).
|
VacationSettings |
set(String fieldName,
Object value) |
VacationSettings |
setEnableAutoReply(Boolean enableAutoReply)
Flag that controls whether Gmail automatically replies to messages.
|
VacationSettings |
setEndTime(Long endTime)
An optional end time for sending auto-replies (epoch ms).
|
VacationSettings |
setResponseBodyHtml(String responseBodyHtml)
Response body in HTML format.
|
VacationSettings |
setResponseBodyPlainText(String responseBodyPlainText)
Response body in plain text format.
|
VacationSettings |
setResponseSubject(String responseSubject)
Optional text to prepend to the subject line in vacation responses.
|
VacationSettings |
setRestrictToContacts(Boolean restrictToContacts)
Flag that determines whether responses are sent to recipients who are not in the user's list of
contacts.
|
VacationSettings |
setRestrictToDomain(Boolean restrictToDomain)
Flag that determines whether responses are sent to recipients who are outside of the user's
domain.
|
VacationSettings |
setStartTime(Long startTime)
An optional start time for sending auto-replies (epoch ms).
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Boolean getEnableAutoReply()
null
for nonepublic VacationSettings setEnableAutoReply(Boolean enableAutoReply)
enableAutoReply
- enableAutoReply or null
for nonepublic Long getEndTime()
null
for nonepublic VacationSettings setEndTime(Long endTime)
endTime
- endTime or null
for nonepublic String getResponseBodyHtml()
null
for nonepublic VacationSettings setResponseBodyHtml(String responseBodyHtml)
responseBodyHtml
- responseBodyHtml or null
for nonepublic String getResponseBodyPlainText()
null
for nonepublic VacationSettings setResponseBodyPlainText(String responseBodyPlainText)
responseBodyPlainText
- responseBodyPlainText or null
for nonepublic String getResponseSubject()
null
for nonepublic VacationSettings setResponseSubject(String responseSubject)
responseSubject
- responseSubject or null
for nonepublic Boolean getRestrictToContacts()
null
for nonepublic VacationSettings setRestrictToContacts(Boolean restrictToContacts)
restrictToContacts
- restrictToContacts or null
for nonepublic Boolean getRestrictToDomain()
null
for nonepublic VacationSettings setRestrictToDomain(Boolean restrictToDomain)
restrictToDomain
- restrictToDomain or null
for nonepublic Long getStartTime()
null
for nonepublic VacationSettings setStartTime(Long startTime)
startTime
- startTime or null
for nonepublic VacationSettings set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public VacationSettings clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.