Class AudioInputEvent.BuilderImpl
- java.lang.Object
-
- software.amazon.awssdk.services.lexruntimev2.model.AudioInputEvent.BuilderImpl
-
- All Implemented Interfaces:
SdkPojo,AudioInputEvent.Builder,Buildable,CopyableBuilder<AudioInputEvent.Builder,AudioInputEvent>,SdkBuilder<AudioInputEvent.Builder,AudioInputEvent>
- Enclosing class:
- AudioInputEvent
protected static class AudioInputEvent.BuilderImpl extends Object implements AudioInputEvent.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilderImpl()protectedBuilderImpl(AudioInputEvent model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AudioInputEvent.BuilderaudioChunk(SdkBytes audioChunk)An encoded stream of audio.AudioInputEventbuild()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.ByteBuffergetAudioChunk()LonggetClientTimestampMillis()StringgetContentType()StringgetEventId()List<SdkField<?>>sdkFields()voidsetAudioChunk(ByteBuffer audioChunk)voidsetClientTimestampMillis(Long clientTimestampMillis)voidsetContentType(String contentType)voidsetEventId(String eventId)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
-
-
-
Constructor Detail
-
BuilderImpl
protected BuilderImpl()
-
BuilderImpl
protected BuilderImpl(AudioInputEvent model)
-
-
Method Detail
-
getAudioChunk
public final ByteBuffer getAudioChunk()
-
setAudioChunk
public final void setAudioChunk(ByteBuffer audioChunk)
-
audioChunk
public final AudioInputEvent.Builder audioChunk(SdkBytes audioChunk)
Description copied from interface:AudioInputEvent.BuilderAn encoded stream of audio.
- Specified by:
audioChunkin interfaceAudioInputEvent.Builder- Parameters:
audioChunk- An encoded stream of audio.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getContentType
public final String getContentType()
-
setContentType
public final void setContentType(String contentType)
-
contentType
public final AudioInputEvent.Builder contentType(String contentType)
Description copied from interface: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- Specified by:
contentTypein interfaceAudioInputEvent.Builder- 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.
-
getEventId
public final String getEventId()
-
setEventId
public final void setEventId(String eventId)
-
eventId
public final AudioInputEvent.Builder eventId(String eventId)
Description copied from interface:AudioInputEvent.BuilderA unique identifier that your application assigns to the event. You can use this to identify events in logs.
- Specified by:
eventIdin interfaceAudioInputEvent.Builder- 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.
-
getClientTimestampMillis
public final Long getClientTimestampMillis()
-
setClientTimestampMillis
public final void setClientTimestampMillis(Long clientTimestampMillis)
-
clientTimestampMillis
public final AudioInputEvent.Builder clientTimestampMillis(Long clientTimestampMillis)
Description copied from interface:AudioInputEvent.BuilderA timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
- Specified by:
clientTimestampMillisin interfaceAudioInputEvent.Builder- 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.
-
build
public AudioInputEvent build()
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<AudioInputEvent.Builder,AudioInputEvent>
-
-