Class WhatsAppTemplateMessageBuilderImpl.ButtonComponentBuilderImpl
java.lang.Object
com.flowable.engage.external.system.whatsapp.WhatsAppTemplateMessageBuilderImpl.ButtonComponentBuilderImpl
- All Implemented Interfaces:
WhatsAppTemplateMessageBuilder.ButtonComponentBuilder
- Enclosing class:
- WhatsAppTemplateMessageBuilderImpl
public static class WhatsAppTemplateMessageBuilderImpl.ButtonComponentBuilderImpl
extends Object
implements WhatsAppTemplateMessageBuilder.ButtonComponentBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected final List<WhatsAppButtonTemplateParameter>protected WhatsAppTemplateMessageBuilderImplprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPayloadParameter(String value) 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.
-
Field Details
-
subType
-
index
protected int index -
parent
-
parameterList
-
-
Constructor Details
-
ButtonComponentBuilderImpl
-
-
Method Details
-
subType
Description copied from interface:WhatsAppTemplateMessageBuilder.ButtonComponentBuilderSets the sub type of the button.- Specified by:
subTypein interfaceWhatsAppTemplateMessageBuilder.ButtonComponentBuilder- Parameters:
value- of the button.- Returns:
- current builder.
-
index
Description copied from interface:WhatsAppTemplateMessageBuilder.ButtonComponentBuilderSets the index of the button.- Specified by:
indexin interfaceWhatsAppTemplateMessageBuilder.ButtonComponentBuilder- Parameters:
index- of the button.- Returns:
- current builder.
-
addTextParameter
- Specified by:
addTextParameterin interfaceWhatsAppTemplateMessageBuilder.ButtonComponentBuilder- See Also:
-
addPayloadParameter
public WhatsAppTemplateMessageBuilderImpl.ButtonComponentBuilderImpl addPayloadParameter(String value) Description copied from interface:WhatsAppTemplateMessageBuilder.ButtonComponentBuilderAdds 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.
- Specified by:
addPayloadParameterin interfaceWhatsAppTemplateMessageBuilder.ButtonComponentBuilder- Parameters:
value- of the button.- Returns:
- current builder.
-
buildComponent
- Specified by:
buildComponentin interfaceWhatsAppTemplateMessageBuilder.ButtonComponentBuilder- See Also:
-