Interface StartLiveTailResponseHandler.Visitor
-
- Enclosing interface:
- StartLiveTailResponseHandler
@Generated("software.amazon.awssdk:codegen") public static interface StartLiveTailResponseHandler.Visitor
Visitor for subtypes ofStartLiveTailResponseStream.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceStartLiveTailResponseHandler.Visitor.BuilderBuilder forStartLiveTailResponseHandler.Visitor.
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static StartLiveTailResponseHandler.Visitor.Builderbuilder()default voidvisitDefault(StartLiveTailResponseStream event)A required "else" or "default" block, invoked when no other more-specific "visit" method is appropriate.default voidvisitSessionStart(LiveTailSessionStart event)Invoked when aLiveTailSessionStartis encountered.default voidvisitSessionUpdate(LiveTailSessionUpdate event)Invoked when aLiveTailSessionUpdateis encountered.
-
-
-
Method Detail
-
builder
static StartLiveTailResponseHandler.Visitor.Builder builder()
- Returns:
- A new
StartLiveTailResponseHandler.Visitor.Builder.
-
visitDefault
default void visitDefault(StartLiveTailResponseStream 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
StartLiveTailResponseStream. 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
StartLiveTailResponseStream.
- 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
-
visitSessionStart
default void visitSessionStart(LiveTailSessionStart event)
Invoked when aLiveTailSessionStartis encountered. If this is not overridden, the event will be given tovisitDefault(StartLiveTailResponseStream).- Parameters:
event- Event being visited
-
visitSessionUpdate
default void visitSessionUpdate(LiveTailSessionUpdate event)
Invoked when aLiveTailSessionUpdateis encountered. If this is not overridden, the event will be given tovisitDefault(StartLiveTailResponseStream).- Parameters:
event- Event being visited
-
-