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