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 java.lang.Object implements WhatsAppTemplateMessageBuilder.ButtonComponentBuilder
-
Field Summary
Fields Modifier and Type Field Description protected int
index
protected java.util.List<WhatsAppButtonTemplateParameter>
parameterList
protected WhatsAppTemplateMessageBuilderImpl
parent
protected java.lang.String
subType
-
Constructor Summary
Constructors Constructor Description ButtonComponentBuilderImpl(WhatsAppTemplateMessageBuilderImpl parent)
-
Method Summary
Modifier and Type Method Description WhatsAppTemplateMessageBuilderImpl.ButtonComponentBuilderImpl
addPayloadParameter(java.lang.String value)
Adds payload parameter to the button.WhatsAppTemplateMessageBuilderImpl.ButtonComponentBuilderImpl
addTextParameter(java.lang.String value)
WhatsAppTemplateMessageBuilderImpl
buildComponent()
WhatsAppTemplateMessageBuilderImpl.ButtonComponentBuilderImpl
index(int index)
Sets the index of the button.WhatsAppTemplateMessageBuilderImpl.ButtonComponentBuilderImpl
subType(java.lang.String value)
Sets the sub type of the button.
-
Field Details
-
subType
protected java.lang.String subType -
index
protected int index -
parent
-
parameterList
-
-
Constructor Details
-
Method Details
-
subType
public WhatsAppTemplateMessageBuilderImpl.ButtonComponentBuilderImpl subType(java.lang.String value)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
public WhatsAppTemplateMessageBuilderImpl.ButtonComponentBuilderImpl addTextParameter(java.lang.String value)- Specified by:
addTextParameter
in interfaceWhatsAppTemplateMessageBuilder.ButtonComponentBuilder
- See Also:
WhatsAppTemplateMessageBuilder.ComponentBuilder.addTextParameter(String)
-
addPayloadParameter
public WhatsAppTemplateMessageBuilderImpl.ButtonComponentBuilderImpl addPayloadParameter(java.lang.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:
WhatsAppTemplateMessageBuilder.ComponentBuilder.buildComponent()
-