public class WhatsAppInteractiveMessageBuilderImpl extends Object implements WhatsAppInteractiveMessageBuilder
Modifier and Type | Class and Description |
---|---|
class |
WhatsAppInteractiveMessageBuilderImpl.ButtonMessageBuilderImpl |
class |
WhatsAppInteractiveMessageBuilderImpl.ListMessageBuilderImpl |
static class |
WhatsAppInteractiveMessageBuilderImpl.SectionBuilderImpl |
static class |
WhatsAppInteractiveMessageBuilderImpl.SectionRowBuilderImpl |
WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder, WhatsAppInteractiveMessageBuilder.ListMessageBuilder, WhatsAppInteractiveMessageBuilder.SectionBuilder, WhatsAppInteractiveMessageBuilder.SectionRowBuilder
Modifier and Type | Field and Description |
---|---|
protected WhatsAppInteractiveMessageDto |
interactiveMessage |
protected WhatsAppJmsExternalConversationSystemAdapter |
whatsAppJmsExternalConversationSystemAdapter |
Constructor and Description |
---|
WhatsAppInteractiveMessageBuilderImpl(WhatsAppJmsExternalConversationSystemAdapter whatsAppJmsExternalConversationSystemAdapter) |
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.
|
protected final WhatsAppJmsExternalConversationSystemAdapter whatsAppJmsExternalConversationSystemAdapter
protected final WhatsAppInteractiveMessageDto interactiveMessage
public WhatsAppInteractiveMessageBuilderImpl(WhatsAppJmsExternalConversationSystemAdapter whatsAppJmsExternalConversationSystemAdapter)
public WhatsAppInteractiveMessageBuilder externalUserId(String externalUserId)
WhatsAppInteractiveMessageBuilder
externalUserId
in interface WhatsAppInteractiveMessageBuilder
externalUserId
- the external user IDpublic WhatsAppInteractiveMessageBuilder businessAccountId(String businessAccountId)
WhatsAppInteractiveMessageBuilder
businessAccountId
in interface WhatsAppInteractiveMessageBuilder
businessAccountId
- the business account IDpublic WhatsAppInteractiveMessageBuilder messageId(String messageId)
WhatsAppInteractiveMessageBuilder
messageId
in interface WhatsAppInteractiveMessageBuilder
messageId
- the message IDpublic WhatsAppInteractiveMessageBuilder textHeader(String headerText)
WhatsAppInteractiveMessageBuilder
textHeader
in interface WhatsAppInteractiveMessageBuilder
headerText
- the header textpublic WhatsAppInteractiveMessageBuilder mediaHeader(String mediaId)
WhatsAppInteractiveMessageBuilder
mediaHeader
in interface WhatsAppInteractiveMessageBuilder
mediaId
- the media headerpublic WhatsAppInteractiveMessageBuilder body(String bodyText)
WhatsAppInteractiveMessageBuilder
body
in interface WhatsAppInteractiveMessageBuilder
bodyText
- the main contentpublic WhatsAppInteractiveMessageBuilder footer(String footerText)
WhatsAppInteractiveMessageBuilder
footer
in interface WhatsAppInteractiveMessageBuilder
footerText
- the footer contentpublic WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder button()
WhatsAppInteractiveMessageBuilder
WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder.send()
to actually send the message.button
in interface WhatsAppInteractiveMessageBuilder
public WhatsAppInteractiveMessageBuilder.ListMessageBuilder list(String actionContent)
WhatsAppInteractiveMessageBuilder
WhatsAppInteractiveMessageBuilder.ListMessageBuilder.send()
to actually send the message.list
in interface WhatsAppInteractiveMessageBuilder
actionContent
- the content of the button visible ot the user