Interface StartStreamTranscriptionResponseHandler.Visitor
-
- Enclosing interface:
- StartStreamTranscriptionResponseHandler
@Generated("software.amazon.awssdk:codegen") public static interface StartStreamTranscriptionResponseHandler.Visitor
Visitor for subtypes ofTranscriptResultStream.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceStartStreamTranscriptionResponseHandler.Visitor.BuilderBuilder forStartStreamTranscriptionResponseHandler.Visitor.
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static StartStreamTranscriptionResponseHandler.Visitor.Builderbuilder()default voidvisit(TranscriptEvent event)Invoked when aTranscriptEventis encountered.default voidvisitDefault(TranscriptResultStream event)A required "else" or "default" block, invoked when no other more-specific "visit" method is appropriate.
-
-
-
Method Detail
-
builder
static StartStreamTranscriptionResponseHandler.Visitor.Builder builder()
- Returns:
- A new
StartStreamTranscriptionResponseHandler.Visitor.Builder.
-
visitDefault
default void visitDefault(TranscriptResultStream event)
A required "else" or "default" block, invoked when no other more-specific "visit" method is appropriate. This is invoked under two circumstances:- The event encountered is newer than the current version of the SDK, so no other more-specific "visit"
method could be called. In this case, the provided event will be a generic
TranscriptResultStream. These events can be processed by upgrading the SDK. - The event is known by the SDK, but the "visit" was not overridden above. In this case, the provided event
will be a specific type of
TranscriptResultStream.
- Parameters:
event- The event that was not handled by a more-specific "visit" method.
- The event encountered is newer than the current version of the SDK, so no other more-specific "visit"
method could be called. In this case, the provided event will be a generic
-
visit
default void visit(TranscriptEvent event)
Invoked when aTranscriptEventis encountered. If this is not overridden, the event will be given tovisitDefault(TranscriptResultStream).- Parameters:
event- Event being visited
-
-