AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ChatInputStream.h
1
6#pragma once
7#include <aws/core/utils/event/EventStream.h>
8#include <aws/core/utils/json/JsonSerializer.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10#include <aws/qbusiness/model/ActionExecutionEvent.h>
11#include <aws/qbusiness/model/AttachmentInputEvent.h>
12#include <aws/qbusiness/model/AuthChallengeResponseEvent.h>
13#include <aws/qbusiness/model/ConfigurationEvent.h>
14#include <aws/qbusiness/model/EndOfInputEvent.h>
15#include <aws/qbusiness/model/TextInputEvent.h>
16
17#include <utility>
18
19namespace Aws {
20namespace QBusiness {
21namespace Model {
22
30 public:
33 msg.InsertEventHeader(":message-type", Aws::String("event"));
34 msg.InsertEventHeader(":event-type", Aws::String("configurationEvent"));
35 msg.InsertEventHeader(":content-type", Aws::String("application/json"));
37 WriteEvent(msg);
38 return *this;
39 }
42 msg.InsertEventHeader(":message-type", Aws::String("event"));
43 msg.InsertEventHeader(":event-type", Aws::String("textEvent"));
44 msg.InsertEventHeader(":content-type", Aws::String("text/plain"));
46 WriteEvent(msg);
47 return *this;
48 }
51 msg.InsertEventHeader(":message-type", Aws::String("event"));
52 msg.InsertEventHeader(":event-type", Aws::String("attachmentEvent"));
53 msg.InsertEventHeader(":content-type", Aws::String("application/json"));
55 WriteEvent(msg);
56 return *this;
57 }
60 msg.InsertEventHeader(":message-type", Aws::String("event"));
61 msg.InsertEventHeader(":event-type", Aws::String("actionExecutionEvent"));
62 msg.InsertEventHeader(":content-type", Aws::String("application/json"));
64 WriteEvent(msg);
65 return *this;
66 }
69 msg.InsertEventHeader(":message-type", Aws::String("event"));
70 msg.InsertEventHeader(":event-type", Aws::String("endOfInputEvent"));
71 AWS_UNREFERENCED_PARAM(value);
72 WriteEvent(msg);
73 return *this;
74 }
77 msg.InsertEventHeader(":message-type", Aws::String("event"));
78 msg.InsertEventHeader(":event-type", Aws::String("authChallengeResponseEvent"));
79 msg.InsertEventHeader(":content-type", Aws::String("application/json"));
81 WriteEvent(msg);
82 return *this;
83 }
84};
85
86} // namespace Model
87} // namespace QBusiness
88} // 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