Interface WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
- All Known Implementing Classes:
WhatsAppInteractiveMessageBuilderImpl.ButtonMessageBuilderImpl
- Enclosing interface:
- WhatsAppInteractiveMessageBuilder
public static interface WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
Builder for finishing building the Button message details and sending the message.
-
Method Summary
Modifier and TypeMethodDescriptionAdd the previously configured button.The unique identifier of the button.void
send()
Perform the sending of the interactive message to the WhatsApp Adapter.The user visible text on the button.
-
Method Details
-
id
The unique identifier of the button. This will be returned by WhatsApp when the user clicks on the button.- Parameters:
id
- the button unique identifier- See Also:
-
title
The user visible text on the button.- Parameters:
title
- the button content- See Also:
-
addButton
Add the previously configured button. If not invoked then theid(String)
andtitle(String)
operations or noop -
send
void send()Perform the sending of the interactive message to the WhatsApp Adapter.
-