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 Cloud Storage JSON 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 |
---|
Notification() |
Modifier and Type | Method and Description |
---|---|
Notification |
clone() |
Map<String,String> |
getCustomAttributes()
An optional list of additional attributes to attach to each Cloud PubSub message published for
this notification subscription.
|
String |
getEtag()
HTTP 1.1 Entity tag for this subscription notification.
|
List<String> |
getEventTypes()
If present, only send notifications about listed event types.
|
String |
getId()
The ID of the notification.
|
String |
getKind()
The kind of item this is.
|
String |
getObjectNamePrefix()
If present, only apply this notification configuration to object names that begin with this
prefix.
|
String |
getPayloadFormat()
The desired content of the Payload.
|
String |
getSelfLink()
The canonical URL of this notification.
|
String |
getTopic()
The Cloud PubSub topic to which this subscription publishes.
|
Notification |
set(String fieldName,
Object value) |
Notification |
setCustomAttributes(Map<String,String> customAttributes)
An optional list of additional attributes to attach to each Cloud PubSub message published for
this notification subscription.
|
Notification |
setEtag(String etag)
HTTP 1.1 Entity tag for this subscription notification.
|
Notification |
setEventTypes(List<String> eventTypes)
If present, only send notifications about listed event types.
|
Notification |
setId(String id)
The ID of the notification.
|
Notification |
setKind(String kind)
The kind of item this is.
|
Notification |
setObjectNamePrefix(String objectNamePrefix)
If present, only apply this notification configuration to object names that begin with this
prefix.
|
Notification |
setPayloadFormat(String payloadFormat)
The desired content of the Payload.
|
Notification |
setSelfLink(String selfLink)
The canonical URL of this notification.
|
Notification |
setTopic(String topic)
The Cloud PubSub topic to which this subscription publishes.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Map<String,String> getCustomAttributes()
null
for nonepublic Notification setCustomAttributes(Map<String,String> customAttributes)
customAttributes
- customAttributes or null
for nonepublic String getEtag()
null
for nonepublic Notification setEtag(String etag)
etag
- etag or null
for nonepublic List<String> getEventTypes()
null
for nonepublic Notification setEventTypes(List<String> eventTypes)
eventTypes
- eventTypes or null
for nonepublic String getId()
null
for nonepublic Notification setId(String id)
id
- id or null
for nonepublic String getKind()
null
for nonepublic Notification setKind(String kind)
kind
- kind or null
for nonepublic String getObjectNamePrefix()
null
for nonepublic Notification setObjectNamePrefix(String objectNamePrefix)
objectNamePrefix
- objectNamePrefix or null
for nonepublic String getPayloadFormat()
null
for nonepublic Notification setPayloadFormat(String payloadFormat)
payloadFormat
- payloadFormat or null
for nonepublic String getSelfLink()
null
for nonepublic Notification setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic String getTopic()
null
for nonepublic Notification setTopic(String topic)
topic
- topic or null
for nonepublic Notification set(String fieldName, Object value)
set
in class GenericJson
public Notification clone()
clone
in class GenericJson