Class NotificationTemplateCreateRequest
-
- All Implemented Interfaces:
public final class NotificationTemplateCreateRequestRequest body for creating a notification template.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classNotificationTemplateCreateRequest.BuilderA builder for NotificationTemplateCreateRequest.
public final classNotificationTemplateCreateRequest.StateTemplate state after creation. 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<NotificationTemplateCreateRequest.State>state()Template state after creation. final JsonField<NotificationTemplatePayload>_notification()Returns the raw JSON value of notification. final JsonField<NotificationTemplateCreateRequest.State>_state()Returns the raw JSON value of state. final Map<String, JsonValue>_additionalProperties()final NotificationTemplateCreateRequest.BuildertoBuilder()final NotificationTemplateCreateRequestvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static NotificationTemplateCreateRequest.Builderbuilder()Returns a mutable builder for constructing an instance of NotificationTemplateCreateRequest. -
-
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<NotificationTemplateCreateRequest.State> state()
Template state after creation. 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<NotificationTemplateCreateRequest.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 NotificationTemplateCreateRequest.Builder toBuilder()
-
validate
final NotificationTemplateCreateRequest 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 NotificationTemplateCreateRequest.Builder builder()
Returns a mutable builder for constructing an instance of NotificationTemplateCreateRequest.
The following fields are required:
.notification()
-
-
-
-