Interface AudioResponseEvent.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AudioResponseEvent.Builder,AudioResponseEvent>,SdkBuilder<AudioResponseEvent.Builder,AudioResponseEvent>,SdkPojo
- All Known Subinterfaces:
DefaultAudioResponseEvent.Builder
- All Known Implementing Classes:
AudioResponseEvent.BuilderImpl
- Enclosing class:
- AudioResponseEvent
public static interface AudioResponseEvent.Builder extends SdkPojo, CopyableBuilder<AudioResponseEvent.Builder,AudioResponseEvent>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AudioResponseEvent.BuilderaudioChunk(SdkBytes audioChunk)A chunk of the audio to play.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.-
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, sdkFields
-
-
-
-
Method Detail
-
audioChunk
AudioResponseEvent.Builder audioChunk(SdkBytes audioChunk)
A chunk of the audio to play.
- Parameters:
audioChunk- A chunk of the audio to play.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentType
AudioResponseEvent.Builder contentType(String contentType)
The encoding of the audio chunk. This is the same as the encoding configure in the
contentTypefield of theConfigurationEvent.- 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.
-
eventId
AudioResponseEvent.Builder eventId(String eventId)
A 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.- 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.
-
-