public interface WhatsAppInteractiveMessageBuilder
| Modifier and Type | Interface and Description |
|---|---|
static interface |
WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
Builder for finishing building the Button message details and sending the message.
|
static interface |
WhatsAppInteractiveMessageBuilder.ListMessageBuilder
Builder for finishing building the List message details and sending the message.
|
static interface |
WhatsAppInteractiveMessageBuilder.SectionBuilder
Builder for building a list message section.
|
static interface |
WhatsAppInteractiveMessageBuilder.SectionRowBuilder
Builder for building a row in a section for list interactive messages.
|
| Modifier and Type | Method and Description |
|---|---|
WhatsAppInteractiveMessageBuilder |
body(String bodyText)
The main content of the interactive message body
|
WhatsAppInteractiveMessageBuilder |
businessAccountId(String businessAccountId)
The ID of the business account for the external user
|
WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder |
button()
Create a button message.
|
WhatsAppInteractiveMessageBuilder |
externalUserId(String externalUserId)
The ID of the external user to which the message should be sent to
|
WhatsAppInteractiveMessageBuilder |
footer(String footerText)
The footer text that would be visible to the user
|
WhatsAppInteractiveMessageBuilder.ListMessageBuilder |
list(String actionContent)
Create a List message with the action content visible to the user.
|
WhatsAppInteractiveMessageBuilder |
mediaHeader(String mediaId)
The content item ID for the media header.
|
WhatsAppInteractiveMessageBuilder |
messageId(String messageId)
The ID of the message being sent (can be used for logging purposes)
|
WhatsAppInteractiveMessageBuilder |
textHeader(String headerText)
The header text that would be visible to the user.
|
WhatsAppInteractiveMessageBuilder externalUserId(String externalUserId)
externalUserId - the external user IDWhatsAppInteractiveMessageBuilder businessAccountId(String businessAccountId)
businessAccountId - the business account IDWhatsAppInteractiveMessageBuilder messageId(String messageId)
messageId - the message IDWhatsAppInteractiveMessageBuilder textHeader(String headerText)
headerText - the header textWhatsAppInteractiveMessageBuilder mediaHeader(String mediaId)
mediaId - the media headerWhatsAppInteractiveMessageBuilder body(String bodyText)
bodyText - the main contentWhatsAppInteractiveMessageBuilder footer(String footerText)
footerText - the footer contentWhatsAppInteractiveMessageBuilder.ButtonMessageBuilder button()
WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder.send() to actually send the message.WhatsAppInteractiveMessageBuilder.ListMessageBuilder list(String actionContent)
WhatsAppInteractiveMessageBuilder.ListMessageBuilder.send() to actually send the message.actionContent - the content of the button visible ot the user