Interface CfnBotPropsMixin.ResponseSpecificationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBotPropsMixin.ResponseSpecificationProperty.Jsii$Proxy
- Enclosing class:
CfnBotPropsMixin
@Stability(Stable)
public static interface CfnBotPropsMixin.ResponseSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
Specifies a list of message groups that Amazon Lex uses to respond the user input.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.lex.*;
ResponseSpecificationProperty responseSpecificationProperty = ResponseSpecificationProperty.builder()
.allowInterrupt(false)
.messageGroupsList(List.of(MessageGroupProperty.builder()
.message(MessageProperty.builder()
.customPayload(CustomPayloadProperty.builder()
.value("value")
.build())
.imageResponseCard(ImageResponseCardProperty.builder()
.buttons(List.of(ButtonProperty.builder()
.text("text")
.value("value")
.build()))
.imageUrl("imageUrl")
.subtitle("subtitle")
.title("title")
.build())
.plainTextMessage(PlainTextMessageProperty.builder()
.value("value")
.build())
.ssmlMessage(SSMLMessageProperty.builder()
.value("value")
.build())
.build())
.variations(List.of(MessageProperty.builder()
.customPayload(CustomPayloadProperty.builder()
.value("value")
.build())
.imageResponseCard(ImageResponseCardProperty.builder()
.buttons(List.of(ButtonProperty.builder()
.text("text")
.value("value")
.build()))
.imageUrl("imageUrl")
.subtitle("subtitle")
.title("title")
.build())
.plainTextMessage(PlainTextMessageProperty.builder()
.value("value")
.build())
.ssmlMessage(SSMLMessageProperty.builder()
.value("value")
.build())
.build()))
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnBotPropsMixin.ResponseSpecificationPropertystatic final classAn implementation forCfnBotPropsMixin.ResponseSpecificationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAllowInterrupt
Indicates whether the user can interrupt a speech response from Amazon Lex.Returns union: either
BooleanorIResolvable- See Also:
-
getMessageGroupsList
A collection of responses that Amazon Lex can send to the user.Amazon Lex chooses the actual response to send at runtime.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnBotPropsMixin.MessageGroupProperty>- See Also:
-
builder
-