public static interface UtteranceBotResponse.Builder extends SdkPojo, CopyableBuilder<UtteranceBotResponse.Builder,UtteranceBotResponse>
| Modifier and Type | Method and Description |
|---|---|
UtteranceBotResponse.Builder |
content(String content)
The text of the response to the utterance from the bot.
|
UtteranceBotResponse.Builder |
contentType(String contentType)
The type of the response.
|
UtteranceBotResponse.Builder |
contentType(UtteranceContentType contentType)
The type of the response.
|
default UtteranceBotResponse.Builder |
imageResponseCard(Consumer<ImageResponseCard.Builder> imageResponseCard)
Sets the value of the ImageResponseCard property for this object.
|
UtteranceBotResponse.Builder |
imageResponseCard(ImageResponseCard imageResponseCard)
Sets the value of the ImageResponseCard property for this object.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildUtteranceBotResponse.Builder content(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.UtteranceBotResponse.Builder contentType(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,
UtteranceContentTypeUtteranceBotResponse.Builder contentType(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,
UtteranceContentTypeUtteranceBotResponse.Builder imageResponseCard(ImageResponseCard imageResponseCard)
imageResponseCard - The new value for the ImageResponseCard property for this object.default UtteranceBotResponse.Builder imageResponseCard(Consumer<ImageResponseCard.Builder> imageResponseCard)
ImageResponseCard.Builder avoiding the
need to create one manually via ImageResponseCard.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to imageResponseCard(ImageResponseCard).
imageResponseCard - a consumer that will call methods on ImageResponseCard.BuilderimageResponseCard(ImageResponseCard)Copyright © 2023. All rights reserved.