Class Notification.Builder (2.45.0)

public static class Notification.Builder extends NotificationInfo.Builder

Builder for Notification.

Inheritance

java.lang.Object > NotificationInfo.Builder > Notification.Builder

Methods

build()

public Notification build()

Creates a NotificationInfo object.

Returns
Type Description
Notification
Overrides

setCustomAttributes(Map<String,String> customAttributes)

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

setEtag(String etag)

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

setEventTypes(NotificationInfo.EventType[] eventTypes)

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

setObjectNamePrefix(String objectNamePrefix)

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

setPayloadFormat(NotificationInfo.PayloadFormat payloadFormat)

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

setTopic(String topic)

public Notification.Builder setTopic(String topic)
Parameter
Name Description
topic String
Returns
Type Description
Notification.Builder
Overrides