@Stability(value=Stable)
public static interface CfnBot.ResponseSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
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.*;
ResponseSpecificationProperty responseSpecificationProperty = 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBot.ResponseSpecificationProperty.Builder
A builder for
CfnBot.ResponseSpecificationProperty |
static class |
CfnBot.ResponseSpecificationProperty.Jsii$Proxy
An implementation for
CfnBot.ResponseSpecificationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBot.ResponseSpecificationProperty.Builder |
builder() |
default Object |
getAllowInterrupt()
Indicates whether the user can interrupt a speech response from Amazon Lex .
|
Object |
getMessageGroupsList()
A collection of responses that Amazon Lex can send to the user.
|
@Stability(value=Stable) @NotNull Object getMessageGroupsList()
Amazon Lex chooses the actual response to send at runtime.
@Stability(value=Stable) @Nullable default Object getAllowInterrupt()
@Stability(value=Stable) static CfnBot.ResponseSpecificationProperty.Builder builder()
Copyright © 2022. All rights reserved.