Interface InvokeAgentRuntimeCommandResponseHandler.Builder
- All Superinterfaces:
EventStreamResponseHandler.Builder<InvokeAgentRuntimeCommandResponse,InvokeAgentRuntimeCommandStreamOutput, InvokeAgentRuntimeCommandResponseHandler.Builder>
- Enclosing interface:
InvokeAgentRuntimeCommandResponseHandler
@Generated("software.amazon.awssdk:codegen")
public static interface InvokeAgentRuntimeCommandResponseHandler.Builder
extends EventStreamResponseHandler.Builder<InvokeAgentRuntimeCommandResponse,InvokeAgentRuntimeCommandStreamOutput,InvokeAgentRuntimeCommandResponseHandler.Builder>
Builder for
InvokeAgentRuntimeCommandResponseHandler. This can be used to create the
InvokeAgentRuntimeCommandResponseHandler in a more functional way, you may also directly implement the
InvokeAgentRuntimeCommandResponseHandler interface if preferred.-
Method Summary
Methods inherited from interface software.amazon.awssdk.awscore.eventstream.EventStreamResponseHandler.Builder
onComplete, onError, onEventStream, onResponse, publisherTransformer, subscriber, subscriber
-
Method Details
-
subscriber
InvokeAgentRuntimeCommandResponseHandler.Builder subscriber(InvokeAgentRuntimeCommandResponseHandler.Visitor visitor) Sets the subscriber to thePublisherof events. The givenInvokeAgentRuntimeCommandResponseHandler.Visitorwill be called for each event received by the publisher. Events are requested sequentially after each event is processed. If you need more control over the backpressure strategy consider usingEventStreamResponseHandler.Builder.subscriber(java.util.function.Supplier)instead.- Parameters:
visitor- Visitor that will be invoked for each incoming event.- Returns:
- This builder for method chaining
-
build
- Returns:
- A
InvokeAgentRuntimeCommandResponseHandlerimplementation that can be used in the InvokeAgentRuntimeCommand API call.
-