@Stability(value=Stable)
public static interface CfnBot.MessageGroupProperty
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.*;
MessageGroupProperty messageGroupProperty = 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBot.MessageGroupProperty.Builder
A builder for
CfnBot.MessageGroupProperty |
static class |
CfnBot.MessageGroupProperty.Jsii$Proxy
An implementation for
CfnBot.MessageGroupProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBot.MessageGroupProperty.Builder |
builder() |
Object |
getMessage()
The primary message that Amazon Lex should send to the user.
|
default Object |
getVariations()
Message variations to send to the user.
|
@Stability(value=Stable) @NotNull Object getMessage()
@Stability(value=Stable) @Nullable default Object getVariations()
When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
@Stability(value=Stable) static CfnBot.MessageGroupProperty.Builder builder()
Copyright © 2022. All rights reserved.