@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Message extends Object implements Serializable, Cloneable, StructuredPojo
The object that provides message text and it's type.
Constructor and Description |
---|
Message() |
Modifier and Type | Method and Description |
---|---|
Message |
clone() |
boolean |
equals(Object obj) |
CustomPayload |
getCustomPayload()
A message in a custom format defined by the client application.
|
ImageResponseCard |
getImageResponseCard()
A message that defines a response card that the client application can show to the user.
|
PlainTextMessage |
getPlainTextMessage()
A message in plain text format.
|
SSMLMessage |
getSsmlMessage()
A message in Speech Synthesis Markup Language (SSML).
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCustomPayload(CustomPayload customPayload)
A message in a custom format defined by the client application.
|
void |
setImageResponseCard(ImageResponseCard imageResponseCard)
A message that defines a response card that the client application can show to the user.
|
void |
setPlainTextMessage(PlainTextMessage plainTextMessage)
A message in plain text format.
|
void |
setSsmlMessage(SSMLMessage ssmlMessage)
A message in Speech Synthesis Markup Language (SSML).
|
String |
toString()
Returns a string representation of this object.
|
Message |
withCustomPayload(CustomPayload customPayload)
A message in a custom format defined by the client application.
|
Message |
withImageResponseCard(ImageResponseCard imageResponseCard)
A message that defines a response card that the client application can show to the user.
|
Message |
withPlainTextMessage(PlainTextMessage plainTextMessage)
A message in plain text format.
|
Message |
withSsmlMessage(SSMLMessage ssmlMessage)
A message in Speech Synthesis Markup Language (SSML).
|
public void setPlainTextMessage(PlainTextMessage plainTextMessage)
A message in plain text format.
plainTextMessage
- A message in plain text format.public PlainTextMessage getPlainTextMessage()
A message in plain text format.
public Message withPlainTextMessage(PlainTextMessage plainTextMessage)
A message in plain text format.
plainTextMessage
- A message in plain text format.public void setCustomPayload(CustomPayload customPayload)
A message in a custom format defined by the client application.
customPayload
- A message in a custom format defined by the client application.public CustomPayload getCustomPayload()
A message in a custom format defined by the client application.
public Message withCustomPayload(CustomPayload customPayload)
A message in a custom format defined by the client application.
customPayload
- A message in a custom format defined by the client application.public void setSsmlMessage(SSMLMessage ssmlMessage)
A message in Speech Synthesis Markup Language (SSML).
ssmlMessage
- A message in Speech Synthesis Markup Language (SSML).public SSMLMessage getSsmlMessage()
A message in Speech Synthesis Markup Language (SSML).
public Message withSsmlMessage(SSMLMessage ssmlMessage)
A message in Speech Synthesis Markup Language (SSML).
ssmlMessage
- A message in Speech Synthesis Markup Language (SSML).public void setImageResponseCard(ImageResponseCard imageResponseCard)
A message that defines a response card that the client application can show to the user.
imageResponseCard
- A message that defines a response card that the client application can show to the user.public ImageResponseCard getImageResponseCard()
A message that defines a response card that the client application can show to the user.
public Message withImageResponseCard(ImageResponseCard imageResponseCard)
A message that defines a response card that the client application can show to the user.
imageResponseCard
- A message that defines a response card that the client application can show to the user.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.