Interface ChatResponseHandler.Builder

All Superinterfaces:
EventStreamResponseHandler.Builder<ChatResponse,ChatOutputStream,ChatResponseHandler.Builder>
Enclosing interface:
ChatResponseHandler

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