public final class ImapSettings extends 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: http://code.google.com/p/google-http-java-client/wiki/JSON
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, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
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 GenericJson
public ImapSettings clone()
clone
in class GenericJson