AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConfigurationEvent.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lexv2-runtime/model/SessionState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lexv2-runtime/model/Message.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace LexRuntimeV2
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_LEXRUNTIMEV2_API ConfigurationEvent();
41 AWS_LEXRUNTIMEV2_API ConfigurationEvent(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
53 inline const Aws::Map<Aws::String, Aws::String>& GetRequestAttributes() const{ return m_requestAttributes; }
54 inline bool RequestAttributesHasBeenSet() const { return m_requestAttributesHasBeenSet; }
55 inline void SetRequestAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = value; }
56 inline void SetRequestAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = std::move(value); }
59 inline ConfigurationEvent& AddRequestAttributes(const Aws::String& key, const Aws::String& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, value); return *this; }
60 inline ConfigurationEvent& AddRequestAttributes(Aws::String&& key, const Aws::String& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), value); return *this; }
61 inline ConfigurationEvent& AddRequestAttributes(const Aws::String& key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, std::move(value)); return *this; }
62 inline ConfigurationEvent& AddRequestAttributes(Aws::String&& key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), std::move(value)); return *this; }
63 inline ConfigurationEvent& AddRequestAttributes(const char* key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, std::move(value)); return *this; }
64 inline ConfigurationEvent& AddRequestAttributes(Aws::String&& key, const char* value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), value); return *this; }
65 inline ConfigurationEvent& AddRequestAttributes(const char* key, const char* value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, value); return *this; }
67
69
84 inline const Aws::String& GetResponseContentType() const{ return m_responseContentType; }
85 inline bool ResponseContentTypeHasBeenSet() const { return m_responseContentTypeHasBeenSet; }
86 inline void SetResponseContentType(const Aws::String& value) { m_responseContentTypeHasBeenSet = true; m_responseContentType = value; }
87 inline void SetResponseContentType(Aws::String&& value) { m_responseContentTypeHasBeenSet = true; m_responseContentType = std::move(value); }
88 inline void SetResponseContentType(const char* value) { m_responseContentTypeHasBeenSet = true; m_responseContentType.assign(value); }
90 inline ConfigurationEvent& WithResponseContentType(Aws::String&& value) { SetResponseContentType(std::move(value)); return *this;}
91 inline ConfigurationEvent& WithResponseContentType(const char* value) { SetResponseContentType(value); return *this;}
93
95
96 inline const SessionState& GetSessionState() const{ return m_sessionState; }
97 inline bool SessionStateHasBeenSet() const { return m_sessionStateHasBeenSet; }
98 inline void SetSessionState(const SessionState& value) { m_sessionStateHasBeenSet = true; m_sessionState = value; }
99 inline void SetSessionState(SessionState&& value) { m_sessionStateHasBeenSet = true; m_sessionState = std::move(value); }
100 inline ConfigurationEvent& WithSessionState(const SessionState& value) { SetSessionState(value); return *this;}
101 inline ConfigurationEvent& WithSessionState(SessionState&& value) { SetSessionState(std::move(value)); return *this;}
103
105
113 inline const Aws::Vector<Message>& GetWelcomeMessages() const{ return m_welcomeMessages; }
114 inline bool WelcomeMessagesHasBeenSet() const { return m_welcomeMessagesHasBeenSet; }
115 inline void SetWelcomeMessages(const Aws::Vector<Message>& value) { m_welcomeMessagesHasBeenSet = true; m_welcomeMessages = value; }
116 inline void SetWelcomeMessages(Aws::Vector<Message>&& value) { m_welcomeMessagesHasBeenSet = true; m_welcomeMessages = std::move(value); }
118 inline ConfigurationEvent& WithWelcomeMessages(Aws::Vector<Message>&& value) { SetWelcomeMessages(std::move(value)); return *this;}
119 inline ConfigurationEvent& AddWelcomeMessages(const Message& value) { m_welcomeMessagesHasBeenSet = true; m_welcomeMessages.push_back(value); return *this; }
120 inline ConfigurationEvent& AddWelcomeMessages(Message&& value) { m_welcomeMessagesHasBeenSet = true; m_welcomeMessages.push_back(std::move(value)); return *this; }
122
124
132 inline bool GetDisablePlayback() const{ return m_disablePlayback; }
133 inline bool DisablePlaybackHasBeenSet() const { return m_disablePlaybackHasBeenSet; }
134 inline void SetDisablePlayback(bool value) { m_disablePlaybackHasBeenSet = true; m_disablePlayback = value; }
135 inline ConfigurationEvent& WithDisablePlayback(bool value) { SetDisablePlayback(value); return *this;}
137
139
143 inline const Aws::String& GetEventId() const{ return m_eventId; }
144 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
145 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
146 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
147 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
148 inline ConfigurationEvent& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
149 inline ConfigurationEvent& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
150 inline ConfigurationEvent& WithEventId(const char* value) { SetEventId(value); return *this;}
152
154
158 inline long long GetClientTimestampMillis() const{ return m_clientTimestampMillis; }
159 inline bool ClientTimestampMillisHasBeenSet() const { return m_clientTimestampMillisHasBeenSet; }
160 inline void SetClientTimestampMillis(long long value) { m_clientTimestampMillisHasBeenSet = true; m_clientTimestampMillis = value; }
161 inline ConfigurationEvent& WithClientTimestampMillis(long long value) { SetClientTimestampMillis(value); return *this;}
163 private:
164
165 Aws::Map<Aws::String, Aws::String> m_requestAttributes;
166 bool m_requestAttributesHasBeenSet = false;
167
168 Aws::String m_responseContentType;
169 bool m_responseContentTypeHasBeenSet = false;
170
171 SessionState m_sessionState;
172 bool m_sessionStateHasBeenSet = false;
173
174 Aws::Vector<Message> m_welcomeMessages;
175 bool m_welcomeMessagesHasBeenSet = false;
176
177 bool m_disablePlayback;
178 bool m_disablePlaybackHasBeenSet = false;
179
180 Aws::String m_eventId;
181 bool m_eventIdHasBeenSet = false;
182
183 long long m_clientTimestampMillis;
184 bool m_clientTimestampMillisHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace LexRuntimeV2
189} // namespace Aws
ConfigurationEvent & WithRequestAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ConfigurationEvent & WithResponseContentType(const Aws::String &value)
ConfigurationEvent & WithClientTimestampMillis(long long value)
ConfigurationEvent & AddRequestAttributes(const Aws::String &key, const Aws::String &value)
void SetWelcomeMessages(Aws::Vector< Message > &&value)
ConfigurationEvent & AddRequestAttributes(const char *key, Aws::String &&value)
ConfigurationEvent & WithWelcomeMessages(Aws::Vector< Message > &&value)
const Aws::Vector< Message > & GetWelcomeMessages() const
ConfigurationEvent & AddWelcomeMessages(Message &&value)
ConfigurationEvent & AddWelcomeMessages(const Message &value)
const Aws::Map< Aws::String, Aws::String > & GetRequestAttributes() const
void SetResponseContentType(const Aws::String &value)
ConfigurationEvent & WithWelcomeMessages(const Aws::Vector< Message > &value)
ConfigurationEvent & WithEventId(const Aws::String &value)
ConfigurationEvent & AddRequestAttributes(const Aws::String &key, Aws::String &&value)
void SetRequestAttributes(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetResponseContentType() const
AWS_LEXRUNTIMEV2_API ConfigurationEvent(Aws::Utils::Json::JsonView jsonValue)
ConfigurationEvent & WithEventId(Aws::String &&value)
ConfigurationEvent & AddRequestAttributes(Aws::String &&key, const char *value)
void SetWelcomeMessages(const Aws::Vector< Message > &value)
ConfigurationEvent & WithDisablePlayback(bool value)
ConfigurationEvent & AddRequestAttributes(Aws::String &&key, const Aws::String &value)
ConfigurationEvent & WithRequestAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetSessionState(const SessionState &value)
ConfigurationEvent & WithSessionState(const SessionState &value)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXRUNTIMEV2_API ConfigurationEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigurationEvent & AddRequestAttributes(const char *key, const char *value)
ConfigurationEvent & WithEventId(const char *value)
ConfigurationEvent & WithResponseContentType(const char *value)
void SetRequestAttributes(Aws::Map< Aws::String, Aws::String > &&value)
ConfigurationEvent & AddRequestAttributes(Aws::String &&key, Aws::String &&value)
ConfigurationEvent & WithSessionState(SessionState &&value)
ConfigurationEvent & WithResponseContentType(Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue