Class Notification.Builder (2.22.2)

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
TypeDescription
Notification
Overrides

setCustomAttributes(Map<String,String> customAttributes)

public Notification.Builder setCustomAttributes(Map<String,String> customAttributes)
Parameter
NameDescription
customAttributesMap<String,String>
Returns
TypeDescription
Notification.Builder
Overrides

setEtag(String etag)

public Notification.Builder setEtag(String etag)
Parameter
NameDescription
etagString
Returns
TypeDescription
Notification.Builder
Overrides

setEventTypes(NotificationInfo.EventType[] eventTypes)

public Notification.Builder setEventTypes(NotificationInfo.EventType[] eventTypes)
Parameter
NameDescription
eventTypesEventType[]
Returns
TypeDescription
Notification.Builder
Overrides

setObjectNamePrefix(String objectNamePrefix)

public Notification.Builder setObjectNamePrefix(String objectNamePrefix)
Parameter
NameDescription
objectNamePrefixString
Returns
TypeDescription
Notification.Builder
Overrides

setPayloadFormat(NotificationInfo.PayloadFormat payloadFormat)

public Notification.Builder setPayloadFormat(NotificationInfo.PayloadFormat payloadFormat)
Parameter
NameDescription
payloadFormatNotificationInfo.PayloadFormat
Returns
TypeDescription
Notification.Builder
Overrides
public Notification.Builder setSelfLink(String selfLink)
Parameter
NameDescription
selfLinkString
Returns
TypeDescription
Notification.Builder
Overrides

setTopic(String topic)

public Notification.Builder setTopic(String topic)
Parameter
NameDescription
topicString
Returns
TypeDescription
Notification.Builder
Overrides