Interface InvokeFlowResponseHandler.Visitor
-
- Enclosing interface:
- InvokeFlowResponseHandler
@Generated("software.amazon.awssdk:codegen") public static interface InvokeFlowResponseHandler.Visitor
Visitor for subtypes ofFlowResponseStream.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceInvokeFlowResponseHandler.Visitor.BuilderBuilder forInvokeFlowResponseHandler.Visitor.
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static InvokeFlowResponseHandler.Visitor.Builderbuilder()default voidvisitDefault(FlowResponseStream event)A required "else" or "default" block, invoked when no other more-specific "visit" method is appropriate.default voidvisitFlowCompletionEvent(FlowCompletionEvent event)Invoked when aFlowCompletionEventis encountered.default voidvisitFlowMultiTurnInputRequestEvent(FlowMultiTurnInputRequestEvent event)Invoked when aFlowMultiTurnInputRequestEventis encountered.default voidvisitFlowOutputEvent(FlowOutputEvent event)Invoked when aFlowOutputEventis encountered.default voidvisitFlowTraceEvent(FlowTraceEvent event)Invoked when aFlowTraceEventis encountered.
-
-
-
Method Detail
-
builder
static InvokeFlowResponseHandler.Visitor.Builder builder()
- Returns:
- A new
InvokeFlowResponseHandler.Visitor.Builder.
-
visitDefault
default void visitDefault(FlowResponseStream 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
FlowResponseStream. 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
FlowResponseStream.
- 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
-
visitFlowCompletionEvent
default void visitFlowCompletionEvent(FlowCompletionEvent event)
Invoked when aFlowCompletionEventis encountered. If this is not overridden, the event will be given tovisitDefault(FlowResponseStream).- Parameters:
event- Event being visited
-
visitFlowMultiTurnInputRequestEvent
default void visitFlowMultiTurnInputRequestEvent(FlowMultiTurnInputRequestEvent event)
Invoked when aFlowMultiTurnInputRequestEventis encountered. If this is not overridden, the event will be given tovisitDefault(FlowResponseStream).- Parameters:
event- Event being visited
-
visitFlowOutputEvent
default void visitFlowOutputEvent(FlowOutputEvent event)
Invoked when aFlowOutputEventis encountered. If this is not overridden, the event will be given tovisitDefault(FlowResponseStream).- Parameters:
event- Event being visited
-
visitFlowTraceEvent
default void visitFlowTraceEvent(FlowTraceEvent event)
Invoked when aFlowTraceEventis encountered. If this is not overridden, the event will be given tovisitDefault(FlowResponseStream).- Parameters:
event- Event being visited
-
-