Interface OptimizePromptResponseHandler

All Superinterfaces:
EventStreamResponseHandler<OptimizePromptResponse,OptimizedPromptStream>

@Generated("software.amazon.awssdk:codegen") @SdkPublicApi @SdkAdvancedApi(cautionWhen=IMPLEMENTED, guidance="onEventStream() receives a reactive-streams Publisher; the implementation must subscribe to it and call Subscription.request(n) to pull events -- a handler that never subscribes or never requests stalls the stream and hangs the operation. On retry the SDK calls onEventStream() again with a new Publisher; the implementation must reset accumulated state or throw to refuse the retry. Free resources in exceptionOccurred().", saferAlternative="Prefer the generated builder() with subscriber(Consumer) or subscriber(Visitor) which handle subscription, backpressure, and retry-state reset automatically.") public interface OptimizePromptResponseHandler extends EventStreamResponseHandler<OptimizePromptResponse,OptimizedPromptStream>
Response handler for the OptimizePrompt API.