Class NotificationTemplatePayload
-
- All Implemented Interfaces:
public final class NotificationTemplatePayloadCore template fields used in POST and PUT request bodies (nested under a
notificationkey) and returned at the top level in responses.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classNotificationTemplatePayload.BuilderA builder for NotificationTemplatePayload.
public final classNotificationTemplatePayload.BrandBrand reference, or null for no brand.
public final classNotificationTemplatePayload.RoutingRouting strategy reference, or null for none.
public final classNotificationTemplatePayload.SubscriptionSubscription topic reference, or null for none.
-
Method Summary
Modifier and Type Method Description final Optional<NotificationTemplatePayload.Brand>brand()Brand reference, or null for no brand. final ElementalContentcontent()Elemental content definition. final Stringname()Display name for the template. final Optional<NotificationTemplatePayload.Routing>routing()Routing strategy reference, or null for none. final Optional<NotificationTemplatePayload.Subscription>subscription()Subscription topic reference, or null for none. final List<String>tags()Tags for categorization. final JsonField<NotificationTemplatePayload.Brand>_brand()Returns the raw JSON value of brand. final JsonField<ElementalContent>_content()Returns the raw JSON value of content. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<NotificationTemplatePayload.Routing>_routing()Returns the raw JSON value of routing. final JsonField<NotificationTemplatePayload.Subscription>_subscription()Returns the raw JSON value of subscription. final JsonField<List<String>>_tags()Returns the raw JSON value of tags. final Map<String, JsonValue>_additionalProperties()final NotificationTemplatePayload.BuildertoBuilder()final NotificationTemplatePayloadvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static NotificationTemplatePayload.Builderbuilder()Returns a mutable builder for constructing an instance of NotificationTemplatePayload. -
-
Method Detail
-
brand
final Optional<NotificationTemplatePayload.Brand> brand()
Brand reference, or null for no brand.
-
content
final ElementalContent content()
Elemental content definition.
-
routing
final Optional<NotificationTemplatePayload.Routing> routing()
Routing strategy reference, or null for none.
-
subscription
final Optional<NotificationTemplatePayload.Subscription> subscription()
Subscription topic reference, or null for none.
-
_brand
final JsonField<NotificationTemplatePayload.Brand> _brand()
Returns the raw JSON value of brand.
Unlike brand, this method doesn't throw if the JSON field has an unexpected type.
-
_content
final JsonField<ElementalContent> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_routing
final JsonField<NotificationTemplatePayload.Routing> _routing()
Returns the raw JSON value of routing.
Unlike routing, this method doesn't throw if the JSON field has an unexpected type.
-
_subscription
final JsonField<NotificationTemplatePayload.Subscription> _subscription()
Returns the raw JSON value of subscription.
Unlike subscription, this method doesn't throw if the JSON field has an unexpected type.
-
_tags
final JsonField<List<String>> _tags()
Returns the raw JSON value of tags.
Unlike tags, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final NotificationTemplatePayload.Builder toBuilder()
-
validate
final NotificationTemplatePayload validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static NotificationTemplatePayload.Builder builder()
Returns a mutable builder for constructing an instance of NotificationTemplatePayload.
The following fields are required:
.brand() .content() .name() .routing() .subscription() .tags()
-
-
-
-