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.FlagsAbstractMap.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, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic 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 com.google.api.client.json.GenericJsonpublic Notification clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.