@Generated(value="software.amazon.awssdk:codegen") public final class UtteranceBotResponse extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UtteranceBotResponse.Builder,UtteranceBotResponse>
An object that contains a response to the utterance from the bot.
| Modifier and Type | Class and Description |
|---|---|
static interface |
UtteranceBotResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static UtteranceBotResponse.Builder |
builder() |
String |
content()
The text of the response to the utterance from the bot.
|
UtteranceContentType |
contentType()
The type of the response.
|
String |
contentTypeAsString()
The type of the response.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
ImageResponseCard |
imageResponseCard()
Returns the value of the ImageResponseCard property for this object.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends UtteranceBotResponse.Builder> |
serializableBuilderClass() |
UtteranceBotResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String content()
The text of the response to the utterance from the bot.
public final 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.
If the service returns an enum value that is not available in the current SDK version, contentType will
return UtteranceContentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from contentTypeAsString().
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.
UtteranceContentTypepublic final String contentTypeAsString()
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.
If the service returns an enum value that is not available in the current SDK version, contentType will
return UtteranceContentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from contentTypeAsString().
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.
UtteranceContentTypepublic final ImageResponseCard imageResponseCard()
public UtteranceBotResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UtteranceBotResponse.Builder,UtteranceBotResponse>public static UtteranceBotResponse.Builder builder()
public static Class<? extends UtteranceBotResponse.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.