@Generated(value="software.amazon.awssdk:codegen") public final class UtteranceSpecification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UtteranceSpecification.Builder,UtteranceSpecification>
An object containing information about a specific utterance.
| Modifier and Type | Class and Description |
|---|---|
static interface |
UtteranceSpecification.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
associatedIntentName()
The name of the intent that the utterance is associated to.
|
String |
associatedSlotName()
The name of the slot that the utterance is associated to.
|
Long |
audioVoiceDurationMillis()
The duration in milliseconds of the audio associated with the utterance.
|
String |
botAliasId()
The identifier of the alias of the bot that the utterance was made to.
|
String |
botResponseAudioVoiceId()
The identifier for the audio of the bot response.
|
List<UtteranceBotResponse> |
botResponses()
A list of objects containing information about the bot response to the utterance.
|
String |
botVersion()
The version of the bot that the utterance was made to.
|
static UtteranceSpecification.Builder |
builder() |
String |
channel()
The channel that is integrated with the bot that the utterance was made to.
|
Instant |
conversationEndTime()
The date and time when the conversation in which the utterance took place ended.
|
Instant |
conversationStartTime()
The date and time when the conversation in which the utterance took place began.
|
String |
dialogActionType()
The type of dialog action that the utterance is associated to.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasBotResponses()
For responses, this returns true if the service returned a value for the BotResponses property.
|
int |
hashCode() |
String |
inputType()
The input type of the utterance.
|
IntentState |
intentState()
The state of the intent that the utterance is associated to.
|
String |
intentStateAsString()
The state of the intent that the utterance is associated to.
|
String |
localeId()
The locale of the bot that the utterance was made to.
|
AnalyticsModality |
mode()
The mode of the session.
|
String |
modeAsString()
The mode of the session.
|
String |
outputType()
The output type of the utterance.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends UtteranceSpecification.Builder> |
serializableBuilderClass() |
String |
sessionId()
The identifier of the session that the utterance was made in.
|
String |
slotsFilledInSession()
The slots that have been filled in the session by the time of the utterance.
|
UtteranceSpecification.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
utterance()
The text of the utterance.
|
String |
utteranceRequestId()
The identifier of the request associated with the utterance.
|
Instant |
utteranceTimestamp()
The date and time when the utterance took place.
|
Boolean |
utteranceUnderstood()
Specifies whether the bot understood the utterance or not.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String botAliasId()
The identifier of the alias of the bot that the utterance was made to.
public final String botVersion()
The version of the bot that the utterance was made to.
public final String localeId()
The locale of the bot that the utterance was made to.
public final String sessionId()
The identifier of the session that the utterance was made in.
public final String channel()
The channel that is integrated with the bot that the utterance was made to.
public final AnalyticsModality mode()
The mode of the session. The possible values are as follows:
Speech – The session consisted of spoken dialogue.
Text – The session consisted of written dialogue.
DTMF – The session consisted of touch-tone keypad (Dual Tone Multi-Frequency) key presses.
MultiMode – The session consisted of multiple modes.
If the service returns an enum value that is not available in the current SDK version, mode will return
AnalyticsModality.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
modeAsString().
Speech – The session consisted of spoken dialogue.
Text – The session consisted of written dialogue.
DTMF – The session consisted of touch-tone keypad (Dual Tone Multi-Frequency) key presses.
MultiMode – The session consisted of multiple modes.
AnalyticsModalitypublic final String modeAsString()
The mode of the session. The possible values are as follows:
Speech – The session consisted of spoken dialogue.
Text – The session consisted of written dialogue.
DTMF – The session consisted of touch-tone keypad (Dual Tone Multi-Frequency) key presses.
MultiMode – The session consisted of multiple modes.
If the service returns an enum value that is not available in the current SDK version, mode will return
AnalyticsModality.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
modeAsString().
Speech – The session consisted of spoken dialogue.
Text – The session consisted of written dialogue.
DTMF – The session consisted of touch-tone keypad (Dual Tone Multi-Frequency) key presses.
MultiMode – The session consisted of multiple modes.
AnalyticsModalitypublic final Instant conversationStartTime()
The date and time when the conversation in which the utterance took place began. A conversation is defined as a
unique combination of a sessionId and an originatingRequestId.
sessionId and an originatingRequestId.public final Instant conversationEndTime()
The date and time when the conversation in which the utterance took place ended. A conversation is defined as a
unique combination of a sessionId and an originatingRequestId.
sessionId and an originatingRequestId.public final String utterance()
The text of the utterance.
public final Instant utteranceTimestamp()
The date and time when the utterance took place.
public final Long audioVoiceDurationMillis()
The duration in milliseconds of the audio associated with the utterance.
public final Boolean utteranceUnderstood()
Specifies whether the bot understood the utterance or not.
public final String inputType()
The input type of the utterance. The possible values are as follows:
PCM format: audio data must be in little-endian byte order.
audio/l16; rate=16000; channels=1
audio/x-l16; sample-rate=16000; channel-count=1
audio/lpcm; sample-rate=8000; sample-size-bits=16; channel-count=1; is-big-endian=false
Opus format
audio/x-cbr-opus-with-preamble;preamble-size=0;bit-rate=256000;frame-size-milliseconds=4
Text format
text/plain; charset=utf-8
PCM format: audio data must be in little-endian byte order.
audio/l16; rate=16000; channels=1
audio/x-l16; sample-rate=16000; channel-count=1
audio/lpcm; sample-rate=8000; sample-size-bits=16; channel-count=1; is-big-endian=false
Opus format
audio/x-cbr-opus-with-preamble;preamble-size=0;bit-rate=256000;frame-size-milliseconds=4
Text format
text/plain; charset=utf-8
public final String outputType()
The output type of the utterance. The possible values are as follows:
audio/mpeg
audio/ogg
audio/pcm (16 KHz)
audio/ (defaults to mpeg)
text/plain; charset=utf-8
audio/mpeg
audio/ogg
audio/pcm (16 KHz)
audio/ (defaults to mpeg)
text/plain; charset=utf-8
public final String associatedIntentName()
The name of the intent that the utterance is associated to.
public final String associatedSlotName()
The name of the slot that the utterance is associated to.
public final IntentState intentState()
The state of the intent that the utterance is associated to.
If the service returns an enum value that is not available in the current SDK version, intentState will
return IntentState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
intentStateAsString().
IntentStatepublic final String intentStateAsString()
The state of the intent that the utterance is associated to.
If the service returns an enum value that is not available in the current SDK version, intentState will
return IntentState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
intentStateAsString().
IntentStatepublic final String dialogActionType()
The type of dialog action that the utterance is associated to. See the type field in DialogAction for
more information.
type field in DialogAction
for more information.public final String botResponseAudioVoiceId()
The identifier for the audio of the bot response.
public final String slotsFilledInSession()
The slots that have been filled in the session by the time of the utterance.
public final String utteranceRequestId()
The identifier of the request associated with the utterance.
public final boolean hasBotResponses()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<UtteranceBotResponse> botResponses()
A list of objects containing information about the bot response to the utterance.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasBotResponses() method.
public UtteranceSpecification.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UtteranceSpecification.Builder,UtteranceSpecification>public static UtteranceSpecification.Builder builder()
public static Class<? extends UtteranceSpecification.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.