Class AudioResponseEvent.BuilderImpl
- java.lang.Object
-
- software.amazon.awssdk.services.lexruntimev2.model.AudioResponseEvent.BuilderImpl
-
- All Implemented Interfaces:
SdkPojo,AudioResponseEvent.Builder,Buildable,CopyableBuilder<AudioResponseEvent.Builder,AudioResponseEvent>,SdkBuilder<AudioResponseEvent.Builder,AudioResponseEvent>
- Enclosing class:
- AudioResponseEvent
protected static class AudioResponseEvent.BuilderImpl extends Object implements AudioResponseEvent.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilderImpl()protectedBuilderImpl(AudioResponseEvent model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AudioResponseEvent.BuilderaudioChunk(SdkBytes audioChunk)A chunk of the audio to play.AudioResponseEventbuild()AudioResponseEvent.BuildercontentType(String contentType)The encoding of the audio chunk.AudioResponseEvent.BuildereventId(String eventId)A unique identifier of the event sent by Amazon Lex V2.ByteBuffergetAudioChunk()StringgetContentType()StringgetEventId()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()voidsetAudioChunk(ByteBuffer audioChunk)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(AudioResponseEvent model)
-
-
Method Detail
-
getAudioChunk
public final ByteBuffer getAudioChunk()
-
setAudioChunk
public final void setAudioChunk(ByteBuffer audioChunk)
-
audioChunk
public final AudioResponseEvent.Builder audioChunk(SdkBytes audioChunk)
Description copied from interface:AudioResponseEvent.BuilderA chunk of the audio to play.
- Specified by:
audioChunkin interfaceAudioResponseEvent.Builder- Parameters:
audioChunk- A chunk of the audio to play.- 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 AudioResponseEvent.Builder contentType(String contentType)
Description copied from interface:AudioResponseEvent.BuilderThe encoding of the audio chunk. This is the same as the encoding configure in the
contentTypefield of theConfigurationEvent.- Specified by:
contentTypein interfaceAudioResponseEvent.Builder- Parameters:
contentType- The encoding of the audio chunk. This is the same as the encoding configure in thecontentTypefield of theConfigurationEvent.- 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 AudioResponseEvent.Builder eventId(String eventId)
Description copied from interface:AudioResponseEvent.BuilderA 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.- Specified by:
eventIdin interfaceAudioResponseEvent.Builder- Parameters:
eventId- A unique identifier of the event sent by Amazon Lex V2. The identifier is in the formRESPONSE-N, where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
build
public AudioResponseEvent build()
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<AudioResponseEvent.Builder,AudioResponseEvent>
-
sdkFieldNameToField
public Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-