Interface CfnBotPropsMixin.MessageProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBotPropsMixin.MessageProperty.Jsii$Proxy
- Enclosing class:
CfnBotPropsMixin
@Stability(Stable)
public static interface CfnBotPropsMixin.MessageProperty
extends software.amazon.jsii.JsiiSerializable
The object that provides message text and its type.
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.*;
MessageProperty messageProperty = 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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnBotPropsMixin.MessagePropertystatic final classAn implementation forCfnBotPropsMixin.MessageProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectA message in a custom format defined by the client application.default ObjectA message that defines a response card that the client application can show to the user.default ObjectA message in plain text format.default ObjectA message in Speech Synthesis Markup Language (SSML).Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCustomPayload
A message in a custom format defined by the client application.Returns union: either
IResolvableorCfnBotPropsMixin.CustomPayloadProperty- See Also:
-
getImageResponseCard
A message that defines a response card that the client application can show to the user.Returns union: either
IResolvableorCfnBotPropsMixin.ImageResponseCardProperty- See Also:
-
getPlainTextMessage
A message in plain text format.Returns union: either
IResolvableorCfnBotPropsMixin.PlainTextMessageProperty- See Also:
-
getSsmlMessage
A message in Speech Synthesis Markup Language (SSML).Returns union: either
IResolvableorCfnBotPropsMixin.SSMLMessageProperty- See Also:
-
builder
-