Interface CfnBot.MessageProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnBot.MessageProperty.Jsii$Proxy
Enclosing class:
CfnBot

@Stability(Stable) public static interface CfnBot.MessageProperty extends software.amazon.jsii.JsiiSerializable
The object that provides message text and its type.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.lex.*;
 MessageProperty messageProperty = MessageProperty.builder()
         .customPayload(CustomPayloadProperty.builder()
                 .value("value")
                 .build())
         .imageResponseCard(ImageResponseCardProperty.builder()
                 .title("title")
                 // the properties below are optional
                 .buttons(List.of(ButtonProperty.builder()
                         .text("text")
                         .value("value")
                         .build()))
                 .imageUrl("imageUrl")
                 .subtitle("subtitle")
                 .build())
         .plainTextMessage(PlainTextMessageProperty.builder()
                 .value("value")
                 .build())
         .ssmlMessage(SSMLMessageProperty.builder()
                 .value("value")
                 .build())
         .build();
 
  • Method Details

    • getCustomPayload

      @Stability(Stable) @Nullable default Object getCustomPayload()
      A message in a custom format defined by the client application.
    • getImageResponseCard

      @Stability(Stable) @Nullable default Object getImageResponseCard()
      A message that defines a response card that the client application can show to the user.
    • getPlainTextMessage

      @Stability(Stable) @Nullable default Object getPlainTextMessage()
      A message in plain text format.
    • getSsmlMessage

      @Stability(Stable) @Nullable default Object getSsmlMessage()
      A message in Speech Synthesis Markup Language (SSML).
    • builder

      @Stability(Stable) static CfnBot.MessageProperty.Builder builder()
      Returns:
      a CfnBot.MessageProperty.Builder of CfnBot.MessageProperty