Class ButtonTextParameter

java.lang.Object
com.whatsapp.api.domain.messages.Parameter
com.whatsapp.api.domain.messages.ButtonTextParameter

public class ButtonTextParameter extends Parameter
The type Button text parameter. Required for URL buttons. Developer-provided suffix that is appended to the predefined prefix URL in the template.
See Also:
  • Constructor Details

    • ButtonTextParameter

      public ButtonTextParameter()
      Instantiates a new Button text parameter.
    • ButtonTextParameter

      public ButtonTextParameter(String text)
      Instantiates a new Button text parameter.
      Parameters:
      text - the text. Required for URL buttons. Developer-provided suffix that is appended to the predefined prefix URL in the template.
  • Method Details

    • getText

      public String getText()
      Gets text.
      Returns:
      the text
    • setText

      public ButtonTextParameter setText(String text)
      Sets text.
      Parameters:
      text - the text. Required for URL buttons. Developer-provided suffix that is appended to the predefined prefix URL in the template.
      Returns:
      the text