Class SendMessageParams.Message.Builder
-
- All Implemented Interfaces:
public final class SendMessageParams.Message.BuilderA builder for Message.
-
-
Method Summary
-
-
Method Detail
-
brandId
final SendMessageParams.Message.Builder brandId(String brandId)
-
brandId
final SendMessageParams.Message.Builder brandId(Optional<String> brandId)
Alias for calling Builder.brandId with
brandId.orElse(null).
-
brandId
final SendMessageParams.Message.Builder brandId(JsonField<String> brandId)
Sets Builder.brandId to an arbitrary JSON value.
You should usually call Builder.brandId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
channels
final SendMessageParams.Message.Builder channels(MessageChannels channels)
Define run-time configuration for channels. Valid ChannelId's: email, sms, push, inbox, direct_message, banner, webhook.
-
channels
final SendMessageParams.Message.Builder channels(Optional<MessageChannels> channels)
Alias for calling Builder.channels with
channels.orElse(null).
-
channels
final SendMessageParams.Message.Builder channels(JsonField<MessageChannels> channels)
Sets Builder.channels to an arbitrary JSON value.
You should usually call Builder.channels with a well-typed MessageChannels value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final SendMessageParams.Message.Builder content(SendMessageParams.Message.Content content)
Describes content that will work for email, inbox, push, chat, or any channel id.
-
content
final SendMessageParams.Message.Builder content(JsonField<SendMessageParams.Message.Content> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed Content value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final SendMessageParams.Message.Builder content(ElementalContentSugar elementalContentSugar)
Alias for calling content with
Content.ofElementalContentSugar(elementalContentSugar).
-
content
final SendMessageParams.Message.Builder content(ElementalContent elemental)
Alias for calling content with
Content.ofElemental(elemental).
-
context
final SendMessageParams.Message.Builder context(MessageContext context)
-
context
final SendMessageParams.Message.Builder context(Optional<MessageContext> context)
Alias for calling Builder.context with
context.orElse(null).
-
context
final SendMessageParams.Message.Builder context(JsonField<MessageContext> context)
Sets Builder.context to an arbitrary JSON value.
You should usually call Builder.context with a well-typed MessageContext value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
data
final SendMessageParams.Message.Builder data(SendMessageParams.Message.Data data)
-
data
final SendMessageParams.Message.Builder data(Optional<SendMessageParams.Message.Data> data)
Alias for calling Builder.data with
data.orElse(null).
-
data
final SendMessageParams.Message.Builder data(JsonField<SendMessageParams.Message.Data> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed Data value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
delay
final SendMessageParams.Message.Builder delay(SendMessageParams.Message.Delay delay)
-
delay
final SendMessageParams.Message.Builder delay(Optional<SendMessageParams.Message.Delay> delay)
Alias for calling Builder.delay with
delay.orElse(null).
-
delay
final SendMessageParams.Message.Builder delay(JsonField<SendMessageParams.Message.Delay> delay)
Sets Builder.delay to an arbitrary JSON value.
You should usually call Builder.delay with a well-typed Delay value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
expiry
final SendMessageParams.Message.Builder expiry(SendMessageParams.Message.Expiry expiry)
-
expiry
final SendMessageParams.Message.Builder expiry(Optional<SendMessageParams.Message.Expiry> expiry)
Alias for calling Builder.expiry with
expiry.orElse(null).
-
expiry
final SendMessageParams.Message.Builder expiry(JsonField<SendMessageParams.Message.Expiry> expiry)
Sets Builder.expiry to an arbitrary JSON value.
You should usually call Builder.expiry with a well-typed Expiry value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
metadata
final SendMessageParams.Message.Builder metadata(SendMessageParams.Message.Metadata metadata)
-
metadata
final SendMessageParams.Message.Builder metadata(Optional<SendMessageParams.Message.Metadata> metadata)
Alias for calling Builder.metadata with
metadata.orElse(null).
-
metadata
final SendMessageParams.Message.Builder metadata(JsonField<SendMessageParams.Message.Metadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
preferences
final SendMessageParams.Message.Builder preferences(SendMessageParams.Message.Preferences preferences)
-
preferences
final SendMessageParams.Message.Builder preferences(Optional<SendMessageParams.Message.Preferences> preferences)
Alias for calling Builder.preferences with
preferences.orElse(null).
-
preferences
final SendMessageParams.Message.Builder preferences(JsonField<SendMessageParams.Message.Preferences> preferences)
Sets Builder.preferences to an arbitrary JSON value.
You should usually call Builder.preferences with a well-typed Preferences value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
providers
final SendMessageParams.Message.Builder providers(MessageProviders providers)
-
providers
final SendMessageParams.Message.Builder providers(Optional<MessageProviders> providers)
Alias for calling Builder.providers with
providers.orElse(null).
-
providers
final SendMessageParams.Message.Builder providers(JsonField<MessageProviders> providers)
Sets Builder.providers to an arbitrary JSON value.
You should usually call Builder.providers with a well-typed MessageProviders value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
routing
final SendMessageParams.Message.Builder routing(SendMessageParams.Message.Routing routing)
Customize which channels/providers Courier may deliver the message through.
-
routing
final SendMessageParams.Message.Builder routing(Optional<SendMessageParams.Message.Routing> routing)
Alias for calling Builder.routing with
routing.orElse(null).
-
routing
final SendMessageParams.Message.Builder routing(JsonField<SendMessageParams.Message.Routing> routing)
Sets Builder.routing to an arbitrary JSON value.
You should usually call Builder.routing with a well-typed Routing value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
template
final SendMessageParams.Message.Builder template(String template)
-
template
final SendMessageParams.Message.Builder template(Optional<String> template)
Alias for calling Builder.template with
template.orElse(null).
-
template
final SendMessageParams.Message.Builder template(JsonField<String> template)
Sets Builder.template to an arbitrary JSON value.
You should usually call Builder.template with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
timeout
final SendMessageParams.Message.Builder timeout(SendMessageParams.Message.Timeout timeout)
-
timeout
final SendMessageParams.Message.Builder timeout(Optional<SendMessageParams.Message.Timeout> timeout)
Alias for calling Builder.timeout with
timeout.orElse(null).
-
timeout
final SendMessageParams.Message.Builder timeout(JsonField<SendMessageParams.Message.Timeout> timeout)
Sets Builder.timeout to an arbitrary JSON value.
You should usually call Builder.timeout with a well-typed Timeout value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
to
final SendMessageParams.Message.Builder to(SendMessageParams.Message.To to)
The recipient or a list of recipients of the message
-
to
final SendMessageParams.Message.Builder to(Optional<SendMessageParams.Message.To> to)
Alias for calling Builder.to with
to.orElse(null).
-
to
final SendMessageParams.Message.Builder to(JsonField<SendMessageParams.Message.To> to)
Sets Builder.to to an arbitrary JSON value.
You should usually call Builder.to with a well-typed To value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
to
final SendMessageParams.Message.Builder to(UserRecipient userRecipient)
Alias for calling to with
To.ofUserRecipient(userRecipient).
-
to
final SendMessageParams.Message.Builder to(AudienceRecipient audienceRecipient)
Alias for calling to with
To.ofAudienceRecipient(audienceRecipient).
-
to
final SendMessageParams.Message.Builder to(ListRecipient listRecipient)
Alias for calling to with
To.ofListRecipient(listRecipient).
-
to
final SendMessageParams.Message.Builder to(ListPatternRecipient listPatternRecipient)
Alias for calling to with
To.ofListPatternRecipient(listPatternRecipient).
-
to
final SendMessageParams.Message.Builder to(SlackRecipient slackRecipient)
Alias for calling to with
To.ofSlackRecipient(slackRecipient).
-
to
final SendMessageParams.Message.Builder to(MsTeamsRecipient msTeamsRecipient)
Alias for calling to with
To.ofMsTeamsRecipient(msTeamsRecipient).
-
to
final SendMessageParams.Message.Builder to(PagerdutyRecipient pagerdutyRecipient)
Alias for calling to with
To.ofPagerdutyRecipient(pagerdutyRecipient).
-
to
final SendMessageParams.Message.Builder to(WebhookRecipient webhookRecipient)
Alias for calling to with
To.ofWebhookRecipient(webhookRecipient).
-
toOfRecipients
final SendMessageParams.Message.Builder toOfRecipients(List<SendMessageParams.Message.To.Recipient> recipients)
Alias for calling to with
To.ofRecipients(recipients).
-
additionalProperties
final SendMessageParams.Message.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final SendMessageParams.Message.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final SendMessageParams.Message.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final SendMessageParams.Message.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final SendMessageParams.Message.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final SendMessageParams.Message build()
Returns an immutable instance of Message.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-