Interface ChatOutputStream
- All Superinterfaces:
SdkPojo
- All Known Implementing Classes:
ActionReviewEvent
,AuthChallengeRequestEvent
,DefaultActionReviewEvent
,DefaultAuthChallengeRequestEvent
,DefaultFailedAttachmentEvent
,DefaultMetadataEvent
,DefaultTextEvent
,FailedAttachmentEvent
,MetadataEvent
,TextOutputEvent
Base interface for all event types in ChatOutputStream.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The known possible types of events forChatOutputStream
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final ChatOutputStream
Special type ofChatOutputStream
for unknown types of events that this version of the SDK does not know about -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ChatResponseHandler.Visitor visitor) Calls the appropriate visit method depending on the subtype ofChatOutputStream
.static ActionReviewEvent.Builder
Create a builder for theactionReviewEvent
event type for this stream.Create a builder for theauthChallengeRequestEvent
event type for this stream.Create a builder for thefailedAttachmentEvent
event type for this stream.static MetadataEvent.Builder
Create a builder for themetadataEvent
event type for this stream.default ChatOutputStream.EventType
The type of this event.static TextOutputEvent.Builder
Create a builder for thetextEvent
event type for this stream.Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Field Details
-
UNKNOWN
Special type ofChatOutputStream
for unknown types of events that this version of the SDK does not know about
-
-
Method Details
-
textEventBuilder
Create a builder for thetextEvent
event type for this stream. -
metadataEventBuilder
Create a builder for themetadataEvent
event type for this stream. -
actionReviewEventBuilder
Create a builder for theactionReviewEvent
event type for this stream. -
failedAttachmentEventBuilder
Create a builder for thefailedAttachmentEvent
event type for this stream. -
authChallengeRequestEventBuilder
Create a builder for theauthChallengeRequestEvent
event type for this stream. -
sdkEventType
The type of this event. Corresponds to the:event-type
header on the Message. -
accept
Calls the appropriate visit method depending on the subtype ofChatOutputStream
.- Parameters:
visitor
- Visitor to invoke.
-