Interface StartMedicalStreamTranscriptionResponseHandler.Builder
-
- All Superinterfaces:
EventStreamResponseHandler.Builder<StartMedicalStreamTranscriptionResponse,MedicalTranscriptResultStream,StartMedicalStreamTranscriptionResponseHandler.Builder>
- Enclosing interface:
- StartMedicalStreamTranscriptionResponseHandler
@Generated("software.amazon.awssdk:codegen") public static interface StartMedicalStreamTranscriptionResponseHandler.Builder extends EventStreamResponseHandler.Builder<StartMedicalStreamTranscriptionResponse,MedicalTranscriptResultStream,StartMedicalStreamTranscriptionResponseHandler.Builder>
Builder forStartMedicalStreamTranscriptionResponseHandler. This can be used to create theStartMedicalStreamTranscriptionResponseHandlerin a more functional way, you may also directly implement theStartMedicalStreamTranscriptionResponseHandlerinterface if preferred.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StartMedicalStreamTranscriptionResponseHandlerbuild()StartMedicalStreamTranscriptionResponseHandler.Buildersubscriber(StartMedicalStreamTranscriptionResponseHandler.Visitor visitor)Sets the subscriber to thePublisherof events.-
Methods inherited from interface software.amazon.awssdk.awscore.eventstream.EventStreamResponseHandler.Builder
onComplete, onError, onEventStream, onResponse, publisherTransformer, subscriber, subscriber
-
-
-
-
Method Detail
-
subscriber
StartMedicalStreamTranscriptionResponseHandler.Builder subscriber(StartMedicalStreamTranscriptionResponseHandler.Visitor visitor)
Sets the subscriber to thePublisherof events. The givenStartMedicalStreamTranscriptionResponseHandler.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
StartMedicalStreamTranscriptionResponseHandler build()
- Returns:
- A
StartMedicalStreamTranscriptionResponseHandlerimplementation that can be used in the StartMedicalStreamTranscription API call.
-
-