@Stability(value=Stable)
public static interface CfnBot.MessageProperty
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.*;
MessageProperty messageProperty = 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBot.MessageProperty.Builder
A builder for
CfnBot.MessageProperty |
static class |
CfnBot.MessageProperty.Jsii$Proxy
An implementation for
CfnBot.MessageProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBot.MessageProperty.Builder |
builder() |
default Object |
getCustomPayload()
A message in a custom format defined by the client application.
|
default Object |
getImageResponseCard()
A message that defines a response card that the client application can show to the user.
|
default Object |
getPlainTextMessage()
A message in plain text format.
|
default Object |
getSsmlMessage()
A message in Speech Synthesis Markup Language (SSML) format.
|
@Stability(value=Stable) @Nullable default Object getCustomPayload()
@Stability(value=Stable) @Nullable default Object getImageResponseCard()
@Stability(value=Stable) @Nullable default Object getPlainTextMessage()
@Stability(value=Stable) @Nullable default Object getSsmlMessage()
@Stability(value=Stable) static CfnBot.MessageProperty.Builder builder()
CfnBot.MessageProperty.Builder of CfnBot.MessagePropertyCopyright © 2022. All rights reserved.