public final class ImapSettings
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 |
---|
ImapSettings() |
Modifier and Type | Method and Description |
---|---|
ImapSettings |
clone() |
Boolean |
getAutoExpunge()
If this value is true, Gmail will immediately expunge a message when it is marked as deleted in
IMAP.
|
Boolean |
getEnabled()
Whether IMAP is enabled for the account.
|
String |
getExpungeBehavior()
The action that will be executed on a message when it is marked as deleted and expunged from
the last visible IMAP folder.
|
Integer |
getMaxFolderSize()
An optional limit on the number of messages that an IMAP folder may contain.
|
ImapSettings |
set(String fieldName,
Object value) |
ImapSettings |
setAutoExpunge(Boolean autoExpunge)
If this value is true, Gmail will immediately expunge a message when it is marked as deleted in
IMAP.
|
ImapSettings |
setEnabled(Boolean enabled)
Whether IMAP is enabled for the account.
|
ImapSettings |
setExpungeBehavior(String expungeBehavior)
The action that will be executed on a message when it is marked as deleted and expunged from
the last visible IMAP folder.
|
ImapSettings |
setMaxFolderSize(Integer maxFolderSize)
An optional limit on the number of messages that an IMAP folder may contain.
|
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 getAutoExpunge()
null
for nonepublic ImapSettings setAutoExpunge(Boolean autoExpunge)
autoExpunge
- autoExpunge or null
for nonepublic Boolean getEnabled()
null
for nonepublic ImapSettings setEnabled(Boolean enabled)
enabled
- enabled or null
for nonepublic String getExpungeBehavior()
null
for nonepublic ImapSettings setExpungeBehavior(String expungeBehavior)
expungeBehavior
- expungeBehavior or null
for nonepublic Integer getMaxFolderSize()
null
for nonepublic ImapSettings setMaxFolderSize(Integer maxFolderSize)
maxFolderSize
- maxFolderSize or null
for nonepublic ImapSettings set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public ImapSettings clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.