AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetDataSourceResult.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 GetDataSourceResult() = 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
62 inline DataSourceStatus GetStatus() const { return m_status; }
63 inline void SetStatus(DataSourceStatus value) {
64 m_statusHasBeenSet = true;
65 m_status = value;
66 }
68 SetStatus(value);
69 return *this;
70 }
72
74
77 inline const Aws::String& GetType() const { return m_type; }
78 template <typename TypeT = Aws::String>
79 void SetType(TypeT&& value) {
80 m_typeHasBeenSet = true;
81 m_type = std::forward<TypeT>(value);
82 }
83 template <typename TypeT = Aws::String>
84 GetDataSourceResult& WithType(TypeT&& value) {
85 SetType(std::forward<TypeT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetName() const { return m_name; }
95 template <typename NameT = Aws::String>
96 void SetName(NameT&& value) {
97 m_nameHasBeenSet = true;
98 m_name = std::forward<NameT>(value);
99 }
100 template <typename NameT = Aws::String>
102 SetName(std::forward<NameT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetDescription() const { return m_description; }
112 template <typename DescriptionT = Aws::String>
113 void SetDescription(DescriptionT&& value) {
114 m_descriptionHasBeenSet = true;
115 m_description = std::forward<DescriptionT>(value);
116 }
117 template <typename DescriptionT = Aws::String>
118 GetDataSourceResult& WithDescription(DescriptionT&& value) {
119 SetDescription(std::forward<DescriptionT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetDomainId() const { return m_domainId; }
129 template <typename DomainIdT = Aws::String>
130 void SetDomainId(DomainIdT&& value) {
131 m_domainIdHasBeenSet = true;
132 m_domainId = std::forward<DomainIdT>(value);
133 }
134 template <typename DomainIdT = Aws::String>
135 GetDataSourceResult& WithDomainId(DomainIdT&& value) {
136 SetDomainId(std::forward<DomainIdT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetProjectId() const { return m_projectId; }
146 template <typename ProjectIdT = Aws::String>
147 void SetProjectId(ProjectIdT&& value) {
148 m_projectIdHasBeenSet = true;
149 m_projectId = std::forward<ProjectIdT>(value);
150 }
151 template <typename ProjectIdT = Aws::String>
152 GetDataSourceResult& WithProjectId(ProjectIdT&& value) {
153 SetProjectId(std::forward<ProjectIdT>(value));
154 return *this;
155 }
157
159
163 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
164 template <typename EnvironmentIdT = Aws::String>
165 void SetEnvironmentId(EnvironmentIdT&& value) {
166 m_environmentIdHasBeenSet = true;
167 m_environmentId = std::forward<EnvironmentIdT>(value);
168 }
169 template <typename EnvironmentIdT = Aws::String>
170 GetDataSourceResult& WithEnvironmentId(EnvironmentIdT&& value) {
171 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
181 template <typename ConnectionIdT = Aws::String>
182 void SetConnectionId(ConnectionIdT&& value) {
183 m_connectionIdHasBeenSet = true;
184 m_connectionId = std::forward<ConnectionIdT>(value);
185 }
186 template <typename ConnectionIdT = Aws::String>
187 GetDataSourceResult& WithConnectionId(ConnectionIdT&& value) {
188 SetConnectionId(std::forward<ConnectionIdT>(value));
189 return *this;
190 }
192
194
197 inline const DataSourceConfigurationOutput& GetConfiguration() const { return m_configuration; }
198 template <typename ConfigurationT = DataSourceConfigurationOutput>
199 void SetConfiguration(ConfigurationT&& value) {
200 m_configurationHasBeenSet = true;
201 m_configuration = std::forward<ConfigurationT>(value);
202 }
203 template <typename ConfigurationT = DataSourceConfigurationOutput>
204 GetDataSourceResult& WithConfiguration(ConfigurationT&& value) {
205 SetConfiguration(std::forward<ConfigurationT>(value));
206 return *this;
207 }
209
211
214 inline const RecommendationConfiguration& GetRecommendation() const { return m_recommendation; }
215 template <typename RecommendationT = RecommendationConfiguration>
216 void SetRecommendation(RecommendationT&& value) {
217 m_recommendationHasBeenSet = true;
218 m_recommendation = std::forward<RecommendationT>(value);
219 }
220 template <typename RecommendationT = RecommendationConfiguration>
221 GetDataSourceResult& WithRecommendation(RecommendationT&& value) {
222 SetRecommendation(std::forward<RecommendationT>(value));
223 return *this;
224 }
226
228
231 inline EnableSetting GetEnableSetting() const { return m_enableSetting; }
232 inline void SetEnableSetting(EnableSetting value) {
233 m_enableSettingHasBeenSet = true;
234 m_enableSetting = value;
235 }
237 SetEnableSetting(value);
238 return *this;
239 }
241
243
247 inline bool GetPublishOnImport() const { return m_publishOnImport; }
248 inline void SetPublishOnImport(bool value) {
249 m_publishOnImportHasBeenSet = true;
250 m_publishOnImport = value;
251 }
253 SetPublishOnImport(value);
254 return *this;
255 }
257
259
262 inline const Aws::Vector<FormOutput>& GetAssetFormsOutput() const { return m_assetFormsOutput; }
263 template <typename AssetFormsOutputT = Aws::Vector<FormOutput>>
264 void SetAssetFormsOutput(AssetFormsOutputT&& value) {
265 m_assetFormsOutputHasBeenSet = true;
266 m_assetFormsOutput = std::forward<AssetFormsOutputT>(value);
267 }
268 template <typename AssetFormsOutputT = Aws::Vector<FormOutput>>
269 GetDataSourceResult& WithAssetFormsOutput(AssetFormsOutputT&& value) {
270 SetAssetFormsOutput(std::forward<AssetFormsOutputT>(value));
271 return *this;
272 }
273 template <typename AssetFormsOutputT = FormOutput>
274 GetDataSourceResult& AddAssetFormsOutput(AssetFormsOutputT&& value) {
275 m_assetFormsOutputHasBeenSet = true;
276 m_assetFormsOutput.emplace_back(std::forward<AssetFormsOutputT>(value));
277 return *this;
278 }
280
282
285 inline const ScheduleConfiguration& GetSchedule() const { return m_schedule; }
286 template <typename ScheduleT = ScheduleConfiguration>
287 void SetSchedule(ScheduleT&& value) {
288 m_scheduleHasBeenSet = true;
289 m_schedule = std::forward<ScheduleT>(value);
290 }
291 template <typename ScheduleT = ScheduleConfiguration>
292 GetDataSourceResult& WithSchedule(ScheduleT&& value) {
293 SetSchedule(std::forward<ScheduleT>(value));
294 return *this;
295 }
297
299
302 inline DataSourceRunStatus GetLastRunStatus() const { return m_lastRunStatus; }
304 m_lastRunStatusHasBeenSet = true;
305 m_lastRunStatus = value;
306 }
308 SetLastRunStatus(value);
309 return *this;
310 }
312
314
317 inline const Aws::Utils::DateTime& GetLastRunAt() const { return m_lastRunAt; }
318 template <typename LastRunAtT = Aws::Utils::DateTime>
319 void SetLastRunAt(LastRunAtT&& value) {
320 m_lastRunAtHasBeenSet = true;
321 m_lastRunAt = std::forward<LastRunAtT>(value);
322 }
323 template <typename LastRunAtT = Aws::Utils::DateTime>
324 GetDataSourceResult& WithLastRunAt(LastRunAtT&& value) {
325 SetLastRunAt(std::forward<LastRunAtT>(value));
326 return *this;
327 }
329
331
335 inline const DataSourceErrorMessage& GetLastRunErrorMessage() const { return m_lastRunErrorMessage; }
336 template <typename LastRunErrorMessageT = DataSourceErrorMessage>
337 void SetLastRunErrorMessage(LastRunErrorMessageT&& value) {
338 m_lastRunErrorMessageHasBeenSet = true;
339 m_lastRunErrorMessage = std::forward<LastRunErrorMessageT>(value);
340 }
341 template <typename LastRunErrorMessageT = DataSourceErrorMessage>
342 GetDataSourceResult& WithLastRunErrorMessage(LastRunErrorMessageT&& value) {
343 SetLastRunErrorMessage(std::forward<LastRunErrorMessageT>(value));
344 return *this;
345 }
347
349
352 inline int GetLastRunAssetCount() const { return m_lastRunAssetCount; }
353 inline void SetLastRunAssetCount(int value) {
354 m_lastRunAssetCountHasBeenSet = true;
355 m_lastRunAssetCount = value;
356 }
359 return *this;
360 }
362
364
368 inline const DataSourceErrorMessage& GetErrorMessage() const { return m_errorMessage; }
369 template <typename ErrorMessageT = DataSourceErrorMessage>
370 void SetErrorMessage(ErrorMessageT&& value) {
371 m_errorMessageHasBeenSet = true;
372 m_errorMessage = std::forward<ErrorMessageT>(value);
373 }
374 template <typename ErrorMessageT = DataSourceErrorMessage>
375 GetDataSourceResult& WithErrorMessage(ErrorMessageT&& value) {
376 SetErrorMessage(std::forward<ErrorMessageT>(value));
377 return *this;
378 }
380
382
385 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
386 template <typename CreatedAtT = Aws::Utils::DateTime>
387 void SetCreatedAt(CreatedAtT&& value) {
388 m_createdAtHasBeenSet = true;
389 m_createdAt = std::forward<CreatedAtT>(value);
390 }
391 template <typename CreatedAtT = Aws::Utils::DateTime>
392 GetDataSourceResult& WithCreatedAt(CreatedAtT&& value) {
393 SetCreatedAt(std::forward<CreatedAtT>(value));
394 return *this;
395 }
397
399
402 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
403 template <typename UpdatedAtT = Aws::Utils::DateTime>
404 void SetUpdatedAt(UpdatedAtT&& value) {
405 m_updatedAtHasBeenSet = true;
406 m_updatedAt = std::forward<UpdatedAtT>(value);
407 }
408 template <typename UpdatedAtT = Aws::Utils::DateTime>
409 GetDataSourceResult& WithUpdatedAt(UpdatedAtT&& value) {
410 SetUpdatedAt(std::forward<UpdatedAtT>(value));
411 return *this;
412 }
414
416
419 inline const SelfGrantStatusOutput& GetSelfGrantStatus() const { return m_selfGrantStatus; }
420 template <typename SelfGrantStatusT = SelfGrantStatusOutput>
421 void SetSelfGrantStatus(SelfGrantStatusT&& value) {
422 m_selfGrantStatusHasBeenSet = true;
423 m_selfGrantStatus = std::forward<SelfGrantStatusT>(value);
424 }
425 template <typename SelfGrantStatusT = SelfGrantStatusOutput>
426 GetDataSourceResult& WithSelfGrantStatus(SelfGrantStatusT&& value) {
427 SetSelfGrantStatus(std::forward<SelfGrantStatusT>(value));
428 return *this;
429 }
431
433
434 inline const Aws::String& GetRequestId() const { return m_requestId; }
435 template <typename RequestIdT = Aws::String>
436 void SetRequestId(RequestIdT&& value) {
437 m_requestIdHasBeenSet = true;
438 m_requestId = std::forward<RequestIdT>(value);
439 }
440 template <typename RequestIdT = Aws::String>
441 GetDataSourceResult& WithRequestId(RequestIdT&& value) {
442 SetRequestId(std::forward<RequestIdT>(value));
443 return *this;
444 }
446 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
447
448 private:
449 Aws::String m_id;
450
452
453 Aws::String m_type;
454
455 Aws::String m_name;
456
457 Aws::String m_description;
458
459 Aws::String m_domainId;
460
461 Aws::String m_projectId;
462
463 Aws::String m_environmentId;
464
465 Aws::String m_connectionId;
466
467 DataSourceConfigurationOutput m_configuration;
468
469 RecommendationConfiguration m_recommendation;
470
471 EnableSetting m_enableSetting{EnableSetting::NOT_SET};
472
473 bool m_publishOnImport{false};
474
475 Aws::Vector<FormOutput> m_assetFormsOutput;
476
477 ScheduleConfiguration m_schedule;
478
480
481 Aws::Utils::DateTime m_lastRunAt{};
482
483 DataSourceErrorMessage m_lastRunErrorMessage;
484
485 int m_lastRunAssetCount{0};
486
487 DataSourceErrorMessage m_errorMessage;
488
489 Aws::Utils::DateTime m_createdAt{};
490
491 Aws::Utils::DateTime m_updatedAt{};
492
493 SelfGrantStatusOutput m_selfGrantStatus;
494
495 Aws::String m_requestId;
496 Aws::Http::HttpResponseCode m_HttpResponseCode;
497 bool m_idHasBeenSet = false;
498 bool m_statusHasBeenSet = false;
499 bool m_typeHasBeenSet = false;
500 bool m_nameHasBeenSet = false;
501 bool m_descriptionHasBeenSet = false;
502 bool m_domainIdHasBeenSet = false;
503 bool m_projectIdHasBeenSet = false;
504 bool m_environmentIdHasBeenSet = false;
505 bool m_connectionIdHasBeenSet = false;
506 bool m_configurationHasBeenSet = false;
507 bool m_recommendationHasBeenSet = false;
508 bool m_enableSettingHasBeenSet = false;
509 bool m_publishOnImportHasBeenSet = false;
510 bool m_assetFormsOutputHasBeenSet = false;
511 bool m_scheduleHasBeenSet = false;
512 bool m_lastRunStatusHasBeenSet = false;
513 bool m_lastRunAtHasBeenSet = false;
514 bool m_lastRunErrorMessageHasBeenSet = false;
515 bool m_lastRunAssetCountHasBeenSet = false;
516 bool m_errorMessageHasBeenSet = false;
517 bool m_createdAtHasBeenSet = false;
518 bool m_updatedAtHasBeenSet = false;
519 bool m_selfGrantStatusHasBeenSet = false;
520 bool m_requestIdHasBeenSet = false;
521};
522
523} // namespace Model
524} // namespace DataZone
525} // namespace Aws
GetDataSourceResult & WithStatus(DataSourceStatus value)
void SetAssetFormsOutput(AssetFormsOutputT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetLastRunAt() const
GetDataSourceResult & WithUpdatedAt(UpdatedAtT &&value)
void SetEnvironmentId(EnvironmentIdT &&value)
GetDataSourceResult & WithEnvironmentId(EnvironmentIdT &&value)
GetDataSourceResult & WithName(NameT &&value)
const Aws::Vector< FormOutput > & GetAssetFormsOutput() const
GetDataSourceResult & WithDescription(DescriptionT &&value)
GetDataSourceResult & WithLastRunAt(LastRunAtT &&value)
GetDataSourceResult & WithSelfGrantStatus(SelfGrantStatusT &&value)
GetDataSourceResult & WithConnectionId(ConnectionIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetDataSourceResult & WithId(IdT &&value)
AWS_DATAZONE_API GetDataSourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetDataSourceResult & WithCreatedAt(CreatedAtT &&value)
void SetLastRunStatus(DataSourceRunStatus value)
const ScheduleConfiguration & GetSchedule() const
void SetRecommendation(RecommendationT &&value)
AWS_DATAZONE_API GetDataSourceResult()=default
GetDataSourceResult & WithLastRunStatus(DataSourceRunStatus value)
GetDataSourceResult & WithRecommendation(RecommendationT &&value)
const RecommendationConfiguration & GetRecommendation() const
GetDataSourceResult & WithRequestId(RequestIdT &&value)
const DataSourceConfigurationOutput & GetConfiguration() const
GetDataSourceResult & WithProjectId(ProjectIdT &&value)
GetDataSourceResult & WithSchedule(ScheduleT &&value)
AWS_DATAZONE_API GetDataSourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDataSourceResult & WithAssetFormsOutput(AssetFormsOutputT &&value)
GetDataSourceResult & WithConfiguration(ConfigurationT &&value)
void SetSelfGrantStatus(SelfGrantStatusT &&value)
GetDataSourceResult & WithLastRunErrorMessage(LastRunErrorMessageT &&value)
void SetConfiguration(ConfigurationT &&value)
GetDataSourceResult & WithType(TypeT &&value)
GetDataSourceResult & AddAssetFormsOutput(AssetFormsOutputT &&value)
void SetLastRunErrorMessage(LastRunErrorMessageT &&value)
GetDataSourceResult & WithDomainId(DomainIdT &&value)
GetDataSourceResult & WithLastRunAssetCount(int value)
GetDataSourceResult & WithEnableSetting(EnableSetting value)
const DataSourceErrorMessage & GetLastRunErrorMessage() const
GetDataSourceResult & WithPublishOnImport(bool value)
GetDataSourceResult & WithErrorMessage(ErrorMessageT &&value)
const DataSourceErrorMessage & GetErrorMessage() const
const SelfGrantStatusOutput & GetSelfGrantStatus() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue