Interface InvokeInlineAgentResponseHandler.Visitor
- Enclosing interface:
InvokeInlineAgentResponseHandler
@Generated("software.amazon.awssdk:codegen")
public static interface InvokeInlineAgentResponseHandler.Visitor
Visitor for subtypes of
InlineAgentResponseStream
.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Builder forInvokeInlineAgentResponseHandler.Visitor
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default void
visitChunk
(InlineAgentPayloadPart event) Invoked when aInlineAgentPayloadPart
is encountered.default void
A required "else" or "default" block, invoked when no other more-specific "visit" method is appropriate.default void
visitFiles
(InlineAgentFilePart event) Invoked when aInlineAgentFilePart
is encountered.default void
Invoked when aInlineAgentReturnControlPayload
is encountered.default void
visitTrace
(InlineAgentTracePart event) Invoked when aInlineAgentTracePart
is encountered.
-
Method Details
-
builder
- Returns:
- A new
InvokeInlineAgentResponseHandler.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
InlineAgentResponseStream
. 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
InlineAgentResponseStream
.
- 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
-
visitChunk
Invoked when aInlineAgentPayloadPart
is encountered. If this is not overridden, the event will be given tovisitDefault(InlineAgentResponseStream)
.- Parameters:
event
- Event being visited
-
visitFiles
Invoked when aInlineAgentFilePart
is encountered. If this is not overridden, the event will be given tovisitDefault(InlineAgentResponseStream)
.- Parameters:
event
- Event being visited
-
visitReturnControl
Invoked when aInlineAgentReturnControlPayload
is encountered. If this is not overridden, the event will be given tovisitDefault(InlineAgentResponseStream)
.- Parameters:
event
- Event being visited
-
visitTrace
Invoked when aInlineAgentTracePart
is encountered. If this is not overridden, the event will be given tovisitDefault(InlineAgentResponseStream)
.- Parameters:
event
- Event being visited
-