Class NotificationTemplateResponse
-
- All Implemented Interfaces:
public final class NotificationTemplateResponseResponse for GET /notifications/{id}, POST /notifications, and PUT /notifications/{id}. Returns all template fields at the top level.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classNotificationTemplateResponse.BuilderA builder for NotificationTemplateResponse.
public final classNotificationTemplateResponse.StateThe template state. Always uppercase.
-
Method Summary
Modifier and Type Method Description final NotificationTemplatePayloadtoNotificationTemplatePayload()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 Stringid()The template ID. final Longcreated()Epoch milliseconds when the template was created. final Stringcreator()User ID of the creator. final NotificationTemplateResponse.Statestate()The template state. final Optional<Long>updated()Epoch milliseconds of last update. final Optional<String>updater()User ID of the last updater. 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 JsonField<String>_id()Returns the raw JSON value of id. final JsonField<Long>_created()Returns the raw JSON value of created. final JsonField<String>_creator()Returns the raw JSON value of creator. final JsonField<NotificationTemplateResponse.State>_state()Returns the raw JSON value of state. final JsonField<Long>_updated()Returns the raw JSON value of updated. final JsonField<String>_updater()Returns the raw JSON value of updater. final Map<String, JsonValue>_additionalProperties()final NotificationTemplateResponse.BuildertoBuilder()final NotificationTemplateResponsevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static NotificationTemplateResponse.Builderbuilder()Returns a mutable builder for constructing an instance of NotificationTemplateResponse. -
-
Method Detail
-
toNotificationTemplatePayload
final NotificationTemplatePayload toNotificationTemplatePayload()
-
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.
-
state
final NotificationTemplateResponse.State state()
The template state. Always uppercase.
-
_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.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_created
final JsonField<Long> _created()
Returns the raw JSON value of created.
Unlike created, this method doesn't throw if the JSON field has an unexpected type.
-
_creator
final JsonField<String> _creator()
Returns the raw JSON value of creator.
Unlike creator, this method doesn't throw if the JSON field has an unexpected type.
-
_state
final JsonField<NotificationTemplateResponse.State> _state()
Returns the raw JSON value of state.
Unlike state, this method doesn't throw if the JSON field has an unexpected type.
-
_updated
final JsonField<Long> _updated()
Returns the raw JSON value of updated.
Unlike updated, this method doesn't throw if the JSON field has an unexpected type.
-
_updater
final JsonField<String> _updater()
Returns the raw JSON value of updater.
Unlike updater, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final NotificationTemplateResponse.Builder toBuilder()
-
validate
final NotificationTemplateResponse 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 NotificationTemplateResponse.Builder builder()
Returns a mutable builder for constructing an instance of NotificationTemplateResponse.
The following fields are required:
.brand() .content() .name() .routing() .subscription() .tags() .id() .created() .creator() .state()
-
-
-
-