Class NotificationElementPutRequest
-
- All Implemented Interfaces:
public final class NotificationElementPutRequestRequest body for updating a single element. Additional type-specific fields are allowed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classNotificationElementPutRequest.BuilderA builder for NotificationElementPutRequest.
public final classNotificationElementPutRequest.Data
-
Method Summary
Modifier and Type Method Description final Stringtype()Element type (text, meta, action, image, etc.). final Optional<List<String>>channels()final Optional<NotificationElementPutRequest.Data>data()final Optional<String>if_()final Optional<String>loop()final Optional<String>ref()final Optional<NotificationTemplateState>state()Template state. final JsonField<String>_type()Returns the raw JSON value of type. final JsonField<List<String>>_channels()Returns the raw JSON value of channels. final JsonField<NotificationElementPutRequest.Data>_data()Returns the raw JSON value of data. final JsonField<String>_if_()Returns the raw JSON value of if_. final JsonField<String>_loop()Returns the raw JSON value of loop. final JsonField<String>_ref()Returns the raw JSON value of ref. final JsonField<NotificationTemplateState>_state()Returns the raw JSON value of state. final Map<String, JsonValue>_additionalProperties()final NotificationElementPutRequest.BuildertoBuilder()final NotificationElementPutRequestvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static NotificationElementPutRequest.Builderbuilder()Returns a mutable builder for constructing an instance of NotificationElementPutRequest. -
-
Method Detail
-
data
final Optional<NotificationElementPutRequest.Data> data()
-
state
final Optional<NotificationTemplateState> state()
Template state. Defaults to
DRAFT.
-
_type
final JsonField<String> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_channels
final JsonField<List<String>> _channels()
Returns the raw JSON value of channels.
Unlike channels, this method doesn't throw if the JSON field has an unexpected type.
-
_data
final JsonField<NotificationElementPutRequest.Data> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_if_
final JsonField<String> _if_()
Returns the raw JSON value of if_.
Unlike if_, this method doesn't throw if the JSON field has an unexpected type.
-
_loop
final JsonField<String> _loop()
Returns the raw JSON value of loop.
Unlike loop, this method doesn't throw if the JSON field has an unexpected type.
-
_ref
final JsonField<String> _ref()
Returns the raw JSON value of ref.
Unlike ref, 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 NotificationElementPutRequest.Builder toBuilder()
-
validate
final NotificationElementPutRequest 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 NotificationElementPutRequest.Builder builder()
Returns a mutable builder for constructing an instance of NotificationElementPutRequest.
The following fields are required:
.type()
-
-
-
-