protected static class AudioInputEvent.BuilderImpl extends Object implements AudioInputEvent.Builder
| Modifier | Constructor and Description |
|---|---|
protected |
BuilderImpl() |
protected |
BuilderImpl(AudioInputEvent model) |
| Modifier and Type | Method and Description |
|---|---|
AudioInputEvent.Builder |
audioChunk(SdkBytes audioChunk)
An encoded stream of audio.
|
AudioInputEvent |
build() |
AudioInputEvent.Builder |
clientTimestampMillis(Long clientTimestampMillis)
A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
|
AudioInputEvent.Builder |
contentType(String contentType)
The encoding used for the audio chunk.
|
AudioInputEvent.Builder |
eventId(String eventId)
A unique identifier that your application assigns to the event.
|
ByteBuffer |
getAudioChunk() |
Long |
getClientTimestampMillis() |
String |
getContentType() |
String |
getEventId() |
List<SdkField<?>> |
sdkFields() |
void |
setAudioChunk(ByteBuffer audioChunk) |
void |
setClientTimestampMillis(Long clientTimestampMillis) |
void |
setContentType(String contentType) |
void |
setEventId(String eventId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalsBySdkFieldscopyapplyMutationprotected BuilderImpl()
protected BuilderImpl(AudioInputEvent model)
public final ByteBuffer getAudioChunk()
public final void setAudioChunk(ByteBuffer audioChunk)
public final AudioInputEvent.Builder audioChunk(SdkBytes audioChunk)
AudioInputEvent.BuilderAn encoded stream of audio.
audioChunk in interface AudioInputEvent.BuilderaudioChunk - An encoded stream of audio.public final String getContentType()
public final void setContentType(String contentType)
public final AudioInputEvent.Builder contentType(String contentType)
AudioInputEvent.BuilderThe encoding used for the audio chunk. You must use 8 KHz PCM 16-bit mono-channel little-endian format. The value of the field should be:
audio/lpcm; sample-rate=8000; sample-size-bits=16; channel-count=1; is-big-endian=false
contentType in interface AudioInputEvent.BuildercontentType - The encoding used for the audio chunk. You must use 8 KHz PCM 16-bit mono-channel little-endian
format. The value of the field should be:
audio/lpcm; sample-rate=8000; sample-size-bits=16; channel-count=1; is-big-endian=false
public final String getEventId()
public final void setEventId(String eventId)
public final AudioInputEvent.Builder eventId(String eventId)
AudioInputEvent.BuilderA unique identifier that your application assigns to the event. You can use this to identify events in logs.
eventId in interface AudioInputEvent.BuildereventId - A unique identifier that your application assigns to the event. You can use this to identify events in
logs.public final Long getClientTimestampMillis()
public final void setClientTimestampMillis(Long clientTimestampMillis)
public final AudioInputEvent.Builder clientTimestampMillis(Long clientTimestampMillis)
AudioInputEvent.BuilderA timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
clientTimestampMillis in interface AudioInputEvent.BuilderclientTimestampMillis - A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.public AudioInputEvent build()
build in interface Buildablebuild in interface SdkBuilder<AudioInputEvent.Builder,AudioInputEvent>Copyright © 2022. All rights reserved.