Interface AudioInputEvent.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AudioInputEvent.Builder,AudioInputEvent>,SdkBuilder<AudioInputEvent.Builder,AudioInputEvent>,SdkPojo
- All Known Subinterfaces:
DefaultAudioInputEvent.Builder
- All Known Implementing Classes:
AudioInputEvent.BuilderImpl
- Enclosing class:
- AudioInputEvent
public static interface AudioInputEvent.Builder extends SdkPojo, CopyableBuilder<AudioInputEvent.Builder,AudioInputEvent>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AudioInputEvent.BuilderaudioChunk(SdkBytes audioChunk)An encoded stream of audio.AudioInputEvent.BuilderclientTimestampMillis(Long clientTimestampMillis)A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.AudioInputEvent.BuildercontentType(String contentType)The encoding used for the audio chunk.AudioInputEvent.BuildereventId(String eventId)A unique identifier that your application assigns to the event.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
audioChunk
AudioInputEvent.Builder audioChunk(SdkBytes audioChunk)
An encoded stream of audio.
- Parameters:
audioChunk- An encoded stream of audio.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentType
AudioInputEvent.Builder contentType(String contentType)
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- Parameters:
contentType- 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- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventId
AudioInputEvent.Builder eventId(String eventId)
A unique identifier that your application assigns to the event. You can use this to identify events in logs.
- Parameters:
eventId- A unique identifier that your application assigns to the event. You can use this to identify events in logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientTimestampMillis
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.
- Parameters:
clientTimestampMillis- A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-