Class CfnBot.MessageProperty
The object that provides message text and its type.
Inheritance
System.Object
CfnBot.MessageProperty
Implements
Namespace: Amazon.CDK.AWS.Lex
Assembly: Amazon.CDK.AWS.Lex.dll
Syntax (csharp)
public class MessageProperty : Object, CfnBot.IMessageProperty
Syntax (vb)
Public Class MessageProperty
Inherits Object
Implements CfnBot.IMessageProperty
Remarks
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-message.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lex;
var messageProperty = new MessageProperty {
CustomPayload = new CustomPayloadProperty {
Value = "value"
},
ImageResponseCard = new ImageResponseCardProperty {
Title = "title",
// the properties below are optional
Buttons = new [] { new ButtonProperty {
Text = "text",
Value = "value"
} },
ImageUrl = "imageUrl",
Subtitle = "subtitle"
},
PlainTextMessage = new PlainTextMessageProperty {
Value = "value"
},
SsmlMessage = new SSMLMessageProperty {
Value = "value"
}
};
Synopsis
Constructors
MessageProperty() |
Properties
CustomPayload | A message in a custom format defined by the client application. |
ImageResponseCard | A message that defines a response card that the client application can show to the user. |
PlainTextMessage | A message in plain text format. |
SsmlMessage | A message in Speech Synthesis Markup Language (SSML). |
Constructors
MessageProperty()
public MessageProperty()
Properties
CustomPayload
A message in a custom format defined by the client application.
public object CustomPayload { get; set; }
Property Value
System.Object
Remarks
ImageResponseCard
A message that defines a response card that the client application can show to the user.
public object ImageResponseCard { get; set; }
Property Value
System.Object
Remarks
PlainTextMessage
A message in plain text format.
public object PlainTextMessage { get; set; }
Property Value
System.Object
Remarks
SsmlMessage
A message in Speech Synthesis Markup Language (SSML).
public object SsmlMessage { get; set; }
Property Value
System.Object