Interface WhatsAppTemplateMessageBuilder.ButtonComponentBuilder
- All Known Implementing Classes:
WhatsAppTemplateMessageBuilderImpl.ButtonComponentBuilderImpl
- Enclosing interface:
- WhatsAppTemplateMessageBuilder
public static interface WhatsAppTemplateMessageBuilder.ButtonComponentBuilder
-
Method Summary
Modifier and Type Method Description WhatsAppTemplateMessageBuilder.ButtonComponentBuilder
addPayloadParameter(java.lang.String payload)
Adds payload parameter to the button.WhatsAppTemplateMessageBuilder.ButtonComponentBuilder
addTextParameter(java.lang.String value)
WhatsAppTemplateMessageBuilder
buildComponent()
WhatsAppTemplateMessageBuilder.ButtonComponentBuilder
index(int index)
Sets the index of the button.WhatsAppTemplateMessageBuilder.ButtonComponentBuilder
subType(java.lang.String subType)
Sets the sub type of the button.
-
Method Details
-
addTextParameter
-
addPayloadParameter
WhatsAppTemplateMessageBuilder.ButtonComponentBuilder addPayloadParameter(java.lang.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
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()
-