@Generated(value="software.amazon.awssdk:codegen") public class PlaybackInterruptionEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PlaybackInterruptionEvent.Builder,PlaybackInterruptionEvent>, StartConversationResponseEventStream
Event sent from Amazon Lex V2 to indicate to the client application should stop playback of audio. For example, if the client is playing a prompt that asks for the user's telephone number, the user might start to say the phone number before the prompt is complete. Amazon Lex V2 sends this event to the client application to indicate that the user is responding and that Amazon Lex V2 is processing their input.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PlaybackInterruptionEvent.Builder |
protected static class |
PlaybackInterruptionEvent.BuilderImpl |
StartConversationResponseEventStream.EventTypeUNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
PlaybackInterruptionEvent(PlaybackInterruptionEvent.BuilderImpl builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(StartConversationResponseHandler.Visitor visitor)
Calls the appropriate visit method depending on the subtype of
PlaybackInterruptionEvent. |
static PlaybackInterruptionEvent.Builder |
builder() |
String |
causedByEventId()
The identifier of the event that contained the audio, DTMF, or text that caused the interruption.
|
PlaybackInterruptionEvent |
copy(Consumer<? super PlaybackInterruptionEvent.Builder> modifier) |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
eventId()
A unique identifier of the event sent by Amazon Lex V2.
|
PlaybackInterruptionReason |
eventReason()
Indicates the type of user input that Amazon Lex V2 detected.
|
String |
eventReasonAsString()
Indicates the type of user input that Amazon Lex V2 detected.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends PlaybackInterruptionEvent.Builder> |
serializableBuilderClass() |
PlaybackInterruptionEvent.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitaudioResponseEventBuilder, heartbeatEventBuilder, intentResultEventBuilder, playbackInterruptionEventBuilder, sdkEventType, textResponseEventBuilder, transcriptEventBuilderprotected PlaybackInterruptionEvent(PlaybackInterruptionEvent.BuilderImpl builder)
public final PlaybackInterruptionReason eventReason()
Indicates the type of user input that Amazon Lex V2 detected.
If the service returns an enum value that is not available in the current SDK version, eventReason will
return PlaybackInterruptionReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from eventReasonAsString().
PlaybackInterruptionReasonpublic final String eventReasonAsString()
Indicates the type of user input that Amazon Lex V2 detected.
If the service returns an enum value that is not available in the current SDK version, eventReason will
return PlaybackInterruptionReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from eventReasonAsString().
PlaybackInterruptionReasonpublic final String causedByEventId()
The identifier of the event that contained the audio, DTMF, or text that caused the interruption.
public final String eventId()
A unique identifier of the event sent by Amazon Lex V2. The identifier is in the form RESPONSE-N,
where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current
session.
RESPONSE-N, where N is a number starting with one and incremented for each event sent by
Amazon Lex V2 in the current session.public PlaybackInterruptionEvent.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PlaybackInterruptionEvent.Builder,PlaybackInterruptionEvent>public static PlaybackInterruptionEvent.Builder builder()
public static Class<? extends PlaybackInterruptionEvent.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final PlaybackInterruptionEvent copy(Consumer<? super PlaybackInterruptionEvent.Builder> modifier)
copy in interface ToCopyableBuilder<PlaybackInterruptionEvent.Builder,PlaybackInterruptionEvent>public void accept(StartConversationResponseHandler.Visitor visitor)
PlaybackInterruptionEvent.accept in interface StartConversationResponseEventStreamvisitor - Visitor to invoke.Copyright © 2022. All rights reserved.