Interface CfnBot.StillWaitingResponseSpecificationProperty

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

@Stability(Stable) public static interface CfnBot.StillWaitingResponseSpecificationProperty extends software.amazon.jsii.JsiiSerializable
Defines the messages that Amazon Lex sends to a user to remind them that the bot is waiting for a response.

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.*;
 StillWaitingResponseSpecificationProperty stillWaitingResponseSpecificationProperty = StillWaitingResponseSpecificationProperty.builder()
         .frequencyInSeconds(123)
         .messageGroupsList(List.of(MessageGroupProperty.builder()
                 .message(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())
                 // the properties below are optional
                 .variations(List.of(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()))
                 .build()))
         .timeoutInSeconds(123)
         // the properties below are optional
         .allowInterrupt(false)
         .build();
 
  • Method Details

    • getFrequencyInSeconds

      @Stability(Stable) @NotNull Number getFrequencyInSeconds()
      How often a message should be sent to the user.

      Minimum of 1 second, maximum of 5 minutes.

    • getMessageGroupsList

      @Stability(Stable) @NotNull Object getMessageGroupsList()
      One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user.
    • getTimeoutInSeconds

      @Stability(Stable) @NotNull Number getTimeoutInSeconds()
      If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
    • getAllowInterrupt

      @Stability(Stable) @Nullable default Object getAllowInterrupt()
      Indicates that the user can interrupt the response by speaking while the message is being played.
    • builder

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