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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
addButton()
Add the previously configured button.WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
id(String id)
The unique identifier of the button.void
send()
Perform the sending of the interactive message to the WhatsApp Adapter.WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
title(String title)
The user visible text on the button.
-
-
-
Method Detail
-
id
WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder id(String 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:
addButton()
-
title
WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder title(String title)
The user visible text on the button.- Parameters:
title
- the button content- See Also:
addButton()
-
addButton
WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder 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.
-
-