Class MessageEvent
-
- All Implemented Interfaces:
public final class MessageEventA message event. Occurs when a message /send-notifications/message-statuses changes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMessageEvent.BuilderA builder for MessageEvent.
public final classMessageEvent.TypeThe type of event that occurred.
public final classMessageEvent.DataThe data associated with the message event. Only present for some event types.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique identifier for the message event. final String_typename()The typename of the schema. final OffsetDateTimeinsertedAt()Timestamp when the event was created. final RecipientReferencerecipient()A reference to a recipient, either a user identifier (string) or an object reference (ID, collection). final MessageEvent.Typetype()The type of event that occurred. final Optional<MessageEvent.Data>data()The data associated with the message event. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>__typename()Returns the raw JSON value of _typename. final JsonField<OffsetDateTime>_insertedAt()Returns the raw JSON value of insertedAt. final JsonField<RecipientReference>_recipient()Returns the raw JSON value of recipient. final JsonField<MessageEvent.Type>_type()Returns the raw JSON value of type. final JsonField<MessageEvent.Data>_data()Returns the raw JSON value of data. final Map<String, JsonValue>_additionalProperties()final MessageEvent.BuildertoBuilder()final MessageEventvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static MessageEvent.Builderbuilder()Returns a mutable builder for constructing an instance of MessageEvent. -
-
Method Detail
-
insertedAt
final OffsetDateTime insertedAt()
Timestamp when the event was created.
-
recipient
final RecipientReference recipient()
A reference to a recipient, either a user identifier (string) or an object reference (ID, collection).
-
type
final MessageEvent.Type type()
The type of event that occurred.
-
data
final Optional<MessageEvent.Data> data()
The data associated with the message event. Only present for some event types.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
__typename
final JsonField<String> __typename()
Returns the raw JSON value of _typename.
Unlike _typename, this method doesn't throw if the JSON field has an unexpected type.
-
_insertedAt
final JsonField<OffsetDateTime> _insertedAt()
Returns the raw JSON value of insertedAt.
Unlike insertedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_recipient
final JsonField<RecipientReference> _recipient()
Returns the raw JSON value of recipient.
Unlike recipient, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<MessageEvent.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_data
final JsonField<MessageEvent.Data> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final MessageEvent.Builder toBuilder()
-
validate
final MessageEvent validate()
-
builder
final static MessageEvent.Builder builder()
Returns a mutable builder for constructing an instance of MessageEvent.
The following fields are required:
.id() ._typename() .insertedAt() .recipient() .type()
-
-
-
-