Interface RetrieveAndGenerateStreamResponseHandler.Visitor
-
- Enclosing interface:
- RetrieveAndGenerateStreamResponseHandler
@Generated("software.amazon.awssdk:codegen") public static interface RetrieveAndGenerateStreamResponseHandler.Visitor
Visitor for subtypes ofRetrieveAndGenerateStreamResponseOutput.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRetrieveAndGenerateStreamResponseHandler.Visitor.BuilderBuilder forRetrieveAndGenerateStreamResponseHandler.Visitor.
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static RetrieveAndGenerateStreamResponseHandler.Visitor.Builderbuilder()default voidvisitCitation(CitationEvent event)Invoked when aCitationEventis encountered.default voidvisitDefault(RetrieveAndGenerateStreamResponseOutput event)A required "else" or "default" block, invoked when no other more-specific "visit" method is appropriate.default voidvisitGuardrail(GuardrailEvent event)Invoked when aGuardrailEventis encountered.default voidvisitOutput(RetrieveAndGenerateOutputEvent event)Invoked when aRetrieveAndGenerateOutputEventis encountered.
-
-
-
Method Detail
-
builder
static RetrieveAndGenerateStreamResponseHandler.Visitor.Builder builder()
- Returns:
- A new
RetrieveAndGenerateStreamResponseHandler.Visitor.Builder.
-
visitDefault
default void visitDefault(RetrieveAndGenerateStreamResponseOutput 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
RetrieveAndGenerateStreamResponseOutput. 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
RetrieveAndGenerateStreamResponseOutput.
- 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
-
visitCitation
default void visitCitation(CitationEvent event)
Invoked when aCitationEventis encountered. If this is not overridden, the event will be given tovisitDefault(RetrieveAndGenerateStreamResponseOutput).- Parameters:
event- Event being visited
-
visitGuardrail
default void visitGuardrail(GuardrailEvent event)
Invoked when aGuardrailEventis encountered. If this is not overridden, the event will be given tovisitDefault(RetrieveAndGenerateStreamResponseOutput).- Parameters:
event- Event being visited
-
visitOutput
default void visitOutput(RetrieveAndGenerateOutputEvent event)
Invoked when aRetrieveAndGenerateOutputEventis encountered. If this is not overridden, the event will be given tovisitDefault(RetrieveAndGenerateStreamResponseOutput).- Parameters:
event- Event being visited
-
-