Interface StartConversationResponseHandler.Visitor
- Enclosing interface:
StartConversationResponseHandler
@Generated("software.amazon.awssdk:codegen")
public static interface StartConversationResponseHandler.Visitor
Visitor for subtypes of
StartConversationResponseEventStream.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder forStartConversationResponseHandler.Visitor. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default voidInvoked when aAudioResponseEventis encountered.default voidA required "else" or "default" block, invoked when no other more-specific "visit" method is appropriate.default voidInvoked when aHeartbeatEventis encountered.default voidInvoked when aIntentResultEventis encountered.default voidInvoked when aPlaybackInterruptionEventis encountered.default voidInvoked when aTextResponseEventis encountered.default voidInvoked when aTranscriptEventis encountered.
-
Method Details
-
builder
- Returns:
- A new
StartConversationResponseHandler.Visitor.Builder.
-
visitDefault
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
StartConversationResponseEventStream. 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
StartConversationResponseEventStream.
- 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
-
visitPlaybackInterruptionEvent
Invoked when aPlaybackInterruptionEventis encountered. If this is not overridden, the event will be given tovisitDefault(StartConversationResponseEventStream).- Parameters:
event- Event being visited
-
visitTranscriptEvent
Invoked when aTranscriptEventis encountered. If this is not overridden, the event will be given tovisitDefault(StartConversationResponseEventStream).- Parameters:
event- Event being visited
-
visitIntentResultEvent
Invoked when aIntentResultEventis encountered. If this is not overridden, the event will be given tovisitDefault(StartConversationResponseEventStream).- Parameters:
event- Event being visited
-
visitTextResponseEvent
Invoked when aTextResponseEventis encountered. If this is not overridden, the event will be given tovisitDefault(StartConversationResponseEventStream).- Parameters:
event- Event being visited
-
visitAudioResponseEvent
Invoked when aAudioResponseEventis encountered. If this is not overridden, the event will be given tovisitDefault(StartConversationResponseEventStream).- Parameters:
event- Event being visited
-
visitHeartbeatEvent
Invoked when aHeartbeatEventis encountered. If this is not overridden, the event will be given tovisitDefault(StartConversationResponseEventStream).- Parameters:
event- Event being visited
-