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