Class UtteranceBotResponse
- java.lang.Object
-
- software.amazon.awssdk.services.lexmodelsv2.model.UtteranceBotResponse
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<UtteranceBotResponse.Builder,UtteranceBotResponse>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUtteranceBotResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UtteranceBotResponse.Builderbuilder()Stringcontent()The text of the response to the utterance from the bot.UtteranceContentTypecontentType()The type of the response.StringcontentTypeAsString()The type of the response.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ImageResponseCardimageResponseCard()Returns the value of the ImageResponseCard property for this object.List<SdkField<?>>sdkFields()static Class<? extends UtteranceBotResponse.Builder>serializableBuilderClass()UtteranceBotResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
content
public final String content()
The text of the response to the utterance from the bot.
- Returns:
- The text of the response to the utterance from the bot.
-
contentType
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,
contentTypewill returnUtteranceContentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcontentTypeAsString().- Returns:
- 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.
-
- See Also:
UtteranceContentType
-
-
contentTypeAsString
public 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,
contentTypewill returnUtteranceContentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcontentTypeAsString().- Returns:
- 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.
-
- See Also:
UtteranceContentType
-
-
imageResponseCard
public final ImageResponseCard imageResponseCard()
Returns the value of the ImageResponseCard property for this object.- Returns:
- The value of the ImageResponseCard property for this object.
-
toBuilder
public UtteranceBotResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UtteranceBotResponse.Builder,UtteranceBotResponse>
-
builder
public static UtteranceBotResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends UtteranceBotResponse.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-