Package com.courier.models.notifications
Class NotificationContentPutRequest
-
- All Implemented Interfaces:
public final class NotificationContentPutRequestRequest body for replacing the elemental content of a notification template.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classNotificationContentPutRequest.BuilderA builder for NotificationContentPutRequest.
public final classNotificationContentPutRequest.ContentElemental content payload. The server defaults
versionwhen omitted.
-
Method Summary
Modifier and Type Method Description final NotificationContentPutRequest.Contentcontent()Elemental content payload. final Optional<NotificationTemplateState>state()Template state. final JsonField<NotificationContentPutRequest.Content>_content()Returns the raw JSON value of content. final JsonField<NotificationTemplateState>_state()Returns the raw JSON value of state. final Map<String, JsonValue>_additionalProperties()final NotificationContentPutRequest.BuildertoBuilder()final NotificationContentPutRequestvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static NotificationContentPutRequest.Builderbuilder()Returns a mutable builder for constructing an instance of NotificationContentPutRequest. -
-
Method Detail
-
content
final NotificationContentPutRequest.Content content()
Elemental content payload. The server defaults
versionwhen omitted.
-
state
final Optional<NotificationTemplateState> state()
Template state. Defaults to
DRAFT.
-
_content
final JsonField<NotificationContentPutRequest.Content> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_state
final JsonField<NotificationTemplateState> _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 NotificationContentPutRequest.Builder toBuilder()
-
validate
final NotificationContentPutRequest validate()
-
builder
final static NotificationContentPutRequest.Builder builder()
Returns a mutable builder for constructing an instance of NotificationContentPutRequest.
The following fields are required:
.content()
-
-
-
-