AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
UpdateBotResult.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 UpdateBotResult() = 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 UpdateBotResult& 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 UpdateBotResult& 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 UpdateBotResult& 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 UpdateBotResult& 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 UpdateBotResult& 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 UpdateBotResult& 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 UpdateBotResult& 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 UpdateBotResult& WithBotMembers(BotMembersT&& value) {
217 SetBotMembers(std::forward<BotMembersT>(value));
218 return *this;
219 }
220 template <typename BotMembersT = BotMember>
221 UpdateBotResult& 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 ErrorLogSettings& GetErrorLogSettings() const { return m_errorLogSettings; }
234 template <typename ErrorLogSettingsT = ErrorLogSettings>
235 void SetErrorLogSettings(ErrorLogSettingsT&& value) {
236 m_errorLogSettingsHasBeenSet = true;
237 m_errorLogSettings = std::forward<ErrorLogSettingsT>(value);
238 }
239 template <typename ErrorLogSettingsT = ErrorLogSettings>
240 UpdateBotResult& WithErrorLogSettings(ErrorLogSettingsT&& value) {
241 SetErrorLogSettings(std::forward<ErrorLogSettingsT>(value));
242 return *this;
243 }
245
247
248 inline const Aws::String& GetRequestId() const { return m_requestId; }
249 template <typename RequestIdT = Aws::String>
250 void SetRequestId(RequestIdT&& value) {
251 m_requestIdHasBeenSet = true;
252 m_requestId = std::forward<RequestIdT>(value);
253 }
254 template <typename RequestIdT = Aws::String>
255 UpdateBotResult& WithRequestId(RequestIdT&& value) {
256 SetRequestId(std::forward<RequestIdT>(value));
257 return *this;
258 }
260 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
261
262 private:
263 Aws::String m_botId;
264
265 Aws::String m_botName;
266
267 Aws::String m_description;
268
269 Aws::String m_roleArn;
270
271 DataPrivacy m_dataPrivacy;
272
273 int m_idleSessionTTLInSeconds{0};
274
275 BotStatus m_botStatus{BotStatus::NOT_SET};
276
277 Aws::Utils::DateTime m_creationDateTime{};
278
279 Aws::Utils::DateTime m_lastUpdatedDateTime{};
280
281 BotType m_botType{BotType::NOT_SET};
282
283 Aws::Vector<BotMember> m_botMembers;
284
285 ErrorLogSettings m_errorLogSettings;
286
287 Aws::String m_requestId;
288 Aws::Http::HttpResponseCode m_HttpResponseCode;
289 bool m_botIdHasBeenSet = false;
290 bool m_botNameHasBeenSet = false;
291 bool m_descriptionHasBeenSet = false;
292 bool m_roleArnHasBeenSet = false;
293 bool m_dataPrivacyHasBeenSet = false;
294 bool m_idleSessionTTLInSecondsHasBeenSet = false;
295 bool m_botStatusHasBeenSet = false;
296 bool m_creationDateTimeHasBeenSet = false;
297 bool m_lastUpdatedDateTimeHasBeenSet = false;
298 bool m_botTypeHasBeenSet = false;
299 bool m_botMembersHasBeenSet = false;
300 bool m_errorLogSettingsHasBeenSet = false;
301 bool m_requestIdHasBeenSet = false;
302};
303
304} // namespace Model
305} // namespace LexModelsV2
306} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateBotResult & WithBotId(BotIdT &&value)
UpdateBotResult & WithBotName(BotNameT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetRequestId() const
UpdateBotResult & WithBotType(BotType value)
AWS_LEXMODELSV2_API UpdateBotResult()=default
const Aws::String & GetRoleArn() const
const ErrorLogSettings & GetErrorLogSettings() const
const Aws::Utils::DateTime & GetCreationDateTime() const
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
UpdateBotResult & WithBotStatus(BotStatus value)
UpdateBotResult & WithErrorLogSettings(ErrorLogSettingsT &&value)
UpdateBotResult & WithIdleSessionTTLInSeconds(int value)
AWS_LEXMODELSV2_API UpdateBotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateBotResult & WithCreationDateTime(CreationDateTimeT &&value)
void SetCreationDateTime(CreationDateTimeT &&value)
const Aws::String & GetBotId() const
UpdateBotResult & WithRoleArn(RoleArnT &&value)
void SetDataPrivacy(DataPrivacyT &&value)
const DataPrivacy & GetDataPrivacy() const
UpdateBotResult & AddBotMembers(BotMembersT &&value)
const Aws::Vector< BotMember > & GetBotMembers() const
UpdateBotResult & WithDescription(DescriptionT &&value)
UpdateBotResult & WithDataPrivacy(DataPrivacyT &&value)
void SetErrorLogSettings(ErrorLogSettingsT &&value)
const Aws::String & GetDescription() const
AWS_LEXMODELSV2_API UpdateBotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateBotResult & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
UpdateBotResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
const Aws::String & GetBotName() const
UpdateBotResult & WithBotMembers(BotMembersT &&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