Interface WhatsAppTemplateMessageBuilder.ButtonComponentBuilder
- All Known Implementing Classes:
WhatsAppTemplateMessageBuilderImpl.ButtonComponentBuilderImpl
- Enclosing interface:
- WhatsAppTemplateMessageBuilder
public static interface WhatsAppTemplateMessageBuilder.ButtonComponentBuilder
-
Method Summary
Modifier and TypeMethodDescriptionaddPayloadParameter
(String payload) Adds payload parameter to the button.addTextParameter
(String value) index
(int index) Sets the index of the button.Sets the sub type of the button.
-
Method Details
-
addTextParameter
-
addPayloadParameter
Adds payload parameter to the button. Developer-defined payload that will be returned when the button is clicked in addition to the display text on the button.Note: The parameter must be added in the correct order according to the template message.
- Parameters:
payload
- of the button.- Returns:
- current builder.
-
subType
Sets the sub type of the button.- Parameters:
subType
- of the button.- Returns:
- current builder.
-
index
Sets the index of the button.- Parameters:
index
- of the button.- Returns:
- current builder.
-
buildComponent
WhatsAppTemplateMessageBuilder buildComponent()
-