Package com.courier.models.notifications
Class NotificationTemplatePublishRequest
-
- All Implemented Interfaces:
public final class NotificationTemplatePublishRequestOptional request body for publishing a notification template. Omit or send an empty object to publish the current draft.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classNotificationTemplatePublishRequest.BuilderA builder for NotificationTemplatePublishRequest.
-
Method Summary
Modifier and Type Method Description final Optional<String>version()Historical version to publish (e.g. final JsonField<String>_version()Returns the raw JSON value of version. final Map<String, JsonValue>_additionalProperties()final NotificationTemplatePublishRequest.BuildertoBuilder()final NotificationTemplatePublishRequestvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static NotificationTemplatePublishRequest.Builderbuilder()Returns a mutable builder for constructing an instance of NotificationTemplatePublishRequest. -
-
Method Detail
-
version
final Optional<String> version()
Historical version to publish (e.g. "v001"). Omit to publish the current draft.
-
_version
final JsonField<String> _version()
Returns the raw JSON value of version.
Unlike version, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final NotificationTemplatePublishRequest.Builder toBuilder()
-
validate
final NotificationTemplatePublishRequest 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 NotificationTemplatePublishRequest.Builder builder()
Returns a mutable builder for constructing an instance of NotificationTemplatePublishRequest.
-
-
-
-