Class Component<T extends Component<T>>

java.lang.Object
com.whatsapp.api.domain.templates.Component<T>
Type Parameters:
T - the type parameter
Direct Known Subclasses:
BodyComponent, ButtonComponent, FooterComponent, HeaderComponent

public class Component<T extends Component<T>> extends Object
The parts of the message template.
  • Constructor Details

    • Component

      protected Component()
      Instantiates a new Component.
    • Component

      protected Component(ComponentType type)
      Instantiates a new Component.
      Parameters:
      type - the type
  • Method Details

    • getText

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

      public T setText(String text)
      Sets text.
      Parameters:
      text - the text
      Returns:
      the text
    • getExample

      public Example getExample()
      Gets example.
      Returns:
      the example
    • setExample

      public T setExample(Example example)
      Sets example.
      Parameters:
      example - the example
      Returns:
      the example
    • getType

      public ComponentType getType()
      Gets type.
      Returns:
      the type
    • setType

      public Component<T> setType(ComponentType type)
      Sets type.
      Parameters:
      type - the type
      Returns:
      the type