Interface RetrieveAndGenerateStreamResponseHandler.Builder

All Superinterfaces:
EventStreamResponseHandler.Builder<RetrieveAndGenerateStreamResponse,RetrieveAndGenerateStreamResponseOutput,RetrieveAndGenerateStreamResponseHandler.Builder>
Enclosing interface:
RetrieveAndGenerateStreamResponseHandler

@Generated("software.amazon.awssdk:codegen") public static interface RetrieveAndGenerateStreamResponseHandler.Builder extends EventStreamResponseHandler.Builder<RetrieveAndGenerateStreamResponse,RetrieveAndGenerateStreamResponseOutput,RetrieveAndGenerateStreamResponseHandler.Builder>
Builder for RetrieveAndGenerateStreamResponseHandler. This can be used to create the RetrieveAndGenerateStreamResponseHandler in a more functional way. Directly implementing the RetrieveAndGenerateStreamResponseHandler 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.