Interface ChoiceItem
- All Superinterfaces:
ListItem<ChoiceItem>
A message component for interactive messages, containing a choice.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChoiceItem.Builder
builder()
Getting builderOptional parameter.getMedia()
Optional parameter.Optional parameter.getTitle()
Required parameter.
-
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
Getting builder- Returns:
- New Builder instance
-