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 int
protected final List<WhatsAppButtonTemplateParameter>
protected WhatsAppTemplateMessageBuilderImpl
protected 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.ButtonComponentBuilder
Sets the sub type of the button.- Specified by:
subType
in interfaceWhatsAppTemplateMessageBuilder.ButtonComponentBuilder
- Parameters:
value
- of the button.- Returns:
- current builder.
-
index
Description copied from interface:WhatsAppTemplateMessageBuilder.ButtonComponentBuilder
Sets the index of the button.- Specified by:
index
in interfaceWhatsAppTemplateMessageBuilder.ButtonComponentBuilder
- Parameters:
index
- of the button.- Returns:
- current builder.
-
addTextParameter
- Specified by:
addTextParameter
in interfaceWhatsAppTemplateMessageBuilder.ButtonComponentBuilder
- See Also:
-
addPayloadParameter
public WhatsAppTemplateMessageBuilderImpl.ButtonComponentBuilderImpl addPayloadParameter(String value) Description copied from interface:WhatsAppTemplateMessageBuilder.ButtonComponentBuilder
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.
- Specified by:
addPayloadParameter
in interfaceWhatsAppTemplateMessageBuilder.ButtonComponentBuilder
- Parameters:
value
- of the button.- Returns:
- current builder.
-
buildComponent
- Specified by:
buildComponent
in interfaceWhatsAppTemplateMessageBuilder.ButtonComponentBuilder
- See Also:
-