Interface InvokeAgentResponseHandler.Builder

All Superinterfaces:
EventStreamResponseHandler.Builder<InvokeAgentResponse,ResponseStream,InvokeAgentResponseHandler.Builder>
Enclosing interface:
InvokeAgentResponseHandler

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