Interface InvokeAgentResponseHandler.Visitor.Builder
- Enclosing interface:
InvokeAgentResponseHandler.Visitor
@Generated("software.amazon.awssdk:codegen")
public static interface InvokeAgentResponseHandler.Visitor.Builder
Builder for
InvokeAgentResponseHandler.Visitor
. The InvokeAgentResponseHandler.Visitor
class may also be extended for a more traditional style but
this builder allows for a more functional way of creating a visitor will callback methods.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Callback to invoke when aPayloadPart
is visited.Callback to invoke when either an unknown event is visited or an unhandled event is visited.Callback to invoke when aFilePart
is visited.Callback to invoke when aReturnControlPayload
is visited.Callback to invoke when aTracePart
is visited.
-
Method Details
-
onDefault
Callback to invoke when either an unknown event is visited or an unhandled event is visited.- Parameters:
c
- Callback to process the event.- Returns:
- This builder for method chaining.
-
build
- Returns:
- Visitor implementation.
-
onChunk
Callback to invoke when aPayloadPart
is visited.- Parameters:
c
- Callback to process the event.- Returns:
- This builder for method chaining.
-
onFiles
Callback to invoke when aFilePart
is visited.- Parameters:
c
- Callback to process the event.- Returns:
- This builder for method chaining.
-
onReturnControl
Callback to invoke when aReturnControlPayload
is visited.- Parameters:
c
- Callback to process the event.- Returns:
- This builder for method chaining.
-
onTrace
Callback to invoke when aTracePart
is visited.- Parameters:
c
- Callback to process the event.- Returns:
- This builder for method chaining.
-