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