Class InboundBulkMessage
-
- All Implemented Interfaces:
public final class InboundBulkMessageBulk message definition. Supports two formats:
V1 format: Requires
eventfield (event ID or notification ID)V2 format: Optionally use
template(notification ID) orcontent(Elemental content) in addition toevent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classInboundBulkMessage.BuilderA builder for InboundBulkMessage.
public final classInboundBulkMessage.ContentElemental content (optional, for V2 format). When provided, this will be used instead of the notification associated with the
eventfield.public final classInboundBulkMessage.Datapublic final classInboundBulkMessage.Localepublic final classInboundBulkMessage.Override
-
Method Summary
Modifier and Type Method Description final Stringevent()Event ID or Notification ID (required). final Optional<String>brand()final Optional<InboundBulkMessage.Content>content()Elemental content (optional, for V2 format). final Optional<InboundBulkMessage.Data>data()final Optional<InboundBulkMessage.Locale>locale()final Optional<InboundBulkMessage.Override>override()final Optional<String>template()Notification ID or template ID (optional, for V2 format). final JsonField<String>_event()Returns the raw JSON value of event. final JsonField<String>_brand()Returns the raw JSON value of brand. final JsonField<InboundBulkMessage.Content>_content()Returns the raw JSON value of content. final JsonField<InboundBulkMessage.Data>_data()Returns the raw JSON value of data. final JsonField<InboundBulkMessage.Locale>_locale()Returns the raw JSON value of locale. final JsonField<InboundBulkMessage.Override>_override()Returns the raw JSON value of override. final JsonField<String>_template()Returns the raw JSON value of template. final Map<String, JsonValue>_additionalProperties()final InboundBulkMessage.BuildertoBuilder()final InboundBulkMessagevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static InboundBulkMessage.Builderbuilder()Returns a mutable builder for constructing an instance of InboundBulkMessage. -
-
Method Detail
-
event
final String event()
Event ID or Notification ID (required). Can be either a Notification ID (e.g., "FRH3QXM9E34W4RKP7MRC8NZ1T8V8") or a custom Event ID (e.g., "welcome-email") mapped to a notification.
-
content
final Optional<InboundBulkMessage.Content> content()
Elemental content (optional, for V2 format). When provided, this will be used instead of the notification associated with the
eventfield.
-
data
final Optional<InboundBulkMessage.Data> data()
-
locale
final Optional<InboundBulkMessage.Locale> locale()
-
override
final Optional<InboundBulkMessage.Override> override()
-
template
final Optional<String> template()
Notification ID or template ID (optional, for V2 format). When provided, this will be used instead of the notification associated with the
eventfield.
-
_event
final JsonField<String> _event()
Returns the raw JSON value of event.
Unlike event, this method doesn't throw if the JSON field has an unexpected type.
-
_brand
final JsonField<String> _brand()
Returns the raw JSON value of brand.
Unlike brand, this method doesn't throw if the JSON field has an unexpected type.
-
_content
final JsonField<InboundBulkMessage.Content> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_data
final JsonField<InboundBulkMessage.Data> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_locale
final JsonField<InboundBulkMessage.Locale> _locale()
Returns the raw JSON value of locale.
Unlike locale, this method doesn't throw if the JSON field has an unexpected type.
-
_override
final JsonField<InboundBulkMessage.Override> _override()
Returns the raw JSON value of override.
Unlike override, this method doesn't throw if the JSON field has an unexpected type.
-
_template
final JsonField<String> _template()
Returns the raw JSON value of template.
Unlike template, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final InboundBulkMessage.Builder toBuilder()
-
validate
final InboundBulkMessage 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 InboundBulkMessage.Builder builder()
Returns a mutable builder for constructing an instance of InboundBulkMessage.
The following fields are required:
.event()
-
-
-
-