Interface StartSpeechSynthesisStreamResponseHandler.Builder

All Superinterfaces:
EventStreamResponseHandler.Builder<StartSpeechSynthesisStreamResponse,StartSpeechSynthesisStreamEventStream,StartSpeechSynthesisStreamResponseHandler.Builder>
Enclosing interface:
StartSpeechSynthesisStreamResponseHandler

@Generated("software.amazon.awssdk:codegen") public static interface StartSpeechSynthesisStreamResponseHandler.Builder extends EventStreamResponseHandler.Builder<StartSpeechSynthesisStreamResponse,StartSpeechSynthesisStreamEventStream,StartSpeechSynthesisStreamResponseHandler.Builder>
Builder for StartSpeechSynthesisStreamResponseHandler. This can be used to create the StartSpeechSynthesisStreamResponseHandler in a more functional way. Directly implementing the StartSpeechSynthesisStreamResponseHandler interface is possible but requires subscribing to the event publisher, requesting data via the Subscription, resetting state on retry, and freeing resources on error; the builder handles all of this automatically.