public interface WhatsAppTemplateMessageBuilder
Modifier and Type | Interface and Description |
---|---|
static interface |
WhatsAppTemplateMessageBuilder.ButtonComponentBuilder |
static interface |
WhatsAppTemplateMessageBuilder.ComponentBuilder |
Modifier and Type | Method and Description |
---|---|
WhatsAppTemplateMessageBuilder |
addTemplateTextParameter(String parameter)
Add a positional text parameter to the body.
|
WhatsAppTemplateMessageBuilder |
addTemplateTextParameters(Collection<String> parameters)
Add positional text parameters to the body.
|
WhatsAppTemplateMessageBuilder.ComponentBuilder |
body()
Initiates creation of the body.
|
WhatsAppTemplateMessageBuilder |
businessAccountId(String businessAccountId)
The id of the business account that should be used when sending out the message.
|
WhatsAppTemplateMessageBuilder.ButtonComponentBuilder |
button()
Initiates creation of the button.
|
WhatsAppTemplateMessageBuilder |
externalUserId(String externalUserId)
The id of the recipient of the message.
|
WhatsAppTemplateMessageBuilder.ComponentBuilder |
footer()
Initiates creation of the footer.
|
WhatsAppTemplateMessageBuilder.ComponentBuilder |
header()
Initiates creation of the header.
|
WhatsAppTemplateMessageBuilder |
language(String language)
The language of the template that should be used.
|
WhatsAppTemplateMessageBuilder |
messageId(String messageId)
The id of the reference message within the Engage system.
|
void |
send()
Perform the send of the template message.
|
WhatsAppTemplateMessageBuilder |
templateId(String templateId)
The id of the template that is registered on the WhatsApp side
|
WhatsAppTemplateMessageBuilder |
timeToLive(Duration timeToLive)
Time To Live (TTL) duration.
|
WhatsAppTemplateMessageBuilder timeToLive(Duration timeToLive)
WhatsAppTemplateMessageBuilder templateId(String templateId)
WhatsAppTemplateMessageBuilder language(String language)
WhatsAppTemplateMessageBuilder addTemplateTextParameter(String parameter)
Short circuit for calling body()
, then WhatsAppTemplateMessageBuilder.ComponentBuilder.addTextParameter(String)
and then WhatsAppTemplateMessageBuilder.ComponentBuilder.buildComponent()
Note: The parameter must be added in the correct order according to the template message.
WhatsAppTemplateMessageBuilder addTemplateTextParameters(Collection<String> parameters)
Short circuit for calling body()
, then WhatsAppTemplateMessageBuilder.ComponentBuilder.addTextParameter(String)
and then WhatsAppTemplateMessageBuilder.ComponentBuilder.buildComponent()
Note: The parameters must be added in the correct order according to the template message.
WhatsAppTemplateMessageBuilder externalUserId(String externalUserId)
WhatsAppTemplateMessageBuilder businessAccountId(String businessAccountId)
WhatsAppTemplateMessageBuilder messageId(String messageId)
void send()
WhatsAppTemplateMessageBuilder.ComponentBuilder header()
WhatsAppTemplateMessageBuilder.ComponentBuilder.buildComponent()
method to build and add it to the parent builder.WhatsAppTemplateMessageBuilder.ComponentBuilder body()
WhatsAppTemplateMessageBuilder.ComponentBuilder.buildComponent()
method to build and add it to the parent builder.WhatsAppTemplateMessageBuilder.ComponentBuilder footer()
WhatsAppTemplateMessageBuilder.ComponentBuilder.buildComponent()
method to build and add it to the parent builder.WhatsAppTemplateMessageBuilder.ButtonComponentBuilder button()
WhatsAppTemplateMessageBuilder.ComponentBuilder.buildComponent()
method to build and add it to the parent builder.