Class ButtonComponent

java.lang.Object
com.whatsapp.api.domain.templates.Component<ButtonComponent>
com.whatsapp.api.domain.templates.ButtonComponent

public class ButtonComponent extends Component<ButtonComponent>
The type Button component.
  • Constructor Details

    • ButtonComponent

      public ButtonComponent()
      Instantiates a new Button component.
  • Method Details

    • getButtons

      public List<Button> getButtons()
      Gets buttons.
      Returns:
      the buttons
    • setButtons

      public ButtonComponent setButtons(List<Button> buttons)
      Sets buttons.
      Parameters:
      buttons - the buttons
      Returns:
      the buttons
    • addButton

      public ButtonComponent addButton(Button button)
      Add button button component.
      Parameters:
      button - the button
      Returns:
      the button component