Class MessageDetails.Builder
-
- All Implemented Interfaces:
public final class MessageDetails.BuilderA builder for MessageDetails.
-
-
Method Summary
Modifier and Type Method Description final MessageDetails.Builderid(String id)A unique identifier associated with the message you wish to retrieve (results from a send). final MessageDetails.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final MessageDetails.Builderenqueued(Long enqueued)A UTC timestamp at which Courier received the message request. final MessageDetails.Builderenqueued(JsonField<Long> enqueued)Sets Builder.enqueued to an arbitrary JSON value. final MessageDetails.Builderevent(String event)A unique identifier associated with the event of the delivered message. final MessageDetails.Builderevent(JsonField<String> event)Sets Builder.event to an arbitrary JSON value. final MessageDetails.Buildernotification(String notification)A unique identifier associated with the notification of the delivered message. final MessageDetails.Buildernotification(JsonField<String> notification)Sets Builder.notification to an arbitrary JSON value. final MessageDetails.Builderrecipient(String recipient)A unique identifier associated with the recipient of the delivered message. final MessageDetails.Builderrecipient(JsonField<String> recipient)Sets Builder.recipient to an arbitrary JSON value. final MessageDetails.Builderstatus(MessageDetails.Status status)The current status of the message. final MessageDetails.Builderstatus(JsonField<MessageDetails.Status> status)Sets Builder.status to an arbitrary JSON value. final MessageDetails.Builderclicked(Long clicked)A UTC timestamp at which the recipient clicked on a tracked link for the first time. final MessageDetails.Builderclicked(JsonField<Long> clicked)Sets Builder.clicked to an arbitrary JSON value. final MessageDetails.Builderdelivered(Long delivered)A UTC timestamp at which the Integration provider delivered the message. final MessageDetails.Builderdelivered(JsonField<Long> delivered)Sets Builder.delivered to an arbitrary JSON value. final MessageDetails.Buildererror(String error)A message describing the error that occurred. final MessageDetails.Buildererror(Optional<String> error)Alias for calling Builder.error with error.orElse(null).final MessageDetails.Buildererror(JsonField<String> error)Sets Builder.error to an arbitrary JSON value. final MessageDetails.Builderopened(Long opened)A UTC timestamp at which the recipient opened a message for the first time. final MessageDetails.Builderopened(JsonField<Long> opened)Sets Builder.opened to an arbitrary JSON value. final MessageDetails.Builderreason(MessageDetails.Reason reason)The reason for the current status of the message. final MessageDetails.Builderreason(Optional<MessageDetails.Reason> reason)Alias for calling Builder.reason with reason.orElse(null).final MessageDetails.Builderreason(JsonField<MessageDetails.Reason> reason)Sets Builder.reason to an arbitrary JSON value. final MessageDetails.Buildersent(Long sent)A UTC timestamp at which Courier passed the message to the Integration provider. final MessageDetails.Buildersent(JsonField<Long> sent)Sets Builder.sent to an arbitrary JSON value. final MessageDetails.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final MessageDetails.BuilderputAdditionalProperty(String key, JsonValue value)final MessageDetails.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final MessageDetails.BuilderremoveAdditionalProperty(String key)final MessageDetails.BuilderremoveAllAdditionalProperties(Set<String> keys)final MessageDetailsbuild()Returns an immutable instance of MessageDetails. -
-
Method Detail
-
id
final MessageDetails.Builder id(String id)
A unique identifier associated with the message you wish to retrieve (results from a send).
-
id
final MessageDetails.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
enqueued
final MessageDetails.Builder enqueued(Long enqueued)
A UTC timestamp at which Courier received the message request. Stored as a millisecond representation of the Unix epoch.
-
enqueued
final MessageDetails.Builder enqueued(JsonField<Long> enqueued)
Sets Builder.enqueued to an arbitrary JSON value.
You should usually call Builder.enqueued with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
event
final MessageDetails.Builder event(String event)
A unique identifier associated with the event of the delivered message.
-
event
final MessageDetails.Builder event(JsonField<String> event)
Sets Builder.event to an arbitrary JSON value.
You should usually call Builder.event with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
notification
final MessageDetails.Builder notification(String notification)
A unique identifier associated with the notification of the delivered message.
-
notification
final MessageDetails.Builder notification(JsonField<String> notification)
Sets Builder.notification to an arbitrary JSON value.
You should usually call Builder.notification with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
recipient
final MessageDetails.Builder recipient(String recipient)
A unique identifier associated with the recipient of the delivered message.
-
recipient
final MessageDetails.Builder recipient(JsonField<String> recipient)
Sets Builder.recipient to an arbitrary JSON value.
You should usually call Builder.recipient with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final MessageDetails.Builder status(MessageDetails.Status status)
The current status of the message.
-
status
final MessageDetails.Builder status(JsonField<MessageDetails.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
clicked
final MessageDetails.Builder clicked(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.
-
clicked
final MessageDetails.Builder clicked(JsonField<Long> clicked)
Sets Builder.clicked to an arbitrary JSON value.
You should usually call Builder.clicked with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
delivered
final MessageDetails.Builder delivered(Long delivered)
A UTC timestamp at which the Integration provider delivered the message. Stored as a millisecond representation of the Unix epoch.
-
delivered
final MessageDetails.Builder delivered(JsonField<Long> delivered)
Sets Builder.delivered to an arbitrary JSON value.
You should usually call Builder.delivered with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
error
final MessageDetails.Builder error(String error)
A message describing the error that occurred.
-
error
final MessageDetails.Builder error(Optional<String> error)
Alias for calling Builder.error with
error.orElse(null).
-
error
final MessageDetails.Builder error(JsonField<String> error)
Sets Builder.error to an arbitrary JSON value.
You should usually call Builder.error with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
opened
final MessageDetails.Builder opened(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.
-
opened
final MessageDetails.Builder opened(JsonField<Long> opened)
Sets Builder.opened to an arbitrary JSON value.
You should usually call Builder.opened with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
reason
final MessageDetails.Builder reason(MessageDetails.Reason reason)
The reason for the current status of the message.
-
reason
final MessageDetails.Builder reason(Optional<MessageDetails.Reason> reason)
Alias for calling Builder.reason with
reason.orElse(null).
-
reason
final MessageDetails.Builder reason(JsonField<MessageDetails.Reason> reason)
Sets Builder.reason to an arbitrary JSON value.
You should usually call Builder.reason with a well-typed Reason value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sent
final MessageDetails.Builder sent(Long sent)
A UTC timestamp at which Courier passed the message to the Integration provider. Stored as a millisecond representation of the Unix epoch.
-
sent
final MessageDetails.Builder sent(JsonField<Long> sent)
Sets Builder.sent to an arbitrary JSON value.
You should usually call Builder.sent with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final MessageDetails.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final MessageDetails.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final MessageDetails.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final MessageDetails.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final MessageDetails.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final MessageDetails build()
Returns an immutable instance of MessageDetails.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .enqueued() .event() .notification() .recipient() .status()
-
-
-
-