All Superinterfaces:
ListItem<ChoiceItem>

public interface ChoiceItem extends ListItem<ChoiceItem>
A message component for interactive messages, containing a choice.
  • Method Details

    • getTitle

      String getTitle()
      Required parameter. Title for the choice item.
      Returns:
      title
    • getDescription

      String getDescription()
      Optional parameter. The description (or subtitle) of this choice item.
      Returns:
      description
    • getMedia

      MediaMessage getMedia()
      Optional parameter. The media of this choice item.
      Returns:
      media
    • getPostbackData

      String getPostbackData()
      Optional parameter. Postback data that will be returned in the MO if the user selects this option.
      Returns:
      postbackData
    • builder

      static ChoiceItem.Builder builder()
      Getting builder
      Returns:
      New Builder instance