Interface WhatsAppTemplateMessageBuilder.ButtonComponentBuilder
-
- All Known Implementing Classes:
WhatsAppTemplateMessageBuilderImpl.ButtonComponentBuilderImpl
- Enclosing interface:
- WhatsAppTemplateMessageBuilder
public static interface WhatsAppTemplateMessageBuilder.ButtonComponentBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WhatsAppTemplateMessageBuilder.ButtonComponentBuilderaddPayloadParameter(String payload)Adds payload parameter to the button.WhatsAppTemplateMessageBuilder.ButtonComponentBuilderaddTextParameter(String value)WhatsAppTemplateMessageBuilderbuildComponent()WhatsAppTemplateMessageBuilder.ButtonComponentBuilderindex(int index)Sets the index of the button.WhatsAppTemplateMessageBuilder.ButtonComponentBuildersubType(String subType)Sets the sub type of the button.
-
-
-
Method Detail
-
addTextParameter
WhatsAppTemplateMessageBuilder.ButtonComponentBuilder addTextParameter(String value)
-
addPayloadParameter
WhatsAppTemplateMessageBuilder.ButtonComponentBuilder addPayloadParameter(String payload)
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
WhatsAppTemplateMessageBuilder.ButtonComponentBuilder subType(String subType)
Sets the sub type of the button.- Parameters:
subType- of the button.- Returns:
- current builder.
-
index
WhatsAppTemplateMessageBuilder.ButtonComponentBuilder index(int index)
Sets the index of the button.- Parameters:
index- of the button.- Returns:
- current builder.
-
buildComponent
WhatsAppTemplateMessageBuilder buildComponent()
-
-