Class NotificationTemplateUpdateRequest
-
- All Implemented Interfaces:
public final class NotificationTemplateUpdateRequestRequest body for replacing a notification template. Same shape as create. All fields required (PUT = full replacement).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classNotificationTemplateUpdateRequest.BuilderA builder for NotificationTemplateUpdateRequest.
public final classNotificationTemplateUpdateRequest.StateTemplate state after update. Case-insensitive input, normalized to uppercase in the response. Defaults to "DRAFT".
-
Method Summary
Modifier and Type Method Description final NotificationTemplatePayloadnotification()Core template fields used in POST and PUT request bodies (nested under a notificationkey) and returned at the top level in responses.final Optional<NotificationTemplateUpdateRequest.State>state()Template state after update. final JsonField<NotificationTemplatePayload>_notification()Returns the raw JSON value of notification. final JsonField<NotificationTemplateUpdateRequest.State>_state()Returns the raw JSON value of state. final Map<String, JsonValue>_additionalProperties()final NotificationTemplateUpdateRequest.BuildertoBuilder()final NotificationTemplateUpdateRequestvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static NotificationTemplateUpdateRequest.Builderbuilder()Returns a mutable builder for constructing an instance of NotificationTemplateUpdateRequest. -
-
Method Detail
-
notification
final NotificationTemplatePayload notification()
Core template fields used in POST and PUT request bodies (nested under a
notificationkey) and returned at the top level in responses.
-
state
final Optional<NotificationTemplateUpdateRequest.State> state()
Template state after update. Case-insensitive input, normalized to uppercase in the response. Defaults to "DRAFT".
-
_notification
final JsonField<NotificationTemplatePayload> _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<NotificationTemplateUpdateRequest.State> _state()
Returns the raw JSON value of state.
Unlike state, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final NotificationTemplateUpdateRequest.Builder toBuilder()
-
validate
final NotificationTemplateUpdateRequest 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 NotificationTemplateUpdateRequest.Builder builder()
Returns a mutable builder for constructing an instance of NotificationTemplateUpdateRequest.
The following fields are required:
.notification()
-
-
-
-