AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
UpdateBotAliasResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
12#include <aws/lexv2-models/model/BotAliasLocaleSettings.h>
13#include <aws/lexv2-models/model/BotAliasStatus.h>
14#include <aws/lexv2-models/model/ConversationLogSettings.h>
15#include <aws/lexv2-models/model/SentimentAnalysisSettings.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace LexModelsV2 {
29namespace Model {
31 public:
32 AWS_LEXMODELSV2_API UpdateBotAliasResult() = default;
35
37
40 inline const Aws::String& GetBotAliasId() const { return m_botAliasId; }
41 template <typename BotAliasIdT = Aws::String>
42 void SetBotAliasId(BotAliasIdT&& value) {
43 m_botAliasIdHasBeenSet = true;
44 m_botAliasId = std::forward<BotAliasIdT>(value);
45 }
46 template <typename BotAliasIdT = Aws::String>
47 UpdateBotAliasResult& WithBotAliasId(BotAliasIdT&& value) {
48 SetBotAliasId(std::forward<BotAliasIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetBotAliasName() const { return m_botAliasName; }
58 template <typename BotAliasNameT = Aws::String>
59 void SetBotAliasName(BotAliasNameT&& value) {
60 m_botAliasNameHasBeenSet = true;
61 m_botAliasName = std::forward<BotAliasNameT>(value);
62 }
63 template <typename BotAliasNameT = Aws::String>
64 UpdateBotAliasResult& WithBotAliasName(BotAliasNameT&& value) {
65 SetBotAliasName(std::forward<BotAliasNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
81 UpdateBotAliasResult& WithDescription(DescriptionT&& value) {
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
92 template <typename BotVersionT = Aws::String>
93 void SetBotVersion(BotVersionT&& value) {
94 m_botVersionHasBeenSet = true;
95 m_botVersion = std::forward<BotVersionT>(value);
96 }
97 template <typename BotVersionT = Aws::String>
98 UpdateBotAliasResult& WithBotVersion(BotVersionT&& value) {
99 SetBotVersion(std::forward<BotVersionT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::Map<Aws::String, BotAliasLocaleSettings>& GetBotAliasLocaleSettings() const { return m_botAliasLocaleSettings; }
109 template <typename BotAliasLocaleSettingsT = Aws::Map<Aws::String, BotAliasLocaleSettings>>
110 void SetBotAliasLocaleSettings(BotAliasLocaleSettingsT&& value) {
111 m_botAliasLocaleSettingsHasBeenSet = true;
112 m_botAliasLocaleSettings = std::forward<BotAliasLocaleSettingsT>(value);
113 }
114 template <typename BotAliasLocaleSettingsT = Aws::Map<Aws::String, BotAliasLocaleSettings>>
115 UpdateBotAliasResult& WithBotAliasLocaleSettings(BotAliasLocaleSettingsT&& value) {
116 SetBotAliasLocaleSettings(std::forward<BotAliasLocaleSettingsT>(value));
117 return *this;
118 }
119 template <typename BotAliasLocaleSettingsKeyT = Aws::String, typename BotAliasLocaleSettingsValueT = BotAliasLocaleSettings>
120 UpdateBotAliasResult& AddBotAliasLocaleSettings(BotAliasLocaleSettingsKeyT&& key, BotAliasLocaleSettingsValueT&& value) {
121 m_botAliasLocaleSettingsHasBeenSet = true;
122 m_botAliasLocaleSettings.emplace(std::forward<BotAliasLocaleSettingsKeyT>(key), std::forward<BotAliasLocaleSettingsValueT>(value));
123 return *this;
124 }
126
128
132 inline const ConversationLogSettings& GetConversationLogSettings() const { return m_conversationLogSettings; }
133 template <typename ConversationLogSettingsT = ConversationLogSettings>
134 void SetConversationLogSettings(ConversationLogSettingsT&& value) {
135 m_conversationLogSettingsHasBeenSet = true;
136 m_conversationLogSettings = std::forward<ConversationLogSettingsT>(value);
137 }
138 template <typename ConversationLogSettingsT = ConversationLogSettings>
139 UpdateBotAliasResult& WithConversationLogSettings(ConversationLogSettingsT&& value) {
140 SetConversationLogSettings(std::forward<ConversationLogSettingsT>(value));
141 return *this;
142 }
144
146
147 inline const SentimentAnalysisSettings& GetSentimentAnalysisSettings() const { return m_sentimentAnalysisSettings; }
148 template <typename SentimentAnalysisSettingsT = SentimentAnalysisSettings>
149 void SetSentimentAnalysisSettings(SentimentAnalysisSettingsT&& value) {
150 m_sentimentAnalysisSettingsHasBeenSet = true;
151 m_sentimentAnalysisSettings = std::forward<SentimentAnalysisSettingsT>(value);
152 }
153 template <typename SentimentAnalysisSettingsT = SentimentAnalysisSettings>
154 UpdateBotAliasResult& WithSentimentAnalysisSettings(SentimentAnalysisSettingsT&& value) {
155 SetSentimentAnalysisSettings(std::forward<SentimentAnalysisSettingsT>(value));
156 return *this;
157 }
159
161
165 inline BotAliasStatus GetBotAliasStatus() const { return m_botAliasStatus; }
167 m_botAliasStatusHasBeenSet = true;
168 m_botAliasStatus = value;
169 }
171 SetBotAliasStatus(value);
172 return *this;
173 }
175
177
180 inline const Aws::String& GetBotId() const { return m_botId; }
181 template <typename BotIdT = Aws::String>
182 void SetBotId(BotIdT&& value) {
183 m_botIdHasBeenSet = true;
184 m_botId = std::forward<BotIdT>(value);
185 }
186 template <typename BotIdT = Aws::String>
188 SetBotId(std::forward<BotIdT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
198 template <typename CreationDateTimeT = Aws::Utils::DateTime>
199 void SetCreationDateTime(CreationDateTimeT&& value) {
200 m_creationDateTimeHasBeenSet = true;
201 m_creationDateTime = std::forward<CreationDateTimeT>(value);
202 }
203 template <typename CreationDateTimeT = Aws::Utils::DateTime>
204 UpdateBotAliasResult& WithCreationDateTime(CreationDateTimeT&& value) {
205 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
215 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
216 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
217 m_lastUpdatedDateTimeHasBeenSet = true;
218 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
219 }
220 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
221 UpdateBotAliasResult& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
222 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
223 return *this;
224 }
226
228
229 inline const Aws::String& GetRequestId() const { return m_requestId; }
230 template <typename RequestIdT = Aws::String>
231 void SetRequestId(RequestIdT&& value) {
232 m_requestIdHasBeenSet = true;
233 m_requestId = std::forward<RequestIdT>(value);
234 }
235 template <typename RequestIdT = Aws::String>
236 UpdateBotAliasResult& WithRequestId(RequestIdT&& value) {
237 SetRequestId(std::forward<RequestIdT>(value));
238 return *this;
239 }
241 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
242
243 private:
244 Aws::String m_botAliasId;
245
246 Aws::String m_botAliasName;
247
248 Aws::String m_description;
249
250 Aws::String m_botVersion;
251
252 Aws::Map<Aws::String, BotAliasLocaleSettings> m_botAliasLocaleSettings;
253
254 ConversationLogSettings m_conversationLogSettings;
255
256 SentimentAnalysisSettings m_sentimentAnalysisSettings;
257
258 BotAliasStatus m_botAliasStatus{BotAliasStatus::NOT_SET};
259
260 Aws::String m_botId;
261
262 Aws::Utils::DateTime m_creationDateTime{};
263
264 Aws::Utils::DateTime m_lastUpdatedDateTime{};
265
266 Aws::String m_requestId;
267 Aws::Http::HttpResponseCode m_HttpResponseCode;
268 bool m_botAliasIdHasBeenSet = false;
269 bool m_botAliasNameHasBeenSet = false;
270 bool m_descriptionHasBeenSet = false;
271 bool m_botVersionHasBeenSet = false;
272 bool m_botAliasLocaleSettingsHasBeenSet = false;
273 bool m_conversationLogSettingsHasBeenSet = false;
274 bool m_sentimentAnalysisSettingsHasBeenSet = false;
275 bool m_botAliasStatusHasBeenSet = false;
276 bool m_botIdHasBeenSet = false;
277 bool m_creationDateTimeHasBeenSet = false;
278 bool m_lastUpdatedDateTimeHasBeenSet = false;
279 bool m_requestIdHasBeenSet = false;
280};
281
282} // namespace Model
283} // namespace LexModelsV2
284} // namespace Aws
UpdateBotAliasResult & WithSentimentAnalysisSettings(SentimentAnalysisSettingsT &&value)
UpdateBotAliasResult & WithBotAliasId(BotAliasIdT &&value)
UpdateBotAliasResult & WithCreationDateTime(CreationDateTimeT &&value)
void SetBotAliasLocaleSettings(BotAliasLocaleSettingsT &&value)
AWS_LEXMODELSV2_API UpdateBotAliasResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, BotAliasLocaleSettings > & GetBotAliasLocaleSettings() const
void SetConversationLogSettings(ConversationLogSettingsT &&value)
UpdateBotAliasResult & WithBotAliasName(BotAliasNameT &&value)
void SetCreationDateTime(CreationDateTimeT &&value)
UpdateBotAliasResult & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
AWS_LEXMODELSV2_API UpdateBotAliasResult()=default
UpdateBotAliasResult & AddBotAliasLocaleSettings(BotAliasLocaleSettingsKeyT &&key, BotAliasLocaleSettingsValueT &&value)
UpdateBotAliasResult & WithBotId(BotIdT &&value)
UpdateBotAliasResult & WithDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
const SentimentAnalysisSettings & GetSentimentAnalysisSettings() const
UpdateBotAliasResult & WithBotVersion(BotVersionT &&value)
UpdateBotAliasResult & WithBotAliasStatus(BotAliasStatus value)
void SetSentimentAnalysisSettings(SentimentAnalysisSettingsT &&value)
const ConversationLogSettings & GetConversationLogSettings() const
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
UpdateBotAliasResult & WithBotAliasLocaleSettings(BotAliasLocaleSettingsT &&value)
UpdateBotAliasResult & WithRequestId(RequestIdT &&value)
AWS_LEXMODELSV2_API UpdateBotAliasResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateBotAliasResult & WithConversationLogSettings(ConversationLogSettingsT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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
Aws::Utils::Json::JsonValue JsonValue