@Generated(value="software.amazon.awssdk:codegen") public class AudioResponseEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AudioResponseEvent.Builder,AudioResponseEvent>, StartConversationResponseEventStream
An event sent from Amazon Lex V2 to your client application containing audio to play to the user.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AudioResponseEvent.Builder |
protected static class |
AudioResponseEvent.BuilderImpl |
StartConversationResponseEventStream.EventTypeUNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
AudioResponseEvent(AudioResponseEvent.BuilderImpl builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(StartConversationResponseHandler.Visitor visitor)
Calls the appropriate visit method depending on the subtype of
AudioResponseEvent. |
SdkBytes |
audioChunk()
A chunk of the audio to play.
|
static AudioResponseEvent.Builder |
builder() |
String |
contentType()
The encoding of the audio chunk.
|
AudioResponseEvent |
copy(Consumer<? super AudioResponseEvent.Builder> modifier) |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
eventId()
A unique identifier of the event sent by Amazon Lex V2.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends AudioResponseEvent.Builder> |
serializableBuilderClass() |
AudioResponseEvent.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 AudioResponseEvent(AudioResponseEvent.BuilderImpl builder)
public final SdkBytes audioChunk()
A chunk of the audio to play.
public final String contentType()
The encoding of the audio chunk. This is the same as the encoding configure in the contentType field
of the ConfigurationEvent.
contentType field of the ConfigurationEvent.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 AudioResponseEvent.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AudioResponseEvent.Builder,AudioResponseEvent>public static AudioResponseEvent.Builder builder()
public static Class<? extends AudioResponseEvent.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final AudioResponseEvent copy(Consumer<? super AudioResponseEvent.Builder> modifier)
copy in interface ToCopyableBuilder<AudioResponseEvent.Builder,AudioResponseEvent>public void accept(StartConversationResponseHandler.Visitor visitor)
AudioResponseEvent.accept in interface StartConversationResponseEventStreamvisitor - Visitor to invoke.Copyright © 2023. All rights reserved.