AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartConversationRequestEventStream.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/lexv2-runtime/model/ConfigurationEvent.h>
9#include <aws/lexv2-runtime/model/AudioInputEvent.h>
10#include <aws/lexv2-runtime/model/DTMFInputEvent.h>
11#include <aws/lexv2-runtime/model/TextInputEvent.h>
12#include <aws/lexv2-runtime/model/PlaybackCompletionEvent.h>
13#include <aws/lexv2-runtime/model/DisconnectionEvent.h>
14#include <utility>
15#include <aws/core/utils/event/EventStream.h>
16
17namespace Aws
18{
19namespace LexRuntimeV2
20{
21namespace Model
22{
23
31 {
32 public:
34 {
36 msg.InsertEventHeader(":message-type", Aws::String("event"));
37 msg.InsertEventHeader(":event-type", Aws::String("ConfigurationEvent"));
38 msg.InsertEventHeader(":content-type", Aws::String("application/json"));
40 WriteEvent(msg);
41 return *this;
42 }
44 {
46 msg.InsertEventHeader(":message-type", Aws::String("event"));
47 msg.InsertEventHeader(":event-type", Aws::String("AudioInputEvent"));
48 msg.InsertEventHeader(":content-type", Aws::String("application/json"));
50 WriteEvent(msg);
51 return *this;
52 }
54 {
56 msg.InsertEventHeader(":message-type", Aws::String("event"));
57 msg.InsertEventHeader(":event-type", Aws::String("DTMFInputEvent"));
58 msg.InsertEventHeader(":content-type", Aws::String("application/json"));
60 WriteEvent(msg);
61 return *this;
62 }
64 {
66 msg.InsertEventHeader(":message-type", Aws::String("event"));
67 msg.InsertEventHeader(":event-type", Aws::String("TextInputEvent"));
68 msg.InsertEventHeader(":content-type", Aws::String("application/json"));
70 WriteEvent(msg);
71 return *this;
72 }
74 {
76 msg.InsertEventHeader(":message-type", Aws::String("event"));
77 msg.InsertEventHeader(":event-type", Aws::String("PlaybackCompletionEvent"));
78 msg.InsertEventHeader(":content-type", Aws::String("application/json"));
80 WriteEvent(msg);
81 return *this;
82 }
84 {
86 msg.InsertEventHeader(":message-type", Aws::String("event"));
87 msg.InsertEventHeader(":event-type", Aws::String("DisconnectionEvent"));
88 msg.InsertEventHeader(":content-type", Aws::String("application/json"));
90 WriteEvent(msg);
91 return *this;
92 }
93
94 };
95
96} // namespace Model
97} // namespace LexRuntimeV2
98} // namespace Aws
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
StartConversationRequestEventStream & WritePlaybackCompletionEvent(const PlaybackCompletionEvent &value)
StartConversationRequestEventStream & WriteTextInputEvent(const TextInputEvent &value)
StartConversationRequestEventStream & WriteAudioInputEvent(const AudioInputEvent &value)
StartConversationRequestEventStream & WriteDTMFInputEvent(const DTMFInputEvent &value)
StartConversationRequestEventStream & WriteConfigurationEvent(const ConfigurationEvent &value)
StartConversationRequestEventStream & WriteDisconnectionEvent(const DisconnectionEvent &value)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() 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