AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeBotResult.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/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 DescribeBotResult() = default;
36
38
41 inline const Aws::String& GetBotId() const { return m_botId; }
42 template <typename BotIdT = Aws::String>
43 void SetBotId(BotIdT&& value) {
44 m_botIdHasBeenSet = true;
45 m_botId = std::forward<BotIdT>(value);
46 }
47 template <typename BotIdT = Aws::String>
48 DescribeBotResult& WithBotId(BotIdT&& value) {
49 SetBotId(std::forward<BotIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetBotName() const { return m_botName; }
59 template <typename BotNameT = Aws::String>
60 void SetBotName(BotNameT&& value) {
61 m_botNameHasBeenSet = true;
62 m_botName = std::forward<BotNameT>(value);
63 }
64 template <typename BotNameT = Aws::String>
65 DescribeBotResult& WithBotName(BotNameT&& value) {
66 SetBotName(std::forward<BotNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
82 DescribeBotResult& WithDescription(DescriptionT&& value) {
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
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 DescribeBotResult& WithRoleArn(RoleArnT&& value) {
101 SetRoleArn(std::forward<RoleArnT>(value));
102 return *this;
103 }
105
107
111 inline const DataPrivacy& GetDataPrivacy() const { return m_dataPrivacy; }
112 template <typename DataPrivacyT = DataPrivacy>
113 void SetDataPrivacy(DataPrivacyT&& value) {
114 m_dataPrivacyHasBeenSet = true;
115 m_dataPrivacy = std::forward<DataPrivacyT>(value);
116 }
117 template <typename DataPrivacyT = DataPrivacy>
118 DescribeBotResult& WithDataPrivacy(DataPrivacyT&& value) {
119 SetDataPrivacy(std::forward<DataPrivacyT>(value));
120 return *this;
121 }
123
125
129 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
130 inline void SetIdleSessionTTLInSeconds(int value) {
131 m_idleSessionTTLInSecondsHasBeenSet = true;
132 m_idleSessionTTLInSeconds = value;
133 }
136 return *this;
137 }
139
141
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 DescribeBotResult& WithCreationDateTime(CreationDateTimeT&& value) {
168 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
178 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
179 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
180 m_lastUpdatedDateTimeHasBeenSet = true;
181 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
182 }
183 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
184 DescribeBotResult& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
185 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
186 return *this;
187 }
189
191
194 inline BotType GetBotType() const { return m_botType; }
195 inline void SetBotType(BotType value) {
196 m_botTypeHasBeenSet = true;
197 m_botType = value;
198 }
200 SetBotType(value);
201 return *this;
202 }
204
206
209 inline const Aws::Vector<BotMember>& GetBotMembers() const { return m_botMembers; }
210 template <typename BotMembersT = Aws::Vector<BotMember>>
211 void SetBotMembers(BotMembersT&& value) {
212 m_botMembersHasBeenSet = true;
213 m_botMembers = std::forward<BotMembersT>(value);
214 }
215 template <typename BotMembersT = Aws::Vector<BotMember>>
216 DescribeBotResult& WithBotMembers(BotMembersT&& value) {
217 SetBotMembers(std::forward<BotMembersT>(value));
218 return *this;
219 }
220 template <typename BotMembersT = BotMember>
221 DescribeBotResult& AddBotMembers(BotMembersT&& value) {
222 m_botMembersHasBeenSet = true;
223 m_botMembers.emplace_back(std::forward<BotMembersT>(value));
224 return *this;
225 }
227
229
233 inline const Aws::Vector<Aws::String>& GetFailureReasons() const { return m_failureReasons; }
234 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
235 void SetFailureReasons(FailureReasonsT&& value) {
236 m_failureReasonsHasBeenSet = true;
237 m_failureReasons = std::forward<FailureReasonsT>(value);
238 }
239 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
240 DescribeBotResult& WithFailureReasons(FailureReasonsT&& value) {
241 SetFailureReasons(std::forward<FailureReasonsT>(value));
242 return *this;
243 }
244 template <typename FailureReasonsT = Aws::String>
245 DescribeBotResult& AddFailureReasons(FailureReasonsT&& value) {
246 m_failureReasonsHasBeenSet = true;
247 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
248 return *this;
249 }
251
253
257 inline const ErrorLogSettings& GetErrorLogSettings() const { return m_errorLogSettings; }
258 template <typename ErrorLogSettingsT = ErrorLogSettings>
259 void SetErrorLogSettings(ErrorLogSettingsT&& value) {
260 m_errorLogSettingsHasBeenSet = true;
261 m_errorLogSettings = std::forward<ErrorLogSettingsT>(value);
262 }
263 template <typename ErrorLogSettingsT = ErrorLogSettings>
264 DescribeBotResult& WithErrorLogSettings(ErrorLogSettingsT&& value) {
265 SetErrorLogSettings(std::forward<ErrorLogSettingsT>(value));
266 return *this;
267 }
269
271
272 inline const Aws::String& GetRequestId() const { return m_requestId; }
273 template <typename RequestIdT = Aws::String>
274 void SetRequestId(RequestIdT&& value) {
275 m_requestIdHasBeenSet = true;
276 m_requestId = std::forward<RequestIdT>(value);
277 }
278 template <typename RequestIdT = Aws::String>
279 DescribeBotResult& WithRequestId(RequestIdT&& value) {
280 SetRequestId(std::forward<RequestIdT>(value));
281 return *this;
282 }
284 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
285
286 private:
287 Aws::String m_botId;
288
289 Aws::String m_botName;
290
291 Aws::String m_description;
292
293 Aws::String m_roleArn;
294
295 DataPrivacy m_dataPrivacy;
296
297 int m_idleSessionTTLInSeconds{0};
298
299 BotStatus m_botStatus{BotStatus::NOT_SET};
300
301 Aws::Utils::DateTime m_creationDateTime{};
302
303 Aws::Utils::DateTime m_lastUpdatedDateTime{};
304
305 BotType m_botType{BotType::NOT_SET};
306
307 Aws::Vector<BotMember> m_botMembers;
308
309 Aws::Vector<Aws::String> m_failureReasons;
310
311 ErrorLogSettings m_errorLogSettings;
312
313 Aws::String m_requestId;
314 Aws::Http::HttpResponseCode m_HttpResponseCode;
315 bool m_botIdHasBeenSet = false;
316 bool m_botNameHasBeenSet = false;
317 bool m_descriptionHasBeenSet = false;
318 bool m_roleArnHasBeenSet = false;
319 bool m_dataPrivacyHasBeenSet = false;
320 bool m_idleSessionTTLInSecondsHasBeenSet = false;
321 bool m_botStatusHasBeenSet = false;
322 bool m_creationDateTimeHasBeenSet = false;
323 bool m_lastUpdatedDateTimeHasBeenSet = false;
324 bool m_botTypeHasBeenSet = false;
325 bool m_botMembersHasBeenSet = false;
326 bool m_failureReasonsHasBeenSet = false;
327 bool m_errorLogSettingsHasBeenSet = false;
328 bool m_requestIdHasBeenSet = false;
329};
330
331} // namespace Model
332} // namespace LexModelsV2
333} // namespace Aws
const Aws::Utils::DateTime & GetCreationDateTime() const
AWS_LEXMODELSV2_API DescribeBotResult()=default
AWS_LEXMODELSV2_API DescribeBotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
const Aws::Vector< BotMember > & GetBotMembers() const
const Aws::Vector< Aws::String > & GetFailureReasons() const
DescribeBotResult & WithRoleArn(RoleArnT &&value)
void SetErrorLogSettings(ErrorLogSettingsT &&value)
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
DescribeBotResult & WithDataPrivacy(DataPrivacyT &&value)
DescribeBotResult & WithBotName(BotNameT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeBotResult & AddBotMembers(BotMembersT &&value)
DescribeBotResult & WithErrorLogSettings(ErrorLogSettingsT &&value)
void SetFailureReasons(FailureReasonsT &&value)
AWS_LEXMODELSV2_API DescribeBotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeBotResult & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
DescribeBotResult & WithCreationDateTime(CreationDateTimeT &&value)
DescribeBotResult & WithRequestId(RequestIdT &&value)
DescribeBotResult & WithIdleSessionTTLInSeconds(int value)
DescribeBotResult & WithBotStatus(BotStatus value)
DescribeBotResult & WithBotMembers(BotMembersT &&value)
DescribeBotResult & WithDescription(DescriptionT &&value)
DescribeBotResult & WithBotId(BotIdT &&value)
DescribeBotResult & WithFailureReasons(FailureReasonsT &&value)
DescribeBotResult & WithBotType(BotType value)
DescribeBotResult & AddFailureReasons(FailureReasonsT &&value)
const ErrorLogSettings & GetErrorLogSettings() const
void SetCreationDateTime(CreationDateTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue