Class UrlButton

java.lang.Object
com.whatsapp.api.domain.templates.Button
com.whatsapp.api.domain.templates.UrlButton

public class UrlButton extends Button
The type Url button.
  • Constructor Details

    • UrlButton

      protected UrlButton()
      Instantiates a new Url button.
    • UrlButton

      public UrlButton(String text)
      Instantiates a new Url button.
      Parameters:
      text - the text
  • Method Details

    • getUrl

      public String getUrl()
      Gets url.
      Returns:
      the url
    • setUrl

      public UrlButton setUrl(String url)
      Sets url.
      Parameters:
      url - the url
      Returns:
      the url
    • getUrlExample

      public List<String> getUrlExample()
      Gets url example.
      Returns:
      the url example
    • setUrlExample

      public UrlButton setUrlExample(List<String> urlExample)
      Sets url example.
      Parameters:
      urlExample - the url example
      Returns:
      the url example