Package com.google.cloud.notification
Class NotificationInfo
- java.lang.Object
-
- com.google.cloud.notification.NotificationInfo
-
- All Implemented Interfaces:
Serializable
public class NotificationInfo extends Object implements Serializable
Google Storage Notification metadata;- See Also:
- Concepts and Terminology, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNotificationInfo.Builderstatic classNotificationInfo.PayloadFormat
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Map<String,String>getCustomAttributes()Returns the list of additional attributes to attach to each Cloud PubSub message published for\ this notification subscription.StringgetEtag()Returns HTTP 1.1 Entity tag for the notification.List<String>getEventTypes()Returns the list of event types that this notification will apply to.StringgetGeneratedId()Returns the service-generated id for the notification.StringgetObjectNamePrefix()Returns the object name prefix for which this notification configuration applies.NotificationInfo.PayloadFormatgetPayloadFormat()Returns the desired content of the Payload.StringgetSelfLink()Returns the canonical URI of this topic as a string.com.google.pubsub.v1.ProjectTopicNamegetTopic()Returns the Cloud PubSub topic to which this subscription publishes.inthashCode()static NotificationInfo.BuildernewBuilder(com.google.pubsub.v1.ProjectTopicName topic)Returns aNotificationInfobuilder where the topic's name is set to the provided name.static NotificationInfoof(com.google.pubsub.v1.ProjectTopicName topic)Creates aNotificationInfoobject for the provided topic name.NotificationInfo.BuildertoBuilder()Returns a builder for the current notification.StringtoString()
-
-
-
Method Detail
-
getGeneratedId
public String getGeneratedId()
Returns the service-generated id for the notification.
-
getTopic
public com.google.pubsub.v1.ProjectTopicName getTopic()
Returns the Cloud PubSub topic to which this subscription publishes.
-
getSelfLink
public String getSelfLink()
Returns the canonical URI of this topic as a string.
-
getPayloadFormat
public NotificationInfo.PayloadFormat getPayloadFormat()
Returns the desired content of the Payload.
-
getObjectNamePrefix
public String getObjectNamePrefix()
Returns the object name prefix for which this notification configuration applies.
-
getEtag
public String getEtag()
Returns HTTP 1.1 Entity tag for the notification.- See Also:
- Entity Tags
-
getEventTypes
public List<String> getEventTypes()
Returns the list of event types that this notification will apply to. If empty, notifications will be sent on all event types.- See Also:
- Cross-Origin Resource Sharing (CORS)
-
getCustomAttributes
public Map<String,String> getCustomAttributes()
Returns the list of additional attributes to attach to each Cloud PubSub message published for\ this notification subscription.- See Also:
- About Access Control Lists
-
toBuilder
public NotificationInfo.Builder toBuilder()
Returns a builder for the current notification.
-
of
public static NotificationInfo of(com.google.pubsub.v1.ProjectTopicName topic)
Creates aNotificationInfoobject for the provided topic name.
-
newBuilder
public static NotificationInfo.Builder newBuilder(com.google.pubsub.v1.ProjectTopicName topic)
Returns aNotificationInfobuilder where the topic's name is set to the provided name.
-
-