public final class Notification 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 Admin Directory API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Notification() |
| Modifier and Type | Method and Description |
|---|---|
Notification |
clone() |
String |
getBody()
Body of the notification (Read-only)
|
String |
getEtag()
ETag of the resource.
|
String |
getFromAddress()
Address from which the notification is received (Read-only)
|
Boolean |
getIsUnread()
Boolean indicating whether the notification is unread or not.
|
String |
getKind()
The type of the resource.
|
String |
getNotificationId() |
DateTime |
getSendTime()
Time at which notification was sent (Read-only)
|
String |
getSubject()
Subject of the notification (Read-only)
|
Notification |
set(String fieldName,
Object value) |
Notification |
setBody(String body)
Body of the notification (Read-only)
|
Notification |
setEtag(String etag)
ETag of the resource.
|
Notification |
setFromAddress(String fromAddress)
Address from which the notification is received (Read-only)
|
Notification |
setIsUnread(Boolean isUnread)
Boolean indicating whether the notification is unread or not.
|
Notification |
setKind(String kind)
The type of the resource.
|
Notification |
setNotificationId(String notificationId) |
Notification |
setSendTime(DateTime sendTime)
Time at which notification was sent (Read-only)
|
Notification |
setSubject(String subject)
Subject of the notification (Read-only)
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic String getBody()
null for nonepublic Notification setBody(String body)
body - body or null for nonepublic String getEtag()
null for nonepublic Notification setEtag(String etag)
etag - etag or null for nonepublic String getFromAddress()
null for nonepublic Notification setFromAddress(String fromAddress)
fromAddress - fromAddress or null for nonepublic Boolean getIsUnread()
null for nonepublic Notification setIsUnread(Boolean isUnread)
isUnread - isUnread or null for nonepublic String getKind()
null for nonepublic Notification setKind(String kind)
kind - kind or null for nonepublic String getNotificationId()
null for nonepublic Notification setNotificationId(String notificationId)
notificationId - notificationId or null for nonepublic DateTime getSendTime()
null for nonepublic Notification setSendTime(DateTime sendTime)
sendTime - sendTime or null for nonepublic String getSubject()
null for nonepublic Notification setSubject(String subject)
subject - subject or null for nonepublic Notification set(String fieldName, Object value)
set in class GenericJsonpublic Notification clone()
clone in class GenericJson