AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ChatInputStream.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/model/ConfigurationEvent.h>
9#include <aws/qbusiness/model/TextInputEvent.h>
10#include <aws/qbusiness/model/AttachmentInputEvent.h>
11#include <aws/qbusiness/model/ActionExecutionEvent.h>
12#include <aws/qbusiness/model/EndOfInputEvent.h>
13#include <aws/qbusiness/model/AuthChallengeResponseEvent.h>
14#include <utility>
15#include <aws/core/utils/event/EventStream.h>
16#include <aws/core/utils/json/JsonSerializer.h>
17
18namespace Aws
19{
20namespace QBusiness
21{
22namespace Model
23{
24
32 {
33 public:
35 {
37 msg.InsertEventHeader(":message-type", Aws::String("event"));
38 msg.InsertEventHeader(":event-type", Aws::String("configurationEvent"));
39 msg.InsertEventHeader(":content-type", Aws::String("application/json"));
41 WriteEvent(msg);
42 return *this;
43 }
45 {
47 msg.InsertEventHeader(":message-type", Aws::String("event"));
48 msg.InsertEventHeader(":event-type", Aws::String("textEvent"));
49 msg.InsertEventHeader(":content-type", Aws::String("text/plain"));
51 WriteEvent(msg);
52 return *this;
53 }
55 {
57 msg.InsertEventHeader(":message-type", Aws::String("event"));
58 msg.InsertEventHeader(":event-type", Aws::String("attachmentEvent"));
59 msg.InsertEventHeader(":content-type", Aws::String("application/json"));
61 WriteEvent(msg);
62 return *this;
63 }
65 {
67 msg.InsertEventHeader(":message-type", Aws::String("event"));
68 msg.InsertEventHeader(":event-type", Aws::String("actionExecutionEvent"));
69 msg.InsertEventHeader(":content-type", Aws::String("application/json"));
71 WriteEvent(msg);
72 return *this;
73 }
75 {
77 msg.InsertEventHeader(":message-type", Aws::String("event"));
78 msg.InsertEventHeader(":event-type", Aws::String("endOfInputEvent"));
79 AWS_UNREFERENCED_PARAM(value);
80 WriteEvent(msg);
81 return *this;
82 }
84 {
86 msg.InsertEventHeader(":message-type", Aws::String("event"));
87 msg.InsertEventHeader(":event-type", Aws::String("authChallengeResponseEvent"));
88 msg.InsertEventHeader(":content-type", Aws::String("application/json"));
90 WriteEvent(msg);
91 return *this;
92 }
93
94 };
95
96} // namespace Model
97} // namespace QBusiness
98} // namespace Aws
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
ChatInputStream & WriteConfigurationEvent(const ConfigurationEvent &value)
ChatInputStream & WriteTextInputEvent(const TextInputEvent &value)
ChatInputStream & WriteAuthChallengeResponseEvent(const AuthChallengeResponseEvent &value)
ChatInputStream & WriteAttachmentInputEvent(const AttachmentInputEvent &value)
ChatInputStream & WriteActionExecutionEvent(const ActionExecutionEvent &value)
ChatInputStream & WriteEndOfInputEvent(const EndOfInputEvent &value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetUserMessage() const
void WriteEventPayload(const unsigned char *data, size_t length)
void InsertEventHeader(const Aws::String &headerName, const EventHeaderValue &eventHeaderValue)
Aws::String WriteCompact(bool treatAsObject=true) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String