Interface InvokeAgentResponseHandler.Visitor
-
- Enclosing interface:
- InvokeAgentResponseHandler
@Generated("software.amazon.awssdk:codegen") public static interface InvokeAgentResponseHandler.Visitor
Visitor for subtypes ofResponseStream.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceInvokeAgentResponseHandler.Visitor.BuilderBuilder forInvokeAgentResponseHandler.Visitor.
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static InvokeAgentResponseHandler.Visitor.Builderbuilder()default voidvisitChunk(PayloadPart event)Invoked when aPayloadPartis encountered.default voidvisitDefault(ResponseStream event)A required "else" or "default" block, invoked when no other more-specific "visit" method is appropriate.default voidvisitFiles(FilePart event)Invoked when aFilePartis encountered.default voidvisitReturnControl(ReturnControlPayload event)Invoked when aReturnControlPayloadis encountered.default voidvisitTrace(TracePart event)Invoked when aTracePartis encountered.
-
-
-
Method Detail
-
builder
static InvokeAgentResponseHandler.Visitor.Builder builder()
- Returns:
- A new
InvokeAgentResponseHandler.Visitor.Builder.
-
visitDefault
default void visitDefault(ResponseStream 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
ResponseStream. 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
ResponseStream.
- 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
default void visitChunk(PayloadPart event)
Invoked when aPayloadPartis encountered. If this is not overridden, the event will be given tovisitDefault(ResponseStream).- Parameters:
event- Event being visited
-
visitFiles
default void visitFiles(FilePart event)
Invoked when aFilePartis encountered. If this is not overridden, the event will be given tovisitDefault(ResponseStream).- Parameters:
event- Event being visited
-
visitReturnControl
default void visitReturnControl(ReturnControlPayload event)
Invoked when aReturnControlPayloadis encountered. If this is not overridden, the event will be given tovisitDefault(ResponseStream).- Parameters:
event- Event being visited
-
visitTrace
default void visitTrace(TracePart event)
Invoked when aTracePartis encountered. If this is not overridden, the event will be given tovisitDefault(ResponseStream).- Parameters:
event- Event being visited
-
-