Class MessageDetails
-
- All Implemented Interfaces:
public final class MessageDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMessageDetails.BuilderA builder for MessageDetails.
public final classMessageDetails.StatusThe current status of the message.
public final classMessageDetails.ReasonThe reason for the current status of the message.
-
Method Summary
Modifier and Type Method Description final Stringid()A unique identifier associated with the message you wish to retrieve (results from a send). final Longclicked()A UTC timestamp at which the recipient clicked on a tracked link for the first time. final Longdelivered()A UTC timestamp at which the Integration provider delivered the message. final Longenqueued()A UTC timestamp at which Courier received the message request. final Stringevent()A unique identifier associated with the event of the delivered message. final Stringnotification()A unique identifier associated with the notification of the delivered message. final Longopened()A UTC timestamp at which the recipient opened a message for the first time. final Stringrecipient()A unique identifier associated with the recipient of the delivered message. final Longsent()A UTC timestamp at which Courier passed the message to the Integration provider. final MessageDetails.Statusstatus()The current status of the message. final Optional<String>error()A message describing the error that occurred. final Optional<MessageDetails.Reason>reason()The reason for the current status of the message. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<Long>_clicked()Returns the raw JSON value of clicked. final JsonField<Long>_delivered()Returns the raw JSON value of delivered. final JsonField<Long>_enqueued()Returns the raw JSON value of enqueued. final JsonField<String>_event()Returns the raw JSON value of event. final JsonField<String>_notification()Returns the raw JSON value of notification. final JsonField<Long>_opened()Returns the raw JSON value of opened. final JsonField<String>_recipient()Returns the raw JSON value of recipient. final JsonField<Long>_sent()Returns the raw JSON value of sent. final JsonField<MessageDetails.Status>_status()Returns the raw JSON value of status. final JsonField<String>_error()Returns the raw JSON value of error. final JsonField<MessageDetails.Reason>_reason()Returns the raw JSON value of reason. final Map<String, JsonValue>_additionalProperties()final MessageDetails.BuildertoBuilder()final MessageDetailsvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static MessageDetails.Builderbuilder()Returns a mutable builder for constructing an instance of MessageDetails. -
-
Method Detail
-
id
final String id()
A unique identifier associated with the message you wish to retrieve (results from a send).
-
clicked
final Long clicked()
A UTC timestamp at which the recipient clicked on a tracked link for the first time. Stored as a millisecond representation of the Unix epoch.
-
delivered
final Long delivered()
A UTC timestamp at which the Integration provider delivered the message. Stored as a millisecond representation of the Unix epoch.
-
enqueued
final Long enqueued()
A UTC timestamp at which Courier received the message request. Stored as a millisecond representation of the Unix epoch.
-
notification
final String notification()
A unique identifier associated with the notification of the delivered message.
-
opened
final Long opened()
A UTC timestamp at which the recipient opened a message for the first time. Stored as a millisecond representation of the Unix epoch.
-
recipient
final String recipient()
A unique identifier associated with the recipient of the delivered message.
-
sent
final Long sent()
A UTC timestamp at which Courier passed the message to the Integration provider. Stored as a millisecond representation of the Unix epoch.
-
status
final MessageDetails.Status status()
The current status of the message.
-
reason
final Optional<MessageDetails.Reason> reason()
The reason for the current status of the message.
-
_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.
-
_clicked
final JsonField<Long> _clicked()
Returns the raw JSON value of clicked.
Unlike clicked, this method doesn't throw if the JSON field has an unexpected type.
-
_delivered
final JsonField<Long> _delivered()
Returns the raw JSON value of delivered.
Unlike delivered, this method doesn't throw if the JSON field has an unexpected type.
-
_enqueued
final JsonField<Long> _enqueued()
Returns the raw JSON value of enqueued.
Unlike enqueued, this method doesn't throw if the JSON field has an unexpected type.
-
_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.
-
_notification
final JsonField<String> _notification()
Returns the raw JSON value of notification.
Unlike notification, this method doesn't throw if the JSON field has an unexpected type.
-
_opened
final JsonField<Long> _opened()
Returns the raw JSON value of opened.
Unlike opened, this method doesn't throw if the JSON field has an unexpected type.
-
_recipient
final JsonField<String> _recipient()
Returns the raw JSON value of recipient.
Unlike recipient, this method doesn't throw if the JSON field has an unexpected type.
-
_sent
final JsonField<Long> _sent()
Returns the raw JSON value of sent.
Unlike sent, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<MessageDetails.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_error
final JsonField<String> _error()
Returns the raw JSON value of error.
Unlike error, this method doesn't throw if the JSON field has an unexpected type.
-
_reason
final JsonField<MessageDetails.Reason> _reason()
Returns the raw JSON value of reason.
Unlike reason, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final MessageDetails.Builder toBuilder()
-
validate
final MessageDetails validate()
-
builder
final static MessageDetails.Builder builder()
Returns a mutable builder for constructing an instance of MessageDetails.
The following fields are required:
.id() .clicked() .delivered() .enqueued() .event() .notification() .opened() .recipient() .sent() .status()
-
-
-
-