AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
CreateBotAliasResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
11#include <aws/lexv2-models/model/BotAliasLocaleSettings.h>
12#include <aws/lexv2-models/model/BotAliasStatus.h>
13#include <aws/lexv2-models/model/ConversationLogSettings.h>
14#include <aws/lexv2-models/model/SentimentAnalysisSettings.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace LexModelsV2 {
28namespace Model {
30 public:
31 AWS_LEXMODELSV2_API CreateBotAliasResult() = default;
34
36
39 inline const Aws::String& GetBotAliasId() const { return m_botAliasId; }
40 template <typename BotAliasIdT = Aws::String>
41 void SetBotAliasId(BotAliasIdT&& value) {
42 m_botAliasIdHasBeenSet = true;
43 m_botAliasId = std::forward<BotAliasIdT>(value);
44 }
45 template <typename BotAliasIdT = Aws::String>
46 CreateBotAliasResult& WithBotAliasId(BotAliasIdT&& value) {
47 SetBotAliasId(std::forward<BotAliasIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetBotAliasName() const { return m_botAliasName; }
57 template <typename BotAliasNameT = Aws::String>
58 void SetBotAliasName(BotAliasNameT&& value) {
59 m_botAliasNameHasBeenSet = true;
60 m_botAliasName = std::forward<BotAliasNameT>(value);
61 }
62 template <typename BotAliasNameT = Aws::String>
63 CreateBotAliasResult& WithBotAliasName(BotAliasNameT&& value) {
64 SetBotAliasName(std::forward<BotAliasNameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 template <typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) {
76 m_descriptionHasBeenSet = true;
77 m_description = std::forward<DescriptionT>(value);
78 }
79 template <typename DescriptionT = Aws::String>
80 CreateBotAliasResult& WithDescription(DescriptionT&& value) {
81 SetDescription(std::forward<DescriptionT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
91 template <typename BotVersionT = Aws::String>
92 void SetBotVersion(BotVersionT&& value) {
93 m_botVersionHasBeenSet = true;
94 m_botVersion = std::forward<BotVersionT>(value);
95 }
96 template <typename BotVersionT = Aws::String>
97 CreateBotAliasResult& WithBotVersion(BotVersionT&& value) {
98 SetBotVersion(std::forward<BotVersionT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Map<Aws::String, BotAliasLocaleSettings>& GetBotAliasLocaleSettings() const { return m_botAliasLocaleSettings; }
108 template <typename BotAliasLocaleSettingsT = Aws::Map<Aws::String, BotAliasLocaleSettings>>
109 void SetBotAliasLocaleSettings(BotAliasLocaleSettingsT&& value) {
110 m_botAliasLocaleSettingsHasBeenSet = true;
111 m_botAliasLocaleSettings = std::forward<BotAliasLocaleSettingsT>(value);
112 }
113 template <typename BotAliasLocaleSettingsT = Aws::Map<Aws::String, BotAliasLocaleSettings>>
114 CreateBotAliasResult& WithBotAliasLocaleSettings(BotAliasLocaleSettingsT&& value) {
115 SetBotAliasLocaleSettings(std::forward<BotAliasLocaleSettingsT>(value));
116 return *this;
117 }
118 template <typename BotAliasLocaleSettingsKeyT = Aws::String, typename BotAliasLocaleSettingsValueT = BotAliasLocaleSettings>
119 CreateBotAliasResult& AddBotAliasLocaleSettings(BotAliasLocaleSettingsKeyT&& key, BotAliasLocaleSettingsValueT&& value) {
120 m_botAliasLocaleSettingsHasBeenSet = true;
121 m_botAliasLocaleSettings.emplace(std::forward<BotAliasLocaleSettingsKeyT>(key), std::forward<BotAliasLocaleSettingsValueT>(value));
122 return *this;
123 }
125
127
130 inline const ConversationLogSettings& GetConversationLogSettings() const { return m_conversationLogSettings; }
131 template <typename ConversationLogSettingsT = ConversationLogSettings>
132 void SetConversationLogSettings(ConversationLogSettingsT&& value) {
133 m_conversationLogSettingsHasBeenSet = true;
134 m_conversationLogSettings = std::forward<ConversationLogSettingsT>(value);
135 }
136 template <typename ConversationLogSettingsT = ConversationLogSettings>
137 CreateBotAliasResult& WithConversationLogSettings(ConversationLogSettingsT&& value) {
138 SetConversationLogSettings(std::forward<ConversationLogSettingsT>(value));
139 return *this;
140 }
142
144
145 inline const SentimentAnalysisSettings& GetSentimentAnalysisSettings() const { return m_sentimentAnalysisSettings; }
146 template <typename SentimentAnalysisSettingsT = SentimentAnalysisSettings>
147 void SetSentimentAnalysisSettings(SentimentAnalysisSettingsT&& value) {
148 m_sentimentAnalysisSettingsHasBeenSet = true;
149 m_sentimentAnalysisSettings = std::forward<SentimentAnalysisSettingsT>(value);
150 }
151 template <typename SentimentAnalysisSettingsT = SentimentAnalysisSettings>
152 CreateBotAliasResult& WithSentimentAnalysisSettings(SentimentAnalysisSettingsT&& value) {
153 SetSentimentAnalysisSettings(std::forward<SentimentAnalysisSettingsT>(value));
154 return *this;
155 }
157
159
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
198 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
199 template <typename CreationDateTimeT = Aws::Utils::DateTime>
200 void SetCreationDateTime(CreationDateTimeT&& value) {
201 m_creationDateTimeHasBeenSet = true;
202 m_creationDateTime = std::forward<CreationDateTimeT>(value);
203 }
204 template <typename CreationDateTimeT = Aws::Utils::DateTime>
205 CreateBotAliasResult& WithCreationDateTime(CreationDateTimeT&& value) {
206 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
216 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
217 void SetTags(TagsT&& value) {
218 m_tagsHasBeenSet = true;
219 m_tags = std::forward<TagsT>(value);
220 }
221 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
223 SetTags(std::forward<TagsT>(value));
224 return *this;
225 }
226 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
227 CreateBotAliasResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
228 m_tagsHasBeenSet = true;
229 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
230 return *this;
231 }
233
235
236 inline const Aws::String& GetRequestId() const { return m_requestId; }
237 template <typename RequestIdT = Aws::String>
238 void SetRequestId(RequestIdT&& value) {
239 m_requestIdHasBeenSet = true;
240 m_requestId = std::forward<RequestIdT>(value);
241 }
242 template <typename RequestIdT = Aws::String>
243 CreateBotAliasResult& WithRequestId(RequestIdT&& value) {
244 SetRequestId(std::forward<RequestIdT>(value));
245 return *this;
246 }
248 private:
249 Aws::String m_botAliasId;
250
251 Aws::String m_botAliasName;
252
253 Aws::String m_description;
254
255 Aws::String m_botVersion;
256
257 Aws::Map<Aws::String, BotAliasLocaleSettings> m_botAliasLocaleSettings;
258
259 ConversationLogSettings m_conversationLogSettings;
260
261 SentimentAnalysisSettings m_sentimentAnalysisSettings;
262
263 BotAliasStatus m_botAliasStatus{BotAliasStatus::NOT_SET};
264
265 Aws::String m_botId;
266
267 Aws::Utils::DateTime m_creationDateTime{};
268
270
271 Aws::String m_requestId;
272 bool m_botAliasIdHasBeenSet = false;
273 bool m_botAliasNameHasBeenSet = false;
274 bool m_descriptionHasBeenSet = false;
275 bool m_botVersionHasBeenSet = false;
276 bool m_botAliasLocaleSettingsHasBeenSet = false;
277 bool m_conversationLogSettingsHasBeenSet = false;
278 bool m_sentimentAnalysisSettingsHasBeenSet = false;
279 bool m_botAliasStatusHasBeenSet = false;
280 bool m_botIdHasBeenSet = false;
281 bool m_creationDateTimeHasBeenSet = false;
282 bool m_tagsHasBeenSet = false;
283 bool m_requestIdHasBeenSet = false;
284};
285
286} // namespace Model
287} // namespace LexModelsV2
288} // 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)
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