Class SendMessageParams.Message
-
- All Implemented Interfaces:
public final class SendMessageParams.MessageThe message property has the following primary top-level properties. They define the destination and content of the message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSendMessageParams.Message.BuilderA builder for Message.
public final classSendMessageParams.Message.ContentDescribes content that will work for email, inbox, push, chat, or any channel id.
public final classSendMessageParams.Message.Datapublic final classSendMessageParams.Message.Delaypublic final classSendMessageParams.Message.Expirypublic final classSendMessageParams.Message.Metadatapublic final classSendMessageParams.Message.Preferencespublic final classSendMessageParams.Message.RoutingCustomize which channels/providers Courier may deliver the message through.
public final classSendMessageParams.Message.Timeoutpublic final classSendMessageParams.Message.ToThe recipient or a list of recipients of the message
-
Method Summary
-
-
Method Detail
-
channels
final Optional<MessageChannels> channels()
Define run-time configuration for channels. Valid ChannelId's: email, sms, push, inbox, direct_message, banner, webhook.
-
content
final Optional<SendMessageParams.Message.Content> content()
Describes content that will work for email, inbox, push, chat, or any channel id.
-
context
final Optional<MessageContext> context()
-
data
final Optional<SendMessageParams.Message.Data> data()
-
delay
final Optional<SendMessageParams.Message.Delay> delay()
-
expiry
final Optional<SendMessageParams.Message.Expiry> expiry()
-
metadata
final Optional<SendMessageParams.Message.Metadata> metadata()
-
preferences
final Optional<SendMessageParams.Message.Preferences> preferences()
-
providers
final Optional<MessageProviders> providers()
-
routing
final Optional<SendMessageParams.Message.Routing> routing()
Customize which channels/providers Courier may deliver the message through.
-
timeout
final Optional<SendMessageParams.Message.Timeout> timeout()
-
to
final Optional<SendMessageParams.Message.To> to()
The recipient or a list of recipients of the message
-
_brandId
final JsonField<String> _brandId()
Returns the raw JSON value of brandId.
Unlike brandId, this method doesn't throw if the JSON field has an unexpected type.
-
_channels
final JsonField<MessageChannels> _channels()
Returns the raw JSON value of channels.
Unlike channels, this method doesn't throw if the JSON field has an unexpected type.
-
_content
final JsonField<SendMessageParams.Message.Content> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_context
final JsonField<MessageContext> _context()
Returns the raw JSON value of context.
Unlike context, this method doesn't throw if the JSON field has an unexpected type.
-
_data
final JsonField<SendMessageParams.Message.Data> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_delay
final JsonField<SendMessageParams.Message.Delay> _delay()
Returns the raw JSON value of delay.
Unlike delay, this method doesn't throw if the JSON field has an unexpected type.
-
_expiry
final JsonField<SendMessageParams.Message.Expiry> _expiry()
Returns the raw JSON value of expiry.
Unlike expiry, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<SendMessageParams.Message.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_preferences
final JsonField<SendMessageParams.Message.Preferences> _preferences()
Returns the raw JSON value of preferences.
Unlike preferences, this method doesn't throw if the JSON field has an unexpected type.
-
_providers
final JsonField<MessageProviders> _providers()
Returns the raw JSON value of providers.
Unlike providers, this method doesn't throw if the JSON field has an unexpected type.
-
_routing
final JsonField<SendMessageParams.Message.Routing> _routing()
Returns the raw JSON value of routing.
Unlike routing, 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.
-
_timeout
final JsonField<SendMessageParams.Message.Timeout> _timeout()
Returns the raw JSON value of timeout.
Unlike timeout, this method doesn't throw if the JSON field has an unexpected type.
-
_to
final JsonField<SendMessageParams.Message.To> _to()
Returns the raw JSON value of to.
Unlike to, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SendMessageParams.Message.Builder toBuilder()
-
validate
final SendMessageParams.Message validate()
-
builder
final static SendMessageParams.Message.Builder builder()
Returns a mutable builder for constructing an instance of Message.
-
-
-
-