AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
CreateBotAliasResult.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 CreateBotAliasResult() = 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 CreateBotAliasResult& 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 CreateBotAliasResult& 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 CreateBotAliasResult& 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 CreateBotAliasResult& 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 CreateBotAliasResult& WithBotAliasLocaleSettings(BotAliasLocaleSettingsT&& value) {
116 SetBotAliasLocaleSettings(std::forward<BotAliasLocaleSettingsT>(value));
117 return *this;
118 }
119 template <typename BotAliasLocaleSettingsKeyT = Aws::String, typename BotAliasLocaleSettingsValueT = BotAliasLocaleSettings>
120 CreateBotAliasResult& 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
131 inline const ConversationLogSettings& GetConversationLogSettings() const { return m_conversationLogSettings; }
132 template <typename ConversationLogSettingsT = ConversationLogSettings>
133 void SetConversationLogSettings(ConversationLogSettingsT&& value) {
134 m_conversationLogSettingsHasBeenSet = true;
135 m_conversationLogSettings = std::forward<ConversationLogSettingsT>(value);
136 }
137 template <typename ConversationLogSettingsT = ConversationLogSettings>
138 CreateBotAliasResult& WithConversationLogSettings(ConversationLogSettingsT&& value) {
139 SetConversationLogSettings(std::forward<ConversationLogSettingsT>(value));
140 return *this;
141 }
143
145
146 inline const SentimentAnalysisSettings& GetSentimentAnalysisSettings() const { return m_sentimentAnalysisSettings; }
147 template <typename SentimentAnalysisSettingsT = SentimentAnalysisSettings>
148 void SetSentimentAnalysisSettings(SentimentAnalysisSettingsT&& value) {
149 m_sentimentAnalysisSettingsHasBeenSet = true;
150 m_sentimentAnalysisSettings = std::forward<SentimentAnalysisSettingsT>(value);
151 }
152 template <typename SentimentAnalysisSettingsT = SentimentAnalysisSettings>
153 CreateBotAliasResult& WithSentimentAnalysisSettings(SentimentAnalysisSettingsT&& value) {
154 SetSentimentAnalysisSettings(std::forward<SentimentAnalysisSettingsT>(value));
155 return *this;
156 }
158
160
166 inline BotAliasStatus GetBotAliasStatus() const { return m_botAliasStatus; }
168 m_botAliasStatusHasBeenSet = true;
169 m_botAliasStatus = value;
170 }
172 SetBotAliasStatus(value);
173 return *this;
174 }
176
178
181 inline const Aws::String& GetBotId() const { return m_botId; }
182 template <typename BotIdT = Aws::String>
183 void SetBotId(BotIdT&& value) {
184 m_botIdHasBeenSet = true;
185 m_botId = std::forward<BotIdT>(value);
186 }
187 template <typename BotIdT = Aws::String>
189 SetBotId(std::forward<BotIdT>(value));
190 return *this;
191 }
193
195
199 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
200 template <typename CreationDateTimeT = Aws::Utils::DateTime>
201 void SetCreationDateTime(CreationDateTimeT&& value) {
202 m_creationDateTimeHasBeenSet = true;
203 m_creationDateTime = std::forward<CreationDateTimeT>(value);
204 }
205 template <typename CreationDateTimeT = Aws::Utils::DateTime>
206 CreateBotAliasResult& WithCreationDateTime(CreationDateTimeT&& value) {
207 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
208 return *this;
209 }
211
213
216 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
217 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
218 void SetTags(TagsT&& value) {
219 m_tagsHasBeenSet = true;
220 m_tags = std::forward<TagsT>(value);
221 }
222 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
224 SetTags(std::forward<TagsT>(value));
225 return *this;
226 }
227 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
228 CreateBotAliasResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
229 m_tagsHasBeenSet = true;
230 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
231 return *this;
232 }
234
236
237 inline const Aws::String& GetRequestId() const { return m_requestId; }
238 template <typename RequestIdT = Aws::String>
239 void SetRequestId(RequestIdT&& value) {
240 m_requestIdHasBeenSet = true;
241 m_requestId = std::forward<RequestIdT>(value);
242 }
243 template <typename RequestIdT = Aws::String>
244 CreateBotAliasResult& WithRequestId(RequestIdT&& value) {
245 SetRequestId(std::forward<RequestIdT>(value));
246 return *this;
247 }
249 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
250
251 private:
252 Aws::String m_botAliasId;
253
254 Aws::String m_botAliasName;
255
256 Aws::String m_description;
257
258 Aws::String m_botVersion;
259
260 Aws::Map<Aws::String, BotAliasLocaleSettings> m_botAliasLocaleSettings;
261
262 ConversationLogSettings m_conversationLogSettings;
263
264 SentimentAnalysisSettings m_sentimentAnalysisSettings;
265
266 BotAliasStatus m_botAliasStatus{BotAliasStatus::NOT_SET};
267
268 Aws::String m_botId;
269
270 Aws::Utils::DateTime m_creationDateTime{};
271
273
274 Aws::String m_requestId;
275 Aws::Http::HttpResponseCode m_HttpResponseCode;
276 bool m_botAliasIdHasBeenSet = false;
277 bool m_botAliasNameHasBeenSet = false;
278 bool m_descriptionHasBeenSet = false;
279 bool m_botVersionHasBeenSet = false;
280 bool m_botAliasLocaleSettingsHasBeenSet = false;
281 bool m_conversationLogSettingsHasBeenSet = false;
282 bool m_sentimentAnalysisSettingsHasBeenSet = false;
283 bool m_botAliasStatusHasBeenSet = false;
284 bool m_botIdHasBeenSet = false;
285 bool m_creationDateTimeHasBeenSet = false;
286 bool m_tagsHasBeenSet = false;
287 bool m_requestIdHasBeenSet = false;
288};
289
290} // namespace Model
291} // namespace LexModelsV2
292} // namespace Aws
CreateBotAliasResult & AddBotAliasLocaleSettings(BotAliasLocaleSettingsKeyT &&key, BotAliasLocaleSettingsValueT &&value)
CreateBotAliasResult & WithCreationDateTime(CreationDateTimeT &&value)
CreateBotAliasResult & WithBotAliasStatus(BotAliasStatus value)
CreateBotAliasResult & WithDescription(DescriptionT &&value)
const ConversationLogSettings & GetConversationLogSettings() const
const Aws::Utils::DateTime & GetCreationDateTime() const
AWS_LEXMODELSV2_API CreateBotAliasResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetSentimentAnalysisSettings(SentimentAnalysisSettingsT &&value)
CreateBotAliasResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetConversationLogSettings(ConversationLogSettingsT &&value)
CreateBotAliasResult & WithBotAliasLocaleSettings(BotAliasLocaleSettingsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateBotAliasResult & WithBotId(BotIdT &&value)
const Aws::Map< Aws::String, BotAliasLocaleSettings > & GetBotAliasLocaleSettings() const
CreateBotAliasResult & WithTags(TagsT &&value)
CreateBotAliasResult & WithSentimentAnalysisSettings(SentimentAnalysisSettingsT &&value)
CreateBotAliasResult & WithBotAliasId(BotAliasIdT &&value)
void SetBotAliasLocaleSettings(BotAliasLocaleSettingsT &&value)
CreateBotAliasResult & WithConversationLogSettings(ConversationLogSettingsT &&value)
CreateBotAliasResult & WithBotAliasName(BotAliasNameT &&value)
CreateBotAliasResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateBotAliasResult & WithBotVersion(BotVersionT &&value)
void SetCreationDateTime(CreationDateTimeT &&value)
const SentimentAnalysisSettings & GetSentimentAnalysisSettings() const
AWS_LEXMODELSV2_API CreateBotAliasResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LEXMODELSV2_API CreateBotAliasResult()=default
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