AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateBotResult.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
12#include <aws/lexv2-models/model/BotMember.h>
13#include <aws/lexv2-models/model/BotStatus.h>
14#include <aws/lexv2-models/model/BotType.h>
15#include <aws/lexv2-models/model/DataPrivacy.h>
16#include <aws/lexv2-models/model/ErrorLogSettings.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace LexModelsV2 {
30namespace Model {
32 public:
33 AWS_LEXMODELSV2_API CreateBotResult() = default;
36
38
42 inline const Aws::String& GetBotId() const { return m_botId; }
43 template <typename BotIdT = Aws::String>
44 void SetBotId(BotIdT&& value) {
45 m_botIdHasBeenSet = true;
46 m_botId = std::forward<BotIdT>(value);
47 }
48 template <typename BotIdT = Aws::String>
49 CreateBotResult& WithBotId(BotIdT&& value) {
50 SetBotId(std::forward<BotIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetBotName() const { return m_botName; }
60 template <typename BotNameT = Aws::String>
61 void SetBotName(BotNameT&& value) {
62 m_botNameHasBeenSet = true;
63 m_botName = std::forward<BotNameT>(value);
64 }
65 template <typename BotNameT = Aws::String>
66 CreateBotResult& WithBotName(BotNameT&& value) {
67 SetBotName(std::forward<BotNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
83 CreateBotResult& WithDescription(DescriptionT&& value) {
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
94 template <typename RoleArnT = Aws::String>
95 void SetRoleArn(RoleArnT&& value) {
96 m_roleArnHasBeenSet = true;
97 m_roleArn = std::forward<RoleArnT>(value);
98 }
99 template <typename RoleArnT = Aws::String>
100 CreateBotResult& WithRoleArn(RoleArnT&& value) {
101 SetRoleArn(std::forward<RoleArnT>(value));
102 return *this;
103 }
105
107
110 inline const DataPrivacy& GetDataPrivacy() const { return m_dataPrivacy; }
111 template <typename DataPrivacyT = DataPrivacy>
112 void SetDataPrivacy(DataPrivacyT&& value) {
113 m_dataPrivacyHasBeenSet = true;
114 m_dataPrivacy = std::forward<DataPrivacyT>(value);
115 }
116 template <typename DataPrivacyT = DataPrivacy>
117 CreateBotResult& WithDataPrivacy(DataPrivacyT&& value) {
118 SetDataPrivacy(std::forward<DataPrivacyT>(value));
119 return *this;
120 }
122
124
127 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
128 inline void SetIdleSessionTTLInSeconds(int value) {
129 m_idleSessionTTLInSecondsHasBeenSet = true;
130 m_idleSessionTTLInSeconds = value;
131 }
134 return *this;
135 }
137
139
145 inline BotStatus GetBotStatus() const { return m_botStatus; }
146 inline void SetBotStatus(BotStatus value) {
147 m_botStatusHasBeenSet = true;
148 m_botStatus = value;
149 }
151 SetBotStatus(value);
152 return *this;
153 }
155
157
160 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
161 template <typename CreationDateTimeT = Aws::Utils::DateTime>
162 void SetCreationDateTime(CreationDateTimeT&& value) {
163 m_creationDateTimeHasBeenSet = true;
164 m_creationDateTime = std::forward<CreationDateTimeT>(value);
165 }
166 template <typename CreationDateTimeT = Aws::Utils::DateTime>
167 CreateBotResult& WithCreationDateTime(CreationDateTimeT&& value) {
168 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Map<Aws::String, Aws::String>& GetBotTags() const { return m_botTags; }
178 template <typename BotTagsT = Aws::Map<Aws::String, Aws::String>>
179 void SetBotTags(BotTagsT&& value) {
180 m_botTagsHasBeenSet = true;
181 m_botTags = std::forward<BotTagsT>(value);
182 }
183 template <typename BotTagsT = Aws::Map<Aws::String, Aws::String>>
184 CreateBotResult& WithBotTags(BotTagsT&& value) {
185 SetBotTags(std::forward<BotTagsT>(value));
186 return *this;
187 }
188 template <typename BotTagsKeyT = Aws::String, typename BotTagsValueT = Aws::String>
189 CreateBotResult& AddBotTags(BotTagsKeyT&& key, BotTagsValueT&& value) {
190 m_botTagsHasBeenSet = true;
191 m_botTags.emplace(std::forward<BotTagsKeyT>(key), std::forward<BotTagsValueT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Map<Aws::String, Aws::String>& GetTestBotAliasTags() const { return m_testBotAliasTags; }
201 template <typename TestBotAliasTagsT = Aws::Map<Aws::String, Aws::String>>
202 void SetTestBotAliasTags(TestBotAliasTagsT&& value) {
203 m_testBotAliasTagsHasBeenSet = true;
204 m_testBotAliasTags = std::forward<TestBotAliasTagsT>(value);
205 }
206 template <typename TestBotAliasTagsT = Aws::Map<Aws::String, Aws::String>>
207 CreateBotResult& WithTestBotAliasTags(TestBotAliasTagsT&& value) {
208 SetTestBotAliasTags(std::forward<TestBotAliasTagsT>(value));
209 return *this;
210 }
211 template <typename TestBotAliasTagsKeyT = Aws::String, typename TestBotAliasTagsValueT = Aws::String>
212 CreateBotResult& AddTestBotAliasTags(TestBotAliasTagsKeyT&& key, TestBotAliasTagsValueT&& value) {
213 m_testBotAliasTagsHasBeenSet = true;
214 m_testBotAliasTags.emplace(std::forward<TestBotAliasTagsKeyT>(key), std::forward<TestBotAliasTagsValueT>(value));
215 return *this;
216 }
218
220
223 inline BotType GetBotType() const { return m_botType; }
224 inline void SetBotType(BotType value) {
225 m_botTypeHasBeenSet = true;
226 m_botType = value;
227 }
229 SetBotType(value);
230 return *this;
231 }
233
235
238 inline const Aws::Vector<BotMember>& GetBotMembers() const { return m_botMembers; }
239 template <typename BotMembersT = Aws::Vector<BotMember>>
240 void SetBotMembers(BotMembersT&& value) {
241 m_botMembersHasBeenSet = true;
242 m_botMembers = std::forward<BotMembersT>(value);
243 }
244 template <typename BotMembersT = Aws::Vector<BotMember>>
245 CreateBotResult& WithBotMembers(BotMembersT&& value) {
246 SetBotMembers(std::forward<BotMembersT>(value));
247 return *this;
248 }
249 template <typename BotMembersT = BotMember>
250 CreateBotResult& AddBotMembers(BotMembersT&& value) {
251 m_botMembersHasBeenSet = true;
252 m_botMembers.emplace_back(std::forward<BotMembersT>(value));
253 return *this;
254 }
256
258
262 inline const ErrorLogSettings& GetErrorLogSettings() const { return m_errorLogSettings; }
263 template <typename ErrorLogSettingsT = ErrorLogSettings>
264 void SetErrorLogSettings(ErrorLogSettingsT&& value) {
265 m_errorLogSettingsHasBeenSet = true;
266 m_errorLogSettings = std::forward<ErrorLogSettingsT>(value);
267 }
268 template <typename ErrorLogSettingsT = ErrorLogSettings>
269 CreateBotResult& WithErrorLogSettings(ErrorLogSettingsT&& value) {
270 SetErrorLogSettings(std::forward<ErrorLogSettingsT>(value));
271 return *this;
272 }
274
276
277 inline const Aws::String& GetRequestId() const { return m_requestId; }
278 template <typename RequestIdT = Aws::String>
279 void SetRequestId(RequestIdT&& value) {
280 m_requestIdHasBeenSet = true;
281 m_requestId = std::forward<RequestIdT>(value);
282 }
283 template <typename RequestIdT = Aws::String>
284 CreateBotResult& WithRequestId(RequestIdT&& value) {
285 SetRequestId(std::forward<RequestIdT>(value));
286 return *this;
287 }
289 private:
290 Aws::String m_botId;
291
292 Aws::String m_botName;
293
294 Aws::String m_description;
295
296 Aws::String m_roleArn;
297
298 DataPrivacy m_dataPrivacy;
299
300 int m_idleSessionTTLInSeconds{0};
301
302 BotStatus m_botStatus{BotStatus::NOT_SET};
303
304 Aws::Utils::DateTime m_creationDateTime{};
305
307
308 Aws::Map<Aws::String, Aws::String> m_testBotAliasTags;
309
310 BotType m_botType{BotType::NOT_SET};
311
312 Aws::Vector<BotMember> m_botMembers;
313
314 ErrorLogSettings m_errorLogSettings;
315
316 Aws::String m_requestId;
317 bool m_botIdHasBeenSet = false;
318 bool m_botNameHasBeenSet = false;
319 bool m_descriptionHasBeenSet = false;
320 bool m_roleArnHasBeenSet = false;
321 bool m_dataPrivacyHasBeenSet = false;
322 bool m_idleSessionTTLInSecondsHasBeenSet = false;
323 bool m_botStatusHasBeenSet = false;
324 bool m_creationDateTimeHasBeenSet = false;
325 bool m_botTagsHasBeenSet = false;
326 bool m_testBotAliasTagsHasBeenSet = false;
327 bool m_botTypeHasBeenSet = false;
328 bool m_botMembersHasBeenSet = false;
329 bool m_errorLogSettingsHasBeenSet = false;
330 bool m_requestIdHasBeenSet = false;
331};
332
333} // namespace Model
334} // namespace LexModelsV2
335} // namespace Aws
CreateBotResult & WithErrorLogSettings(ErrorLogSettingsT &&value)
void SetErrorLogSettings(ErrorLogSettingsT &&value)
void SetDescription(DescriptionT &&value)
AWS_LEXMODELSV2_API CreateBotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetBotId() const
CreateBotResult & WithBotType(BotType value)
CreateBotResult & WithDescription(DescriptionT &&value)
AWS_LEXMODELSV2_API CreateBotResult()=default
CreateBotResult & AddTestBotAliasTags(TestBotAliasTagsKeyT &&key, TestBotAliasTagsValueT &&value)
CreateBotResult & WithCreationDateTime(CreationDateTimeT &&value)
AWS_LEXMODELSV2_API CreateBotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const ErrorLogSettings & GetErrorLogSettings() const
CreateBotResult & WithRequestId(RequestIdT &&value)
CreateBotResult & AddBotMembers(BotMembersT &&value)
const Aws::String & GetDescription() const
const DataPrivacy & GetDataPrivacy() const
void SetDataPrivacy(DataPrivacyT &&value)
CreateBotResult & AddBotTags(BotTagsKeyT &&key, BotTagsValueT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetRoleArn() const
CreateBotResult & WithBotName(BotNameT &&value)
void SetCreationDateTime(CreationDateTimeT &&value)
CreateBotResult & WithDataPrivacy(DataPrivacyT &&value)
void SetTestBotAliasTags(TestBotAliasTagsT &&value)
const Aws::Vector< BotMember > & GetBotMembers() const
CreateBotResult & WithBotTags(BotTagsT &&value)
CreateBotResult & WithRoleArn(RoleArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTestBotAliasTags() const
CreateBotResult & WithBotStatus(BotStatus value)
CreateBotResult & WithBotMembers(BotMembersT &&value)
CreateBotResult & WithBotId(BotIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetBotTags() const
const Aws::String & GetBotName() const
CreateBotResult & WithTestBotAliasTags(TestBotAliasTagsT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
CreateBotResult & WithIdleSessionTTLInSeconds(int 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