protected static class AudioResponseEvent.BuilderImpl extends Object implements AudioResponseEvent.Builder
| Modifier | Constructor and Description |
|---|---|
protected |
BuilderImpl() |
protected |
BuilderImpl(AudioResponseEvent model) |
| Modifier and Type | Method and Description |
|---|---|
AudioResponseEvent.Builder |
audioChunk(SdkBytes audioChunk)
A chunk of the audio to play.
|
AudioResponseEvent |
build() |
AudioResponseEvent.Builder |
contentType(String contentType)
The encoding of the audio chunk.
|
AudioResponseEvent.Builder |
eventId(String eventId)
A unique identifier of the event sent by Amazon Lex.
|
ByteBuffer |
getAudioChunk() |
String |
getContentType() |
String |
getEventId() |
List<SdkField<?>> |
sdkFields() |
void |
setAudioChunk(ByteBuffer audioChunk) |
void |
setContentType(String contentType) |
void |
setEventId(String eventId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalsBySdkFieldscopyapplyMutationprotected BuilderImpl()
protected BuilderImpl(AudioResponseEvent model)
public final ByteBuffer getAudioChunk()
public final AudioResponseEvent.Builder audioChunk(SdkBytes audioChunk)
AudioResponseEvent.BuilderA chunk of the audio to play.
audioChunk in interface AudioResponseEvent.BuilderaudioChunk - A chunk of the audio to play.public final void setAudioChunk(ByteBuffer audioChunk)
public final String getContentType()
public final AudioResponseEvent.Builder contentType(String contentType)
AudioResponseEvent.Builder
The encoding of the audio chunk. This is the same as the encoding configure in the contentType
field of the ConfigurationEvent.
contentType in interface AudioResponseEvent.BuildercontentType - The encoding of the audio chunk. This is the same as the encoding configure in the
contentType field of the ConfigurationEvent.public final void setContentType(String contentType)
public final String getEventId()
public final AudioResponseEvent.Builder eventId(String eventId)
AudioResponseEvent.Builder
A unique identifier of the event sent by Amazon Lex. 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 in the current
session.
eventId in interface AudioResponseEvent.BuildereventId - A unique identifier of the event sent by Amazon Lex. 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 in the current session.public final void setEventId(String eventId)
public AudioResponseEvent build()
build in interface Buildablebuild in interface SdkBuilder<AudioResponseEvent.Builder,AudioResponseEvent>Copyright © 2021. All rights reserved.