AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GetDataSourceResult.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/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/DataSourceConfigurationOutput.h>
12#include <aws/datazone/model/DataSourceErrorMessage.h>
13#include <aws/datazone/model/DataSourceRunStatus.h>
14#include <aws/datazone/model/DataSourceStatus.h>
15#include <aws/datazone/model/EnableSetting.h>
16#include <aws/datazone/model/FormOutput.h>
17#include <aws/datazone/model/RecommendationConfiguration.h>
18#include <aws/datazone/model/ScheduleConfiguration.h>
19#include <aws/datazone/model/SelfGrantStatusOutput.h>
20
21#include <utility>
22
23namespace Aws {
24template <typename RESULT_TYPE>
25class AmazonWebServiceResult;
26
27namespace Utils {
28namespace Json {
29class JsonValue;
30} // namespace Json
31} // namespace Utils
32namespace DataZone {
33namespace Model {
35 public:
36 AWS_DATAZONE_API GetDataSourceResult() = default;
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline DataSourceStatus GetStatus() const { return m_status; }
62 inline void SetStatus(DataSourceStatus value) {
63 m_statusHasBeenSet = true;
64 m_status = value;
65 }
67 SetStatus(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetType() const { return m_type; }
77 template <typename TypeT = Aws::String>
78 void SetType(TypeT&& value) {
79 m_typeHasBeenSet = true;
80 m_type = std::forward<TypeT>(value);
81 }
82 template <typename TypeT = Aws::String>
83 GetDataSourceResult& WithType(TypeT&& value) {
84 SetType(std::forward<TypeT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetName() const { return m_name; }
94 template <typename NameT = Aws::String>
95 void SetName(NameT&& value) {
96 m_nameHasBeenSet = true;
97 m_name = std::forward<NameT>(value);
98 }
99 template <typename NameT = Aws::String>
101 SetName(std::forward<NameT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetDescription() const { return m_description; }
111 template <typename DescriptionT = Aws::String>
112 void SetDescription(DescriptionT&& value) {
113 m_descriptionHasBeenSet = true;
114 m_description = std::forward<DescriptionT>(value);
115 }
116 template <typename DescriptionT = Aws::String>
117 GetDataSourceResult& WithDescription(DescriptionT&& value) {
118 SetDescription(std::forward<DescriptionT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetDomainId() const { return m_domainId; }
128 template <typename DomainIdT = Aws::String>
129 void SetDomainId(DomainIdT&& value) {
130 m_domainIdHasBeenSet = true;
131 m_domainId = std::forward<DomainIdT>(value);
132 }
133 template <typename DomainIdT = Aws::String>
134 GetDataSourceResult& WithDomainId(DomainIdT&& value) {
135 SetDomainId(std::forward<DomainIdT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::String& GetProjectId() const { return m_projectId; }
145 template <typename ProjectIdT = Aws::String>
146 void SetProjectId(ProjectIdT&& value) {
147 m_projectIdHasBeenSet = true;
148 m_projectId = std::forward<ProjectIdT>(value);
149 }
150 template <typename ProjectIdT = Aws::String>
151 GetDataSourceResult& WithProjectId(ProjectIdT&& value) {
152 SetProjectId(std::forward<ProjectIdT>(value));
153 return *this;
154 }
156
158
162 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
163 template <typename EnvironmentIdT = Aws::String>
164 void SetEnvironmentId(EnvironmentIdT&& value) {
165 m_environmentIdHasBeenSet = true;
166 m_environmentId = std::forward<EnvironmentIdT>(value);
167 }
168 template <typename EnvironmentIdT = Aws::String>
169 GetDataSourceResult& WithEnvironmentId(EnvironmentIdT&& value) {
170 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
180 template <typename ConnectionIdT = Aws::String>
181 void SetConnectionId(ConnectionIdT&& value) {
182 m_connectionIdHasBeenSet = true;
183 m_connectionId = std::forward<ConnectionIdT>(value);
184 }
185 template <typename ConnectionIdT = Aws::String>
186 GetDataSourceResult& WithConnectionId(ConnectionIdT&& value) {
187 SetConnectionId(std::forward<ConnectionIdT>(value));
188 return *this;
189 }
191
193
196 inline const DataSourceConfigurationOutput& GetConfiguration() const { return m_configuration; }
197 template <typename ConfigurationT = DataSourceConfigurationOutput>
198 void SetConfiguration(ConfigurationT&& value) {
199 m_configurationHasBeenSet = true;
200 m_configuration = std::forward<ConfigurationT>(value);
201 }
202 template <typename ConfigurationT = DataSourceConfigurationOutput>
203 GetDataSourceResult& WithConfiguration(ConfigurationT&& value) {
204 SetConfiguration(std::forward<ConfigurationT>(value));
205 return *this;
206 }
208
210
213 inline const RecommendationConfiguration& GetRecommendation() const { return m_recommendation; }
214 template <typename RecommendationT = RecommendationConfiguration>
215 void SetRecommendation(RecommendationT&& value) {
216 m_recommendationHasBeenSet = true;
217 m_recommendation = std::forward<RecommendationT>(value);
218 }
219 template <typename RecommendationT = RecommendationConfiguration>
220 GetDataSourceResult& WithRecommendation(RecommendationT&& value) {
221 SetRecommendation(std::forward<RecommendationT>(value));
222 return *this;
223 }
225
227
230 inline EnableSetting GetEnableSetting() const { return m_enableSetting; }
231 inline void SetEnableSetting(EnableSetting value) {
232 m_enableSettingHasBeenSet = true;
233 m_enableSetting = value;
234 }
236 SetEnableSetting(value);
237 return *this;
238 }
240
242
246 inline bool GetPublishOnImport() const { return m_publishOnImport; }
247 inline void SetPublishOnImport(bool value) {
248 m_publishOnImportHasBeenSet = true;
249 m_publishOnImport = value;
250 }
252 SetPublishOnImport(value);
253 return *this;
254 }
256
258
261 inline const Aws::Vector<FormOutput>& GetAssetFormsOutput() const { return m_assetFormsOutput; }
262 template <typename AssetFormsOutputT = Aws::Vector<FormOutput>>
263 void SetAssetFormsOutput(AssetFormsOutputT&& value) {
264 m_assetFormsOutputHasBeenSet = true;
265 m_assetFormsOutput = std::forward<AssetFormsOutputT>(value);
266 }
267 template <typename AssetFormsOutputT = Aws::Vector<FormOutput>>
268 GetDataSourceResult& WithAssetFormsOutput(AssetFormsOutputT&& value) {
269 SetAssetFormsOutput(std::forward<AssetFormsOutputT>(value));
270 return *this;
271 }
272 template <typename AssetFormsOutputT = FormOutput>
273 GetDataSourceResult& AddAssetFormsOutput(AssetFormsOutputT&& value) {
274 m_assetFormsOutputHasBeenSet = true;
275 m_assetFormsOutput.emplace_back(std::forward<AssetFormsOutputT>(value));
276 return *this;
277 }
279
281
284 inline const ScheduleConfiguration& GetSchedule() const { return m_schedule; }
285 template <typename ScheduleT = ScheduleConfiguration>
286 void SetSchedule(ScheduleT&& value) {
287 m_scheduleHasBeenSet = true;
288 m_schedule = std::forward<ScheduleT>(value);
289 }
290 template <typename ScheduleT = ScheduleConfiguration>
291 GetDataSourceResult& WithSchedule(ScheduleT&& value) {
292 SetSchedule(std::forward<ScheduleT>(value));
293 return *this;
294 }
296
298
301 inline DataSourceRunStatus GetLastRunStatus() const { return m_lastRunStatus; }
303 m_lastRunStatusHasBeenSet = true;
304 m_lastRunStatus = value;
305 }
307 SetLastRunStatus(value);
308 return *this;
309 }
311
313
316 inline const Aws::Utils::DateTime& GetLastRunAt() const { return m_lastRunAt; }
317 template <typename LastRunAtT = Aws::Utils::DateTime>
318 void SetLastRunAt(LastRunAtT&& value) {
319 m_lastRunAtHasBeenSet = true;
320 m_lastRunAt = std::forward<LastRunAtT>(value);
321 }
322 template <typename LastRunAtT = Aws::Utils::DateTime>
323 GetDataSourceResult& WithLastRunAt(LastRunAtT&& value) {
324 SetLastRunAt(std::forward<LastRunAtT>(value));
325 return *this;
326 }
328
330
334 inline const DataSourceErrorMessage& GetLastRunErrorMessage() const { return m_lastRunErrorMessage; }
335 template <typename LastRunErrorMessageT = DataSourceErrorMessage>
336 void SetLastRunErrorMessage(LastRunErrorMessageT&& value) {
337 m_lastRunErrorMessageHasBeenSet = true;
338 m_lastRunErrorMessage = std::forward<LastRunErrorMessageT>(value);
339 }
340 template <typename LastRunErrorMessageT = DataSourceErrorMessage>
341 GetDataSourceResult& WithLastRunErrorMessage(LastRunErrorMessageT&& value) {
342 SetLastRunErrorMessage(std::forward<LastRunErrorMessageT>(value));
343 return *this;
344 }
346
348
351 inline int GetLastRunAssetCount() const { return m_lastRunAssetCount; }
352 inline void SetLastRunAssetCount(int value) {
353 m_lastRunAssetCountHasBeenSet = true;
354 m_lastRunAssetCount = value;
355 }
358 return *this;
359 }
361
363
367 inline const DataSourceErrorMessage& GetErrorMessage() const { return m_errorMessage; }
368 template <typename ErrorMessageT = DataSourceErrorMessage>
369 void SetErrorMessage(ErrorMessageT&& value) {
370 m_errorMessageHasBeenSet = true;
371 m_errorMessage = std::forward<ErrorMessageT>(value);
372 }
373 template <typename ErrorMessageT = DataSourceErrorMessage>
374 GetDataSourceResult& WithErrorMessage(ErrorMessageT&& value) {
375 SetErrorMessage(std::forward<ErrorMessageT>(value));
376 return *this;
377 }
379
381
384 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
385 template <typename CreatedAtT = Aws::Utils::DateTime>
386 void SetCreatedAt(CreatedAtT&& value) {
387 m_createdAtHasBeenSet = true;
388 m_createdAt = std::forward<CreatedAtT>(value);
389 }
390 template <typename CreatedAtT = Aws::Utils::DateTime>
391 GetDataSourceResult& WithCreatedAt(CreatedAtT&& value) {
392 SetCreatedAt(std::forward<CreatedAtT>(value));
393 return *this;
394 }
396
398
401 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
402 template <typename UpdatedAtT = Aws::Utils::DateTime>
403 void SetUpdatedAt(UpdatedAtT&& value) {
404 m_updatedAtHasBeenSet = true;
405 m_updatedAt = std::forward<UpdatedAtT>(value);
406 }
407 template <typename UpdatedAtT = Aws::Utils::DateTime>
408 GetDataSourceResult& WithUpdatedAt(UpdatedAtT&& value) {
409 SetUpdatedAt(std::forward<UpdatedAtT>(value));
410 return *this;
411 }
413
415
418 inline const SelfGrantStatusOutput& GetSelfGrantStatus() const { return m_selfGrantStatus; }
419 template <typename SelfGrantStatusT = SelfGrantStatusOutput>
420 void SetSelfGrantStatus(SelfGrantStatusT&& value) {
421 m_selfGrantStatusHasBeenSet = true;
422 m_selfGrantStatus = std::forward<SelfGrantStatusT>(value);
423 }
424 template <typename SelfGrantStatusT = SelfGrantStatusOutput>
425 GetDataSourceResult& WithSelfGrantStatus(SelfGrantStatusT&& value) {
426 SetSelfGrantStatus(std::forward<SelfGrantStatusT>(value));
427 return *this;
428 }
430
432
433 inline const Aws::String& GetRequestId() const { return m_requestId; }
434 template <typename RequestIdT = Aws::String>
435 void SetRequestId(RequestIdT&& value) {
436 m_requestIdHasBeenSet = true;
437 m_requestId = std::forward<RequestIdT>(value);
438 }
439 template <typename RequestIdT = Aws::String>
440 GetDataSourceResult& WithRequestId(RequestIdT&& value) {
441 SetRequestId(std::forward<RequestIdT>(value));
442 return *this;
443 }
445 private:
446 Aws::String m_id;
447
449
450 Aws::String m_type;
451
452 Aws::String m_name;
453
454 Aws::String m_description;
455
456 Aws::String m_domainId;
457
458 Aws::String m_projectId;
459
460 Aws::String m_environmentId;
461
462 Aws::String m_connectionId;
463
464 DataSourceConfigurationOutput m_configuration;
465
466 RecommendationConfiguration m_recommendation;
467
468 EnableSetting m_enableSetting{EnableSetting::NOT_SET};
469
470 bool m_publishOnImport{false};
471
472 Aws::Vector<FormOutput> m_assetFormsOutput;
473
474 ScheduleConfiguration m_schedule;
475
477
478 Aws::Utils::DateTime m_lastRunAt{};
479
480 DataSourceErrorMessage m_lastRunErrorMessage;
481
482 int m_lastRunAssetCount{0};
483
484 DataSourceErrorMessage m_errorMessage;
485
486 Aws::Utils::DateTime m_createdAt{};
487
488 Aws::Utils::DateTime m_updatedAt{};
489
490 SelfGrantStatusOutput m_selfGrantStatus;
491
492 Aws::String m_requestId;
493 bool m_idHasBeenSet = false;
494 bool m_statusHasBeenSet = false;
495 bool m_typeHasBeenSet = false;
496 bool m_nameHasBeenSet = false;
497 bool m_descriptionHasBeenSet = false;
498 bool m_domainIdHasBeenSet = false;
499 bool m_projectIdHasBeenSet = false;
500 bool m_environmentIdHasBeenSet = false;
501 bool m_connectionIdHasBeenSet = false;
502 bool m_configurationHasBeenSet = false;
503 bool m_recommendationHasBeenSet = false;
504 bool m_enableSettingHasBeenSet = false;
505 bool m_publishOnImportHasBeenSet = false;
506 bool m_assetFormsOutputHasBeenSet = false;
507 bool m_scheduleHasBeenSet = false;
508 bool m_lastRunStatusHasBeenSet = false;
509 bool m_lastRunAtHasBeenSet = false;
510 bool m_lastRunErrorMessageHasBeenSet = false;
511 bool m_lastRunAssetCountHasBeenSet = false;
512 bool m_errorMessageHasBeenSet = false;
513 bool m_createdAtHasBeenSet = false;
514 bool m_updatedAtHasBeenSet = false;
515 bool m_selfGrantStatusHasBeenSet = false;
516 bool m_requestIdHasBeenSet = false;
517};
518
519} // namespace Model
520} // namespace DataZone
521} // namespace Aws
GetDataSourceResult & WithStatus(DataSourceStatus value)
void SetAssetFormsOutput(AssetFormsOutputT &&value)
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