Class NotificationTemplatePayload.Builder
-
- All Implemented Interfaces:
public final class NotificationTemplatePayload.BuilderA builder for NotificationTemplatePayload.
-
-
Method Summary
-
-
Method Detail
-
brand
final NotificationTemplatePayload.Builder brand(NotificationTemplatePayload.Brand brand)
Brand reference, or null for no brand.
-
brand
final NotificationTemplatePayload.Builder brand(Optional<NotificationTemplatePayload.Brand> brand)
Alias for calling Builder.brand with
brand.orElse(null).
-
brand
final NotificationTemplatePayload.Builder brand(JsonField<NotificationTemplatePayload.Brand> brand)
Sets Builder.brand to an arbitrary JSON value.
You should usually call Builder.brand with a well-typed Brand value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final NotificationTemplatePayload.Builder content(ElementalContent content)
Elemental content definition.
-
content
final NotificationTemplatePayload.Builder content(JsonField<ElementalContent> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed ElementalContent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final NotificationTemplatePayload.Builder name(String name)
Display name for the template.
-
name
final NotificationTemplatePayload.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
routing
final NotificationTemplatePayload.Builder routing(NotificationTemplatePayload.Routing routing)
Routing strategy reference, or null for none.
-
routing
final NotificationTemplatePayload.Builder routing(Optional<NotificationTemplatePayload.Routing> routing)
Alias for calling Builder.routing with
routing.orElse(null).
-
routing
final NotificationTemplatePayload.Builder routing(JsonField<NotificationTemplatePayload.Routing> routing)
Sets Builder.routing to an arbitrary JSON value.
You should usually call Builder.routing with a well-typed Routing value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
subscription
final NotificationTemplatePayload.Builder subscription(NotificationTemplatePayload.Subscription subscription)
Subscription topic reference, or null for none.
-
subscription
final NotificationTemplatePayload.Builder subscription(Optional<NotificationTemplatePayload.Subscription> subscription)
Alias for calling Builder.subscription with
subscription.orElse(null).
-
subscription
final NotificationTemplatePayload.Builder subscription(JsonField<NotificationTemplatePayload.Subscription> subscription)
Sets Builder.subscription to an arbitrary JSON value.
You should usually call Builder.subscription with a well-typed Subscription value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tags
final NotificationTemplatePayload.Builder tags(List<String> tags)
Tags for categorization. Send empty array for none.
-
tags
final NotificationTemplatePayload.Builder tags(JsonField<List<String>> tags)
Sets Builder.tags to an arbitrary JSON value.
You should usually call Builder.tags with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addTag
final NotificationTemplatePayload.Builder addTag(String tag)
-
additionalProperties
final NotificationTemplatePayload.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final NotificationTemplatePayload.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final NotificationTemplatePayload.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final NotificationTemplatePayload.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final NotificationTemplatePayload.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final NotificationTemplatePayload build()
Returns an immutable instance of NotificationTemplatePayload.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.brand() .content() .name() .routing() .subscription() .tags()
-
-
-
-