Interface InvokeHarnessResponseHandler.Visitor
- Enclosing interface:
InvokeHarnessResponseHandler
@Generated("software.amazon.awssdk:codegen")
public static interface InvokeHarnessResponseHandler.Visitor
Visitor for subtypes of
InvokeHarnessStreamOutput.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder forInvokeHarnessResponseHandler.Visitor. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default voidInvoked when aHarnessContentBlockDeltaEventis encountered.default voidInvoked when aHarnessContentBlockStartEventis encountered.default voidInvoked when aHarnessContentBlockStopEventis encountered.default voidA required "else" or "default" block, invoked when no other more-specific "visit" method is appropriate.default voidInvoked when aHarnessMessageStartEventis encountered.default voidInvoked when aHarnessMessageStopEventis encountered.default voidInvoked when aHarnessMetadataEventis encountered.
-
Method Details
-
builder
- Returns:
- A new
InvokeHarnessResponseHandler.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
InvokeHarnessStreamOutput. 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
InvokeHarnessStreamOutput.
- 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
-
visitMessageStart
Invoked when aHarnessMessageStartEventis encountered. If this is not overridden, the event will be given tovisitDefault(InvokeHarnessStreamOutput).- Parameters:
event- Event being visited
-
visitContentBlockStart
Invoked when aHarnessContentBlockStartEventis encountered. If this is not overridden, the event will be given tovisitDefault(InvokeHarnessStreamOutput).- Parameters:
event- Event being visited
-
visitContentBlockDelta
Invoked when aHarnessContentBlockDeltaEventis encountered. If this is not overridden, the event will be given tovisitDefault(InvokeHarnessStreamOutput).- Parameters:
event- Event being visited
-
visitContentBlockStop
Invoked when aHarnessContentBlockStopEventis encountered. If this is not overridden, the event will be given tovisitDefault(InvokeHarnessStreamOutput).- Parameters:
event- Event being visited
-
visitMessageStop
Invoked when aHarnessMessageStopEventis encountered. If this is not overridden, the event will be given tovisitDefault(InvokeHarnessStreamOutput).- Parameters:
event- Event being visited
-
visitMetadata
Invoked when aHarnessMetadataEventis encountered. If this is not overridden, the event will be given tovisitDefault(InvokeHarnessStreamOutput).- Parameters:
event- Event being visited
-