Interface StartCallAnalyticsStreamTranscriptionResponseHandler.Visitor.Builder
- Enclosing interface:
StartCallAnalyticsStreamTranscriptionResponseHandler.Visitor
@Generated("software.amazon.awssdk:codegen")
public static interface StartCallAnalyticsStreamTranscriptionResponseHandler.Visitor.Builder
Builder for
StartCallAnalyticsStreamTranscriptionResponseHandler.Visitor
. The StartCallAnalyticsStreamTranscriptionResponseHandler.Visitor
class may also be extended for a more traditional style but
this builder allows for a more functional way of creating a visitor will callback methods.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Callback to invoke when aCategoryEvent
is visited.Callback to invoke when either an unknown event is visited or an unhandled event is visited.Callback to invoke when aUtteranceEvent
is visited.
-
Method Details
-
onDefault
StartCallAnalyticsStreamTranscriptionResponseHandler.Visitor.Builder onDefault(Consumer<CallAnalyticsTranscriptResultStream> c) Callback to invoke when either an unknown event is visited or an unhandled event is visited.- Parameters:
c
- Callback to process the event.- Returns:
- This builder for method chaining.
-
build
- Returns:
- Visitor implementation.
-
onUtteranceEvent
StartCallAnalyticsStreamTranscriptionResponseHandler.Visitor.Builder onUtteranceEvent(Consumer<UtteranceEvent> c) Callback to invoke when aUtteranceEvent
is visited.- Parameters:
c
- Callback to process the event.- Returns:
- This builder for method chaining.
-
onCategoryEvent
StartCallAnalyticsStreamTranscriptionResponseHandler.Visitor.Builder onCategoryEvent(Consumer<CategoryEvent> c) Callback to invoke when aCategoryEvent
is visited.- Parameters:
c
- Callback to process the event.- Returns:
- This builder for method chaining.
-