Class NotificationTemplateGetResponse
-
- All Implemented Interfaces:
public final class NotificationTemplateGetResponseEnvelope response for GET /notifications/{id}. The notification object mirrors the POST/PUT input shape. Nullable fields return null when unset.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classNotificationTemplateGetResponse.BuilderA builder for NotificationTemplateGetResponse.
public final classNotificationTemplateGetResponse.NotificationFull document shape used in POST and PUT request bodies, and returned inside the GET response envelope.
public final classNotificationTemplateGetResponse.StateThe template state. Always uppercase.
-
Method Summary
Modifier and Type Method Description final Longcreated()Epoch milliseconds when the template was created. final Stringcreator()User ID of the creator. final NotificationTemplateGetResponse.Notificationnotification()Full document shape used in POST and PUT request bodies, and returned inside the GET response envelope. final NotificationTemplateGetResponse.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<Long>_created()Returns the raw JSON value of created. final JsonField<String>_creator()Returns the raw JSON value of creator. final JsonField<NotificationTemplateGetResponse.Notification>_notification()Returns the raw JSON value of notification. final JsonField<NotificationTemplateGetResponse.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 NotificationTemplateGetResponse.BuildertoBuilder()final NotificationTemplateGetResponsevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static NotificationTemplateGetResponse.Builderbuilder()Returns a mutable builder for constructing an instance of NotificationTemplateGetResponse. -
-
Method Detail
-
notification
final NotificationTemplateGetResponse.Notification notification()
Full document shape used in POST and PUT request bodies, and returned inside the GET response envelope.
-
state
final NotificationTemplateGetResponse.State state()
The template state. Always uppercase.
-
_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.
-
_notification
final JsonField<NotificationTemplateGetResponse.Notification> _notification()
Returns the raw JSON value of notification.
Unlike notification, this method doesn't throw if the JSON field has an unexpected type.
-
_state
final JsonField<NotificationTemplateGetResponse.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 NotificationTemplateGetResponse.Builder toBuilder()
-
validate
final NotificationTemplateGetResponse validate()
-
builder
final static NotificationTemplateGetResponse.Builder builder()
Returns a mutable builder for constructing an instance of NotificationTemplateGetResponse.
The following fields are required:
.created() .creator() .notification() .state()
-
-
-
-