AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
UpdateBotResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
11#include <aws/lexv2-models/model/BotMember.h>
12#include <aws/lexv2-models/model/BotStatus.h>
13#include <aws/lexv2-models/model/BotType.h>
14#include <aws/lexv2-models/model/DataPrivacy.h>
15#include <aws/lexv2-models/model/ErrorLogSettings.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace LexModelsV2 {
29namespace Model {
31 public:
32 AWS_LEXMODELSV2_API UpdateBotResult() = default;
35
37
40 inline const Aws::String& GetBotId() const { return m_botId; }
41 template <typename BotIdT = Aws::String>
42 void SetBotId(BotIdT&& value) {
43 m_botIdHasBeenSet = true;
44 m_botId = std::forward<BotIdT>(value);
45 }
46 template <typename BotIdT = Aws::String>
47 UpdateBotResult& WithBotId(BotIdT&& value) {
48 SetBotId(std::forward<BotIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetBotName() const { return m_botName; }
58 template <typename BotNameT = Aws::String>
59 void SetBotName(BotNameT&& value) {
60 m_botNameHasBeenSet = true;
61 m_botName = std::forward<BotNameT>(value);
62 }
63 template <typename BotNameT = Aws::String>
64 UpdateBotResult& WithBotName(BotNameT&& value) {
65 SetBotName(std::forward<BotNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
81 UpdateBotResult& WithDescription(DescriptionT&& value) {
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
93 template <typename RoleArnT = Aws::String>
94 void SetRoleArn(RoleArnT&& value) {
95 m_roleArnHasBeenSet = true;
96 m_roleArn = std::forward<RoleArnT>(value);
97 }
98 template <typename RoleArnT = Aws::String>
99 UpdateBotResult& WithRoleArn(RoleArnT&& value) {
100 SetRoleArn(std::forward<RoleArnT>(value));
101 return *this;
102 }
104
106
109 inline const DataPrivacy& GetDataPrivacy() const { return m_dataPrivacy; }
110 template <typename DataPrivacyT = DataPrivacy>
111 void SetDataPrivacy(DataPrivacyT&& value) {
112 m_dataPrivacyHasBeenSet = true;
113 m_dataPrivacy = std::forward<DataPrivacyT>(value);
114 }
115 template <typename DataPrivacyT = DataPrivacy>
116 UpdateBotResult& WithDataPrivacy(DataPrivacyT&& value) {
117 SetDataPrivacy(std::forward<DataPrivacyT>(value));
118 return *this;
119 }
121
123
126 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
127 inline void SetIdleSessionTTLInSeconds(int value) {
128 m_idleSessionTTLInSecondsHasBeenSet = true;
129 m_idleSessionTTLInSeconds = value;
130 }
133 return *this;
134 }
136
138
144 inline BotStatus GetBotStatus() const { return m_botStatus; }
145 inline void SetBotStatus(BotStatus value) {
146 m_botStatusHasBeenSet = true;
147 m_botStatus = value;
148 }
150 SetBotStatus(value);
151 return *this;
152 }
154
156
159 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
160 template <typename CreationDateTimeT = Aws::Utils::DateTime>
161 void SetCreationDateTime(CreationDateTimeT&& value) {
162 m_creationDateTimeHasBeenSet = true;
163 m_creationDateTime = std::forward<CreationDateTimeT>(value);
164 }
165 template <typename CreationDateTimeT = Aws::Utils::DateTime>
166 UpdateBotResult& WithCreationDateTime(CreationDateTimeT&& value) {
167 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
177 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
178 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
179 m_lastUpdatedDateTimeHasBeenSet = true;
180 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
181 }
182 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
183 UpdateBotResult& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
184 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
185 return *this;
186 }
188
190
193 inline BotType GetBotType() const { return m_botType; }
194 inline void SetBotType(BotType value) {
195 m_botTypeHasBeenSet = true;
196 m_botType = value;
197 }
199 SetBotType(value);
200 return *this;
201 }
203
205
208 inline const Aws::Vector<BotMember>& GetBotMembers() const { return m_botMembers; }
209 template <typename BotMembersT = Aws::Vector<BotMember>>
210 void SetBotMembers(BotMembersT&& value) {
211 m_botMembersHasBeenSet = true;
212 m_botMembers = std::forward<BotMembersT>(value);
213 }
214 template <typename BotMembersT = Aws::Vector<BotMember>>
215 UpdateBotResult& WithBotMembers(BotMembersT&& value) {
216 SetBotMembers(std::forward<BotMembersT>(value));
217 return *this;
218 }
219 template <typename BotMembersT = BotMember>
220 UpdateBotResult& AddBotMembers(BotMembersT&& value) {
221 m_botMembersHasBeenSet = true;
222 m_botMembers.emplace_back(std::forward<BotMembersT>(value));
223 return *this;
224 }
226
228
232 inline const ErrorLogSettings& GetErrorLogSettings() const { return m_errorLogSettings; }
233 template <typename ErrorLogSettingsT = ErrorLogSettings>
234 void SetErrorLogSettings(ErrorLogSettingsT&& value) {
235 m_errorLogSettingsHasBeenSet = true;
236 m_errorLogSettings = std::forward<ErrorLogSettingsT>(value);
237 }
238 template <typename ErrorLogSettingsT = ErrorLogSettings>
239 UpdateBotResult& WithErrorLogSettings(ErrorLogSettingsT&& value) {
240 SetErrorLogSettings(std::forward<ErrorLogSettingsT>(value));
241 return *this;
242 }
244
246
247 inline const Aws::String& GetRequestId() const { return m_requestId; }
248 template <typename RequestIdT = Aws::String>
249 void SetRequestId(RequestIdT&& value) {
250 m_requestIdHasBeenSet = true;
251 m_requestId = std::forward<RequestIdT>(value);
252 }
253 template <typename RequestIdT = Aws::String>
254 UpdateBotResult& WithRequestId(RequestIdT&& value) {
255 SetRequestId(std::forward<RequestIdT>(value));
256 return *this;
257 }
259 private:
260 Aws::String m_botId;
261
262 Aws::String m_botName;
263
264 Aws::String m_description;
265
266 Aws::String m_roleArn;
267
268 DataPrivacy m_dataPrivacy;
269
270 int m_idleSessionTTLInSeconds{0};
271
272 BotStatus m_botStatus{BotStatus::NOT_SET};
273
274 Aws::Utils::DateTime m_creationDateTime{};
275
276 Aws::Utils::DateTime m_lastUpdatedDateTime{};
277
278 BotType m_botType{BotType::NOT_SET};
279
280 Aws::Vector<BotMember> m_botMembers;
281
282 ErrorLogSettings m_errorLogSettings;
283
284 Aws::String m_requestId;
285 bool m_botIdHasBeenSet = false;
286 bool m_botNameHasBeenSet = false;
287 bool m_descriptionHasBeenSet = false;
288 bool m_roleArnHasBeenSet = false;
289 bool m_dataPrivacyHasBeenSet = false;
290 bool m_idleSessionTTLInSecondsHasBeenSet = false;
291 bool m_botStatusHasBeenSet = false;
292 bool m_creationDateTimeHasBeenSet = false;
293 bool m_lastUpdatedDateTimeHasBeenSet = false;
294 bool m_botTypeHasBeenSet = false;
295 bool m_botMembersHasBeenSet = false;
296 bool m_errorLogSettingsHasBeenSet = false;
297 bool m_requestIdHasBeenSet = false;
298};
299
300} // namespace Model
301} // namespace LexModelsV2
302} // namespace Aws
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