Class NotificationInfo.BuilderImpl (2.37.0)

public static class NotificationInfo.BuilderImpl extends NotificationInfo.Builder

Builder for NotificationInfo.

Inheritance

java.lang.Object > NotificationInfo.Builder > NotificationInfo.BuilderImpl

Methods

build()

public NotificationInfo build()

Creates a NotificationInfo object.

Returns
Type Description
NotificationInfo
Overrides

setCustomAttributes(Map<String,String> customAttributes)

public NotificationInfo.Builder setCustomAttributes(Map<String,String> customAttributes)
Parameter
Name Description
customAttributes Map<String,String>
Returns
Type Description
NotificationInfo.Builder
Overrides

setEtag(String etag)

public NotificationInfo.Builder setEtag(String etag)
Parameter
Name Description
etag String
Returns
Type Description
NotificationInfo.Builder
Overrides

setEventTypes(NotificationInfo.EventType[] eventTypes)

public NotificationInfo.Builder setEventTypes(NotificationInfo.EventType[] eventTypes)
Parameter
Name Description
eventTypes EventType[]
Returns
Type Description
NotificationInfo.Builder
Overrides

setObjectNamePrefix(String objectNamePrefix)

public NotificationInfo.Builder setObjectNamePrefix(String objectNamePrefix)
Parameter
Name Description
objectNamePrefix String
Returns
Type Description
NotificationInfo.Builder
Overrides

setPayloadFormat(NotificationInfo.PayloadFormat payloadFormat)

public NotificationInfo.Builder setPayloadFormat(NotificationInfo.PayloadFormat payloadFormat)
Parameter
Name Description
payloadFormat NotificationInfo.PayloadFormat
Returns
Type Description
NotificationInfo.Builder
Overrides
public NotificationInfo.Builder setSelfLink(String selfLink)
Parameter
Name Description
selfLink String
Returns
Type Description
NotificationInfo.Builder
Overrides

setTopic(String topic)

public NotificationInfo.Builder setTopic(String topic)

Sets a topic in the format of "projects/{project}/topics/{topic}".

Parameter
Name Description
topic String
Returns
Type Description
NotificationInfo.Builder
Overrides