@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UtteranceBotResponse extends Object implements Serializable, Cloneable, StructuredPojo
An object that contains a response to the utterance from the bot.
Constructor and Description |
---|
UtteranceBotResponse() |
Modifier and Type | Method and Description |
---|---|
UtteranceBotResponse |
clone() |
boolean |
equals(Object obj) |
String |
getContent()
The text of the response to the utterance from the bot.
|
String |
getContentType()
The type of the response.
|
ImageResponseCard |
getImageResponseCard() |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContent(String content)
The text of the response to the utterance from the bot.
|
void |
setContentType(String contentType)
The type of the response.
|
void |
setImageResponseCard(ImageResponseCard imageResponseCard) |
String |
toString()
Returns a string representation of this object.
|
UtteranceBotResponse |
withContent(String content)
The text of the response to the utterance from the bot.
|
UtteranceBotResponse |
withContentType(String contentType)
The type of the response.
|
UtteranceBotResponse |
withContentType(UtteranceContentType contentType)
The type of the response.
|
UtteranceBotResponse |
withImageResponseCard(ImageResponseCard imageResponseCard) |
public void setContent(String content)
The text of the response to the utterance from the bot.
content
- The text of the response to the utterance from the bot.public String getContent()
The text of the response to the utterance from the bot.
public UtteranceBotResponse withContent(String content)
The text of the response to the utterance from the bot.
content
- The text of the response to the utterance from the bot.public void setContentType(String contentType)
The type of the response. The following values are possible:
PlainText
– A plain text string.
CustomPayload
– A response string that you can customize to include data or metadata for your
application.
SSML
– A string that includes Speech Synthesis Markup Language to customize the audio response.
ImageResponseCard
– An image with buttons that the customer can select. See ImageResponseCard for more information.
contentType
- The type of the response. The following values are possible:
PlainText
– A plain text string.
CustomPayload
– A response string that you can customize to include data or metadata for your
application.
SSML
– A string that includes Speech Synthesis Markup Language to customize the audio
response.
ImageResponseCard
– An image with buttons that the customer can select. See ImageResponseCard for more information.
UtteranceContentType
public String getContentType()
The type of the response. The following values are possible:
PlainText
– A plain text string.
CustomPayload
– A response string that you can customize to include data or metadata for your
application.
SSML
– A string that includes Speech Synthesis Markup Language to customize the audio response.
ImageResponseCard
– An image with buttons that the customer can select. See ImageResponseCard for more information.
PlainText
– A plain text string.
CustomPayload
– A response string that you can customize to include data or metadata for
your application.
SSML
– A string that includes Speech Synthesis Markup Language to customize the audio
response.
ImageResponseCard
– An image with buttons that the customer can select. See ImageResponseCard for more information.
UtteranceContentType
public UtteranceBotResponse withContentType(String contentType)
The type of the response. The following values are possible:
PlainText
– A plain text string.
CustomPayload
– A response string that you can customize to include data or metadata for your
application.
SSML
– A string that includes Speech Synthesis Markup Language to customize the audio response.
ImageResponseCard
– An image with buttons that the customer can select. See ImageResponseCard for more information.
contentType
- The type of the response. The following values are possible:
PlainText
– A plain text string.
CustomPayload
– A response string that you can customize to include data or metadata for your
application.
SSML
– A string that includes Speech Synthesis Markup Language to customize the audio
response.
ImageResponseCard
– An image with buttons that the customer can select. See ImageResponseCard for more information.
UtteranceContentType
public UtteranceBotResponse withContentType(UtteranceContentType contentType)
The type of the response. The following values are possible:
PlainText
– A plain text string.
CustomPayload
– A response string that you can customize to include data or metadata for your
application.
SSML
– A string that includes Speech Synthesis Markup Language to customize the audio response.
ImageResponseCard
– An image with buttons that the customer can select. See ImageResponseCard for more information.
contentType
- The type of the response. The following values are possible:
PlainText
– A plain text string.
CustomPayload
– A response string that you can customize to include data or metadata for your
application.
SSML
– A string that includes Speech Synthesis Markup Language to customize the audio
response.
ImageResponseCard
– An image with buttons that the customer can select. See ImageResponseCard for more information.
UtteranceContentType
public void setImageResponseCard(ImageResponseCard imageResponseCard)
imageResponseCard
- public ImageResponseCard getImageResponseCard()
public UtteranceBotResponse withImageResponseCard(ImageResponseCard imageResponseCard)
imageResponseCard
- public String toString()
toString
in class Object
Object.toString()
public UtteranceBotResponse clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.