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