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:
  • Method Details

    • 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:
    • 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:
    • 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:
    • toBuilder

      public NotificationInfo.Builder toBuilder()
      Returns a builder for the current notification.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • of

      public static NotificationInfo of(com.google.pubsub.v1.ProjectTopicName topic)
      Creates a NotificationInfo object for the provided topic name.
    • newBuilder

      public static NotificationInfo.Builder newBuilder(com.google.pubsub.v1.ProjectTopicName topic)
      Returns a NotificationInfo builder where the topic's name is set to the provided name.