public static interface CfnBot.WaitAndContinueSpecificationProperty
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.*; WaitAndContinueSpecificationProperty waitAndContinueSpecificationProperty = WaitAndContinueSpecificationProperty.builder() .continueResponse(ResponseSpecificationProperty.builder() .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())) // the properties below are optional .allowInterrupt(false) .build()) .waitingResponse(ResponseSpecificationProperty.builder() .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())) // the properties below are optional .allowInterrupt(false) .build()) // the properties below are optional .isActive(false) .stillWaitingResponse(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()) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnBot.WaitAndContinueSpecificationProperty.Builder
A builder for
CfnBot.WaitAndContinueSpecificationProperty |
static class |
CfnBot.WaitAndContinueSpecificationProperty.Jsii$Proxy
An implementation for
CfnBot.WaitAndContinueSpecificationProperty |
Modifier and Type | Method and Description |
---|---|
static CfnBot.WaitAndContinueSpecificationProperty.Builder |
builder() |
java.lang.Object |
getContinueResponse()
The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation.
|
default java.lang.Object |
getIsActive()
Specifies whether the bot will wait for a user to respond.
|
default java.lang.Object |
getStillWaitingResponse()
A response that Amazon Lex sends periodically to the user to indicate that the bot is still waiting for input from the user.
|
java.lang.Object |
getWaitingResponse()
The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue.
|
java.lang.Object getContinueResponse()
java.lang.Object getWaitingResponse()
default java.lang.Object getIsActive()
When this field is false, wait and continue responses for a slot aren't used. If the IsActive
field isn't specified, the default is true.
default java.lang.Object getStillWaitingResponse()
static CfnBot.WaitAndContinueSpecificationProperty.Builder builder()