public static class Notification.Builder extends NotificationInfo.Builder
Builder for Notification
.
Methods
build()
public Notification build()
Creates a NotificationInfo
object.
Returns | |
---|---|
Type | Description |
Notification |
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 |
setEtag(String etag)
public Notification.Builder setEtag(String etag)
Parameter | |
---|---|
Name | Description |
etag | String |
Returns | |
---|---|
Type | Description |
Notification.Builder |
setEventTypes(NotificationInfo.EventType[] eventTypes)
public Notification.Builder setEventTypes(NotificationInfo.EventType[] eventTypes)
Parameter | |
---|---|
Name | Description |
eventTypes | EventType[] |
Returns | |
---|---|
Type | Description |
Notification.Builder |
setObjectNamePrefix(String objectNamePrefix)
public Notification.Builder setObjectNamePrefix(String objectNamePrefix)
Parameter | |
---|---|
Name | Description |
objectNamePrefix | String |
Returns | |
---|---|
Type | Description |
Notification.Builder |
setPayloadFormat(NotificationInfo.PayloadFormat payloadFormat)
public Notification.Builder setPayloadFormat(NotificationInfo.PayloadFormat payloadFormat)
Parameter | |
---|---|
Name | Description |
payloadFormat | NotificationInfo.PayloadFormat |
Returns | |
---|---|
Type | Description |
Notification.Builder |
setSelfLink(String selfLink)
public Notification.Builder setSelfLink(String selfLink)
Parameter | |
---|---|
Name | Description |
selfLink | String |
Returns | |
---|---|
Type | Description |
Notification.Builder |
setTopic(String topic)
public Notification.Builder setTopic(String topic)
Parameter | |
---|---|
Name | Description |
topic | String |
Returns | |
---|---|
Type | Description |
Notification.Builder |