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: http://code.google.com/p/google-http-java-client/wiki/JSON
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
ImapSettings() |
Modifier and Type | Method and Description |
---|---|
ImapSettings |
clone() |
java.lang.Boolean |
getAutoExpunge()
If this value is true, Gmail will immediately expunge a message when it is marked as deleted in
IMAP.
|
java.lang.Boolean |
getEnabled()
Whether IMAP is enabled for the account.
|
java.lang.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.
|
java.lang.Integer |
getMaxFolderSize()
An optional limit on the number of messages that an IMAP folder may contain.
|
ImapSettings |
set(java.lang.String fieldName,
java.lang.Object value) |
ImapSettings |
setAutoExpunge(java.lang.Boolean autoExpunge)
If this value is true, Gmail will immediately expunge a message when it is marked as deleted in
IMAP.
|
ImapSettings |
setEnabled(java.lang.Boolean enabled)
Whether IMAP is enabled for the account.
|
ImapSettings |
setExpungeBehavior(java.lang.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(java.lang.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
public java.lang.Boolean getAutoExpunge()
null
for nonepublic ImapSettings setAutoExpunge(java.lang.Boolean autoExpunge)
autoExpunge
- autoExpunge or null
for nonepublic java.lang.Boolean getEnabled()
null
for nonepublic ImapSettings setEnabled(java.lang.Boolean enabled)
enabled
- enabled or null
for nonepublic java.lang.String getExpungeBehavior()
null
for nonepublic ImapSettings setExpungeBehavior(java.lang.String expungeBehavior)
expungeBehavior
- expungeBehavior or null
for nonepublic java.lang.Integer getMaxFolderSize()
null
for nonepublic ImapSettings setMaxFolderSize(java.lang.Integer maxFolderSize)
maxFolderSize
- maxFolderSize or null
for nonepublic ImapSettings set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public ImapSettings clone()
clone
in class com.google.api.client.json.GenericJson