public final class Notification
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 Admin Directory 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
Constructor and Description |
---|
Notification() |
Modifier and Type | Method and Description |
---|---|
Notification |
clone() |
java.lang.String |
getBody()
Body of the notification (Read-only)
|
java.lang.String |
getEtag()
ETag of the resource.
|
java.lang.String |
getFromAddress()
Address from which the notification is received (Read-only)
|
java.lang.Boolean |
getIsUnread()
Boolean indicating whether the notification is unread or not.
|
java.lang.String |
getKind()
The type of the resource.
|
java.lang.String |
getNotificationId() |
com.google.api.client.util.DateTime |
getSendTime()
Time at which notification was sent (Read-only)
|
java.lang.String |
getSubject()
Subject of the notification (Read-only)
|
Notification |
set(java.lang.String fieldName,
java.lang.Object value) |
Notification |
setBody(java.lang.String body)
Body of the notification (Read-only)
|
Notification |
setEtag(java.lang.String etag)
ETag of the resource.
|
Notification |
setFromAddress(java.lang.String fromAddress)
Address from which the notification is received (Read-only)
|
Notification |
setIsUnread(java.lang.Boolean isUnread)
Boolean indicating whether the notification is unread or not.
|
Notification |
setKind(java.lang.String kind)
The type of the resource.
|
Notification |
setNotificationId(java.lang.String notificationId) |
Notification |
setSendTime(com.google.api.client.util.DateTime sendTime)
Time at which notification was sent (Read-only)
|
Notification |
setSubject(java.lang.String subject)
Subject of the notification (Read-only)
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getBody()
null
for nonepublic Notification setBody(java.lang.String body)
body
- body or null
for nonepublic java.lang.String getEtag()
null
for nonepublic Notification setEtag(java.lang.String etag)
etag
- etag or null
for nonepublic java.lang.String getFromAddress()
null
for nonepublic Notification setFromAddress(java.lang.String fromAddress)
fromAddress
- fromAddress or null
for nonepublic java.lang.Boolean getIsUnread()
null
for nonepublic Notification setIsUnread(java.lang.Boolean isUnread)
isUnread
- isUnread or null
for nonepublic java.lang.String getKind()
null
for nonepublic Notification setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getNotificationId()
null
for nonepublic Notification setNotificationId(java.lang.String notificationId)
notificationId
- notificationId or null
for nonepublic com.google.api.client.util.DateTime getSendTime()
null
for nonepublic Notification setSendTime(com.google.api.client.util.DateTime sendTime)
sendTime
- sendTime or null
for nonepublic java.lang.String getSubject()
null
for nonepublic Notification setSubject(java.lang.String subject)
subject
- subject or null
for nonepublic Notification set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Notification clone()
clone
in class com.google.api.client.json.GenericJson