AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
UpdateDataSourceResult.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/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/DataSourceConfigurationOutput.h>
13#include <aws/datazone/model/DataSourceErrorMessage.h>
14#include <aws/datazone/model/DataSourceRunStatus.h>
15#include <aws/datazone/model/DataSourceStatus.h>
16#include <aws/datazone/model/EnableSetting.h>
17#include <aws/datazone/model/FormOutput.h>
18#include <aws/datazone/model/RecommendationConfiguration.h>
19#include <aws/datazone/model/ScheduleConfiguration.h>
20#include <aws/datazone/model/SelfGrantStatusOutput.h>
21
22#include <utility>
23
24namespace Aws {
25template <typename RESULT_TYPE>
26class AmazonWebServiceResult;
27
28namespace Utils {
29namespace Json {
30class JsonValue;
31} // namespace Json
32} // namespace Utils
33namespace DataZone {
34namespace Model {
36 public:
37 AWS_DATAZONE_API UpdateDataSourceResult() = default;
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
63 inline DataSourceStatus GetStatus() const { return m_status; }
64 inline void SetStatus(DataSourceStatus value) {
65 m_statusHasBeenSet = true;
66 m_status = value;
67 }
69 SetStatus(value);
70 return *this;
71 }
73
75
79 inline const Aws::String& GetType() const { return m_type; }
80 template <typename TypeT = Aws::String>
81 void SetType(TypeT&& value) {
82 m_typeHasBeenSet = true;
83 m_type = std::forward<TypeT>(value);
84 }
85 template <typename TypeT = Aws::String>
87 SetType(std::forward<TypeT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetName() const { return m_name; }
98 template <typename NameT = Aws::String>
99 void SetName(NameT&& value) {
100 m_nameHasBeenSet = true;
101 m_name = std::forward<NameT>(value);
102 }
103 template <typename NameT = Aws::String>
105 SetName(std::forward<NameT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetDescription() const { return m_description; }
116 template <typename DescriptionT = Aws::String>
117 void SetDescription(DescriptionT&& value) {
118 m_descriptionHasBeenSet = true;
119 m_description = std::forward<DescriptionT>(value);
120 }
121 template <typename DescriptionT = Aws::String>
123 SetDescription(std::forward<DescriptionT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetDomainId() const { return m_domainId; }
134 template <typename DomainIdT = Aws::String>
135 void SetDomainId(DomainIdT&& value) {
136 m_domainIdHasBeenSet = true;
137 m_domainId = std::forward<DomainIdT>(value);
138 }
139 template <typename DomainIdT = Aws::String>
141 SetDomainId(std::forward<DomainIdT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetProjectId() const { return m_projectId; }
151 template <typename ProjectIdT = Aws::String>
152 void SetProjectId(ProjectIdT&& value) {
153 m_projectIdHasBeenSet = true;
154 m_projectId = std::forward<ProjectIdT>(value);
155 }
156 template <typename ProjectIdT = Aws::String>
158 SetProjectId(std::forward<ProjectIdT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
169 template <typename EnvironmentIdT = Aws::String>
170 void SetEnvironmentId(EnvironmentIdT&& value) {
171 m_environmentIdHasBeenSet = true;
172 m_environmentId = std::forward<EnvironmentIdT>(value);
173 }
174 template <typename EnvironmentIdT = Aws::String>
175 UpdateDataSourceResult& WithEnvironmentId(EnvironmentIdT&& value) {
176 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
186 template <typename ConnectionIdT = Aws::String>
187 void SetConnectionId(ConnectionIdT&& value) {
188 m_connectionIdHasBeenSet = true;
189 m_connectionId = std::forward<ConnectionIdT>(value);
190 }
191 template <typename ConnectionIdT = Aws::String>
192 UpdateDataSourceResult& WithConnectionId(ConnectionIdT&& value) {
193 SetConnectionId(std::forward<ConnectionIdT>(value));
194 return *this;
195 }
197
199
203 inline const DataSourceConfigurationOutput& GetConfiguration() const { return m_configuration; }
204 template <typename ConfigurationT = DataSourceConfigurationOutput>
205 void SetConfiguration(ConfigurationT&& value) {
206 m_configurationHasBeenSet = true;
207 m_configuration = std::forward<ConfigurationT>(value);
208 }
209 template <typename ConfigurationT = DataSourceConfigurationOutput>
210 UpdateDataSourceResult& WithConfiguration(ConfigurationT&& value) {
211 SetConfiguration(std::forward<ConfigurationT>(value));
212 return *this;
213 }
215
217
221 inline const RecommendationConfiguration& GetRecommendation() const { return m_recommendation; }
222 template <typename RecommendationT = RecommendationConfiguration>
223 void SetRecommendation(RecommendationT&& value) {
224 m_recommendationHasBeenSet = true;
225 m_recommendation = std::forward<RecommendationT>(value);
226 }
227 template <typename RecommendationT = RecommendationConfiguration>
228 UpdateDataSourceResult& WithRecommendation(RecommendationT&& value) {
229 SetRecommendation(std::forward<RecommendationT>(value));
230 return *this;
231 }
233
235
239 inline EnableSetting GetEnableSetting() const { return m_enableSetting; }
240 inline void SetEnableSetting(EnableSetting value) {
241 m_enableSettingHasBeenSet = true;
242 m_enableSetting = value;
243 }
245 SetEnableSetting(value);
246 return *this;
247 }
249
251
255 inline bool GetPublishOnImport() const { return m_publishOnImport; }
256 inline void SetPublishOnImport(bool value) {
257 m_publishOnImportHasBeenSet = true;
258 m_publishOnImport = value;
259 }
261 SetPublishOnImport(value);
262 return *this;
263 }
265
267
271 inline const Aws::Vector<FormOutput>& GetAssetFormsOutput() const { return m_assetFormsOutput; }
272 template <typename AssetFormsOutputT = Aws::Vector<FormOutput>>
273 void SetAssetFormsOutput(AssetFormsOutputT&& value) {
274 m_assetFormsOutputHasBeenSet = true;
275 m_assetFormsOutput = std::forward<AssetFormsOutputT>(value);
276 }
277 template <typename AssetFormsOutputT = Aws::Vector<FormOutput>>
278 UpdateDataSourceResult& WithAssetFormsOutput(AssetFormsOutputT&& value) {
279 SetAssetFormsOutput(std::forward<AssetFormsOutputT>(value));
280 return *this;
281 }
282 template <typename AssetFormsOutputT = FormOutput>
283 UpdateDataSourceResult& AddAssetFormsOutput(AssetFormsOutputT&& value) {
284 m_assetFormsOutputHasBeenSet = true;
285 m_assetFormsOutput.emplace_back(std::forward<AssetFormsOutputT>(value));
286 return *this;
287 }
289
291
295 inline const ScheduleConfiguration& GetSchedule() const { return m_schedule; }
296 template <typename ScheduleT = ScheduleConfiguration>
297 void SetSchedule(ScheduleT&& value) {
298 m_scheduleHasBeenSet = true;
299 m_schedule = std::forward<ScheduleT>(value);
300 }
301 template <typename ScheduleT = ScheduleConfiguration>
303 SetSchedule(std::forward<ScheduleT>(value));
304 return *this;
305 }
307
309
312 inline DataSourceRunStatus GetLastRunStatus() const { return m_lastRunStatus; }
314 m_lastRunStatusHasBeenSet = true;
315 m_lastRunStatus = value;
316 }
318 SetLastRunStatus(value);
319 return *this;
320 }
322
324
327 inline const Aws::Utils::DateTime& GetLastRunAt() const { return m_lastRunAt; }
328 template <typename LastRunAtT = Aws::Utils::DateTime>
329 void SetLastRunAt(LastRunAtT&& value) {
330 m_lastRunAtHasBeenSet = true;
331 m_lastRunAt = std::forward<LastRunAtT>(value);
332 }
333 template <typename LastRunAtT = Aws::Utils::DateTime>
335 SetLastRunAt(std::forward<LastRunAtT>(value));
336 return *this;
337 }
339
341
344 inline const DataSourceErrorMessage& GetLastRunErrorMessage() const { return m_lastRunErrorMessage; }
345 template <typename LastRunErrorMessageT = DataSourceErrorMessage>
346 void SetLastRunErrorMessage(LastRunErrorMessageT&& value) {
347 m_lastRunErrorMessageHasBeenSet = true;
348 m_lastRunErrorMessage = std::forward<LastRunErrorMessageT>(value);
349 }
350 template <typename LastRunErrorMessageT = DataSourceErrorMessage>
351 UpdateDataSourceResult& WithLastRunErrorMessage(LastRunErrorMessageT&& value) {
352 SetLastRunErrorMessage(std::forward<LastRunErrorMessageT>(value));
353 return *this;
354 }
356
358
362 inline const DataSourceErrorMessage& GetErrorMessage() const { return m_errorMessage; }
363 template <typename ErrorMessageT = DataSourceErrorMessage>
364 void SetErrorMessage(ErrorMessageT&& value) {
365 m_errorMessageHasBeenSet = true;
366 m_errorMessage = std::forward<ErrorMessageT>(value);
367 }
368 template <typename ErrorMessageT = DataSourceErrorMessage>
369 UpdateDataSourceResult& WithErrorMessage(ErrorMessageT&& value) {
370 SetErrorMessage(std::forward<ErrorMessageT>(value));
371 return *this;
372 }
374
376
379 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
380 template <typename CreatedAtT = Aws::Utils::DateTime>
381 void SetCreatedAt(CreatedAtT&& value) {
382 m_createdAtHasBeenSet = true;
383 m_createdAt = std::forward<CreatedAtT>(value);
384 }
385 template <typename CreatedAtT = Aws::Utils::DateTime>
387 SetCreatedAt(std::forward<CreatedAtT>(value));
388 return *this;
389 }
391
393
396 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
397 template <typename UpdatedAtT = Aws::Utils::DateTime>
398 void SetUpdatedAt(UpdatedAtT&& value) {
399 m_updatedAtHasBeenSet = true;
400 m_updatedAt = std::forward<UpdatedAtT>(value);
401 }
402 template <typename UpdatedAtT = Aws::Utils::DateTime>
404 SetUpdatedAt(std::forward<UpdatedAtT>(value));
405 return *this;
406 }
408
410
413 inline const SelfGrantStatusOutput& GetSelfGrantStatus() const { return m_selfGrantStatus; }
414 template <typename SelfGrantStatusT = SelfGrantStatusOutput>
415 void SetSelfGrantStatus(SelfGrantStatusT&& value) {
416 m_selfGrantStatusHasBeenSet = true;
417 m_selfGrantStatus = std::forward<SelfGrantStatusT>(value);
418 }
419 template <typename SelfGrantStatusT = SelfGrantStatusOutput>
420 UpdateDataSourceResult& WithSelfGrantStatus(SelfGrantStatusT&& value) {
421 SetSelfGrantStatus(std::forward<SelfGrantStatusT>(value));
422 return *this;
423 }
425
427
431 inline bool GetRetainPermissionsOnRevokeFailure() const { return m_retainPermissionsOnRevokeFailure; }
432 inline void SetRetainPermissionsOnRevokeFailure(bool value) {
433 m_retainPermissionsOnRevokeFailureHasBeenSet = true;
434 m_retainPermissionsOnRevokeFailure = value;
435 }
438 return *this;
439 }
441
443
444 inline const Aws::String& GetRequestId() const { return m_requestId; }
445 template <typename RequestIdT = Aws::String>
446 void SetRequestId(RequestIdT&& value) {
447 m_requestIdHasBeenSet = true;
448 m_requestId = std::forward<RequestIdT>(value);
449 }
450 template <typename RequestIdT = Aws::String>
452 SetRequestId(std::forward<RequestIdT>(value));
453 return *this;
454 }
456 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
457
458 private:
459 Aws::String m_id;
460
462
463 Aws::String m_type;
464
465 Aws::String m_name;
466
467 Aws::String m_description;
468
469 Aws::String m_domainId;
470
471 Aws::String m_projectId;
472
473 Aws::String m_environmentId;
474
475 Aws::String m_connectionId;
476
477 DataSourceConfigurationOutput m_configuration;
478
479 RecommendationConfiguration m_recommendation;
480
481 EnableSetting m_enableSetting{EnableSetting::NOT_SET};
482
483 bool m_publishOnImport{false};
484
485 Aws::Vector<FormOutput> m_assetFormsOutput;
486
487 ScheduleConfiguration m_schedule;
488
490
491 Aws::Utils::DateTime m_lastRunAt{};
492
493 DataSourceErrorMessage m_lastRunErrorMessage;
494
495 DataSourceErrorMessage m_errorMessage;
496
497 Aws::Utils::DateTime m_createdAt{};
498
499 Aws::Utils::DateTime m_updatedAt{};
500
501 SelfGrantStatusOutput m_selfGrantStatus;
502
503 bool m_retainPermissionsOnRevokeFailure{false};
504
505 Aws::String m_requestId;
506 Aws::Http::HttpResponseCode m_HttpResponseCode;
507 bool m_idHasBeenSet = false;
508 bool m_statusHasBeenSet = false;
509 bool m_typeHasBeenSet = false;
510 bool m_nameHasBeenSet = false;
511 bool m_descriptionHasBeenSet = false;
512 bool m_domainIdHasBeenSet = false;
513 bool m_projectIdHasBeenSet = false;
514 bool m_environmentIdHasBeenSet = false;
515 bool m_connectionIdHasBeenSet = false;
516 bool m_configurationHasBeenSet = false;
517 bool m_recommendationHasBeenSet = false;
518 bool m_enableSettingHasBeenSet = false;
519 bool m_publishOnImportHasBeenSet = false;
520 bool m_assetFormsOutputHasBeenSet = false;
521 bool m_scheduleHasBeenSet = false;
522 bool m_lastRunStatusHasBeenSet = false;
523 bool m_lastRunAtHasBeenSet = false;
524 bool m_lastRunErrorMessageHasBeenSet = false;
525 bool m_errorMessageHasBeenSet = false;
526 bool m_createdAtHasBeenSet = false;
527 bool m_updatedAtHasBeenSet = false;
528 bool m_selfGrantStatusHasBeenSet = false;
529 bool m_retainPermissionsOnRevokeFailureHasBeenSet = false;
530 bool m_requestIdHasBeenSet = false;
531};
532
533} // namespace Model
534} // namespace DataZone
535} // namespace Aws
UpdateDataSourceResult & WithDomainId(DomainIdT &&value)
UpdateDataSourceResult & WithEnvironmentId(EnvironmentIdT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
UpdateDataSourceResult & WithStatus(DataSourceStatus value)
UpdateDataSourceResult & WithCreatedAt(CreatedAtT &&value)
AWS_DATAZONE_API UpdateDataSourceResult()=default
const DataSourceConfigurationOutput & GetConfiguration() const
UpdateDataSourceResult & WithProjectId(ProjectIdT &&value)
const RecommendationConfiguration & GetRecommendation() const
AWS_DATAZONE_API UpdateDataSourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateDataSourceResult & WithConfiguration(ConfigurationT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetLastRunErrorMessage(LastRunErrorMessageT &&value)
UpdateDataSourceResult & WithId(IdT &&value)
UpdateDataSourceResult & WithEnableSetting(EnableSetting value)
const DataSourceErrorMessage & GetErrorMessage() const
UpdateDataSourceResult & WithUpdatedAt(UpdatedAtT &&value)
const ScheduleConfiguration & GetSchedule() const
UpdateDataSourceResult & WithLastRunErrorMessage(LastRunErrorMessageT &&value)
UpdateDataSourceResult & WithRequestId(RequestIdT &&value)
UpdateDataSourceResult & WithRetainPermissionsOnRevokeFailure(bool value)
UpdateDataSourceResult & WithSchedule(ScheduleT &&value)
UpdateDataSourceResult & AddAssetFormsOutput(AssetFormsOutputT &&value)
UpdateDataSourceResult & WithLastRunStatus(DataSourceRunStatus value)
UpdateDataSourceResult & WithPublishOnImport(bool value)
UpdateDataSourceResult & WithName(NameT &&value)
const Aws::Utils::DateTime & GetLastRunAt() const
const SelfGrantStatusOutput & GetSelfGrantStatus() const
UpdateDataSourceResult & WithDescription(DescriptionT &&value)
UpdateDataSourceResult & WithLastRunAt(LastRunAtT &&value)
UpdateDataSourceResult & WithSelfGrantStatus(SelfGrantStatusT &&value)
UpdateDataSourceResult & WithErrorMessage(ErrorMessageT &&value)
const Aws::Vector< FormOutput > & GetAssetFormsOutput() const
AWS_DATAZONE_API UpdateDataSourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateDataSourceResult & WithConnectionId(ConnectionIdT &&value)
UpdateDataSourceResult & WithAssetFormsOutput(AssetFormsOutputT &&value)
const DataSourceErrorMessage & GetLastRunErrorMessage() const
void SetAssetFormsOutput(AssetFormsOutputT &&value)
UpdateDataSourceResult & WithType(TypeT &&value)
UpdateDataSourceResult & WithRecommendation(RecommendationT &&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