AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeBotVersionResult.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/ParentBotNetwork.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 DescribeBotVersionResult() = 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>
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>
66 SetBotName(std::forward<BotNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
76 template <typename BotVersionT = Aws::String>
77 void SetBotVersion(BotVersionT&& value) {
78 m_botVersionHasBeenSet = true;
79 m_botVersion = std::forward<BotVersionT>(value);
80 }
81 template <typename BotVersionT = Aws::String>
83 SetBotVersion(std::forward<BotVersionT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 template <typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) {
95 m_descriptionHasBeenSet = true;
96 m_description = std::forward<DescriptionT>(value);
97 }
98 template <typename DescriptionT = Aws::String>
100 SetDescription(std::forward<DescriptionT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
111 template <typename RoleArnT = Aws::String>
112 void SetRoleArn(RoleArnT&& value) {
113 m_roleArnHasBeenSet = true;
114 m_roleArn = std::forward<RoleArnT>(value);
115 }
116 template <typename RoleArnT = Aws::String>
118 SetRoleArn(std::forward<RoleArnT>(value));
119 return *this;
120 }
122
124
127 inline const DataPrivacy& GetDataPrivacy() const { return m_dataPrivacy; }
128 template <typename DataPrivacyT = DataPrivacy>
129 void SetDataPrivacy(DataPrivacyT&& value) {
130 m_dataPrivacyHasBeenSet = true;
131 m_dataPrivacy = std::forward<DataPrivacyT>(value);
132 }
133 template <typename DataPrivacyT = DataPrivacy>
135 SetDataPrivacy(std::forward<DataPrivacyT>(value));
136 return *this;
137 }
139
141
145 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
146 inline void SetIdleSessionTTLInSeconds(int value) {
147 m_idleSessionTTLInSecondsHasBeenSet = true;
148 m_idleSessionTTLInSeconds = value;
149 }
152 return *this;
153 }
155
157
161 inline BotStatus GetBotStatus() const { return m_botStatus; }
162 inline void SetBotStatus(BotStatus value) {
163 m_botStatusHasBeenSet = true;
164 m_botStatus = value;
165 }
167 SetBotStatus(value);
168 return *this;
169 }
171
173
177 inline const Aws::Vector<Aws::String>& GetFailureReasons() const { return m_failureReasons; }
178 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
179 void SetFailureReasons(FailureReasonsT&& value) {
180 m_failureReasonsHasBeenSet = true;
181 m_failureReasons = std::forward<FailureReasonsT>(value);
182 }
183 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
185 SetFailureReasons(std::forward<FailureReasonsT>(value));
186 return *this;
187 }
188 template <typename FailureReasonsT = Aws::String>
189 DescribeBotVersionResult& AddFailureReasons(FailureReasonsT&& value) {
190 m_failureReasonsHasBeenSet = true;
191 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
201 template <typename CreationDateTimeT = Aws::Utils::DateTime>
202 void SetCreationDateTime(CreationDateTimeT&& value) {
203 m_creationDateTimeHasBeenSet = true;
204 m_creationDateTime = std::forward<CreationDateTimeT>(value);
205 }
206 template <typename CreationDateTimeT = Aws::Utils::DateTime>
207 DescribeBotVersionResult& WithCreationDateTime(CreationDateTimeT&& value) {
208 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::Vector<ParentBotNetwork>& GetParentBotNetworks() const { return m_parentBotNetworks; }
218 template <typename ParentBotNetworksT = Aws::Vector<ParentBotNetwork>>
219 void SetParentBotNetworks(ParentBotNetworksT&& value) {
220 m_parentBotNetworksHasBeenSet = true;
221 m_parentBotNetworks = std::forward<ParentBotNetworksT>(value);
222 }
223 template <typename ParentBotNetworksT = Aws::Vector<ParentBotNetwork>>
224 DescribeBotVersionResult& WithParentBotNetworks(ParentBotNetworksT&& value) {
225 SetParentBotNetworks(std::forward<ParentBotNetworksT>(value));
226 return *this;
227 }
228 template <typename ParentBotNetworksT = ParentBotNetwork>
229 DescribeBotVersionResult& AddParentBotNetworks(ParentBotNetworksT&& value) {
230 m_parentBotNetworksHasBeenSet = true;
231 m_parentBotNetworks.emplace_back(std::forward<ParentBotNetworksT>(value));
232 return *this;
233 }
235
237
240 inline BotType GetBotType() const { return m_botType; }
241 inline void SetBotType(BotType value) {
242 m_botTypeHasBeenSet = true;
243 m_botType = value;
244 }
246 SetBotType(value);
247 return *this;
248 }
250
252
255 inline const Aws::Vector<BotMember>& GetBotMembers() const { return m_botMembers; }
256 template <typename BotMembersT = Aws::Vector<BotMember>>
257 void SetBotMembers(BotMembersT&& value) {
258 m_botMembersHasBeenSet = true;
259 m_botMembers = std::forward<BotMembersT>(value);
260 }
261 template <typename BotMembersT = Aws::Vector<BotMember>>
263 SetBotMembers(std::forward<BotMembersT>(value));
264 return *this;
265 }
266 template <typename BotMembersT = BotMember>
268 m_botMembersHasBeenSet = true;
269 m_botMembers.emplace_back(std::forward<BotMembersT>(value));
270 return *this;
271 }
273
275
276 inline const Aws::String& GetRequestId() const { return m_requestId; }
277 template <typename RequestIdT = Aws::String>
278 void SetRequestId(RequestIdT&& value) {
279 m_requestIdHasBeenSet = true;
280 m_requestId = std::forward<RequestIdT>(value);
281 }
282 template <typename RequestIdT = Aws::String>
284 SetRequestId(std::forward<RequestIdT>(value));
285 return *this;
286 }
288 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
289
290 private:
291 Aws::String m_botId;
292
293 Aws::String m_botName;
294
295 Aws::String m_botVersion;
296
297 Aws::String m_description;
298
299 Aws::String m_roleArn;
300
301 DataPrivacy m_dataPrivacy;
302
303 int m_idleSessionTTLInSeconds{0};
304
305 BotStatus m_botStatus{BotStatus::NOT_SET};
306
307 Aws::Vector<Aws::String> m_failureReasons;
308
309 Aws::Utils::DateTime m_creationDateTime{};
310
311 Aws::Vector<ParentBotNetwork> m_parentBotNetworks;
312
313 BotType m_botType{BotType::NOT_SET};
314
315 Aws::Vector<BotMember> m_botMembers;
316
317 Aws::String m_requestId;
318 Aws::Http::HttpResponseCode m_HttpResponseCode;
319 bool m_botIdHasBeenSet = false;
320 bool m_botNameHasBeenSet = false;
321 bool m_botVersionHasBeenSet = false;
322 bool m_descriptionHasBeenSet = false;
323 bool m_roleArnHasBeenSet = false;
324 bool m_dataPrivacyHasBeenSet = false;
325 bool m_idleSessionTTLInSecondsHasBeenSet = false;
326 bool m_botStatusHasBeenSet = false;
327 bool m_failureReasonsHasBeenSet = false;
328 bool m_creationDateTimeHasBeenSet = false;
329 bool m_parentBotNetworksHasBeenSet = false;
330 bool m_botTypeHasBeenSet = false;
331 bool m_botMembersHasBeenSet = false;
332 bool m_requestIdHasBeenSet = false;
333};
334
335} // namespace Model
336} // namespace LexModelsV2
337} // namespace Aws
AWS_LEXMODELSV2_API DescribeBotVersionResult()=default
const Aws::Vector< BotMember > & GetBotMembers() const
DescribeBotVersionResult & WithBotId(BotIdT &&value)
DescribeBotVersionResult & WithBotName(BotNameT &&value)
const Aws::Vector< Aws::String > & GetFailureReasons() const
DescribeBotVersionResult & WithParentBotNetworks(ParentBotNetworksT &&value)
const Aws::Vector< ParentBotNetwork > & GetParentBotNetworks() const
DescribeBotVersionResult & WithBotStatus(BotStatus value)
DescribeBotVersionResult & WithRequestId(RequestIdT &&value)
DescribeBotVersionResult & WithRoleArn(RoleArnT &&value)
DescribeBotVersionResult & WithBotType(BotType value)
DescribeBotVersionResult & WithBotMembers(BotMembersT &&value)
DescribeBotVersionResult & WithBotVersion(BotVersionT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
DescribeBotVersionResult & AddFailureReasons(FailureReasonsT &&value)
DescribeBotVersionResult & WithCreationDateTime(CreationDateTimeT &&value)
DescribeBotVersionResult & WithIdleSessionTTLInSeconds(int value)
DescribeBotVersionResult & AddBotMembers(BotMembersT &&value)
DescribeBotVersionResult & WithDescription(DescriptionT &&value)
DescribeBotVersionResult & WithDataPrivacy(DataPrivacyT &&value)
DescribeBotVersionResult & WithFailureReasons(FailureReasonsT &&value)
AWS_LEXMODELSV2_API DescribeBotVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeBotVersionResult & AddParentBotNetworks(ParentBotNetworksT &&value)
AWS_LEXMODELSV2_API DescribeBotVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue