AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateDataSourceResult.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
20#include <utility>
21
22namespace Aws {
23template <typename RESULT_TYPE>
24class AmazonWebServiceResult;
25
26namespace Utils {
27namespace Json {
28class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace DataZone {
32namespace Model {
34 public:
35 AWS_DATAZONE_API CreateDataSourceResult() = default;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline DataSourceStatus GetStatus() const { return m_status; }
61 inline void SetStatus(DataSourceStatus value) {
62 m_statusHasBeenSet = true;
63 m_status = value;
64 }
66 SetStatus(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetType() const { return m_type; }
76 template <typename TypeT = Aws::String>
77 void SetType(TypeT&& value) {
78 m_typeHasBeenSet = true;
79 m_type = std::forward<TypeT>(value);
80 }
81 template <typename TypeT = Aws::String>
83 SetType(std::forward<TypeT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetName() const { return m_name; }
93 template <typename NameT = Aws::String>
94 void SetName(NameT&& value) {
95 m_nameHasBeenSet = true;
96 m_name = std::forward<NameT>(value);
97 }
98 template <typename NameT = Aws::String>
100 SetName(std::forward<NameT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetDescription() const { return m_description; }
110 template <typename DescriptionT = Aws::String>
111 void SetDescription(DescriptionT&& value) {
112 m_descriptionHasBeenSet = true;
113 m_description = std::forward<DescriptionT>(value);
114 }
115 template <typename DescriptionT = Aws::String>
117 SetDescription(std::forward<DescriptionT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetDomainId() const { return m_domainId; }
127 template <typename DomainIdT = Aws::String>
128 void SetDomainId(DomainIdT&& value) {
129 m_domainIdHasBeenSet = true;
130 m_domainId = std::forward<DomainIdT>(value);
131 }
132 template <typename DomainIdT = Aws::String>
134 SetDomainId(std::forward<DomainIdT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetProjectId() const { return m_projectId; }
144 template <typename ProjectIdT = Aws::String>
145 void SetProjectId(ProjectIdT&& value) {
146 m_projectIdHasBeenSet = true;
147 m_projectId = std::forward<ProjectIdT>(value);
148 }
149 template <typename ProjectIdT = Aws::String>
151 SetProjectId(std::forward<ProjectIdT>(value));
152 return *this;
153 }
155
157
161 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
162 template <typename EnvironmentIdT = Aws::String>
163 void SetEnvironmentId(EnvironmentIdT&& value) {
164 m_environmentIdHasBeenSet = true;
165 m_environmentId = std::forward<EnvironmentIdT>(value);
166 }
167 template <typename EnvironmentIdT = Aws::String>
168 CreateDataSourceResult& WithEnvironmentId(EnvironmentIdT&& value) {
169 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
179 template <typename ConnectionIdT = Aws::String>
180 void SetConnectionId(ConnectionIdT&& value) {
181 m_connectionIdHasBeenSet = true;
182 m_connectionId = std::forward<ConnectionIdT>(value);
183 }
184 template <typename ConnectionIdT = Aws::String>
185 CreateDataSourceResult& WithConnectionId(ConnectionIdT&& value) {
186 SetConnectionId(std::forward<ConnectionIdT>(value));
187 return *this;
188 }
190
192
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 CreateDataSourceResult& WithConfiguration(ConfigurationT&& value) {
204 SetConfiguration(std::forward<ConfigurationT>(value));
205 return *this;
206 }
208
210
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 CreateDataSourceResult& 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 CreateDataSourceResult& WithAssetFormsOutput(AssetFormsOutputT&& value) {
270 SetAssetFormsOutput(std::forward<AssetFormsOutputT>(value));
271 return *this;
272 }
273 template <typename AssetFormsOutputT = FormOutput>
274 CreateDataSourceResult& 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>
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>
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 CreateDataSourceResult& WithLastRunErrorMessage(LastRunErrorMessageT&& value) {
343 SetLastRunErrorMessage(std::forward<LastRunErrorMessageT>(value));
344 return *this;
345 }
347
349
353 inline const DataSourceErrorMessage& GetErrorMessage() const { return m_errorMessage; }
354 template <typename ErrorMessageT = DataSourceErrorMessage>
355 void SetErrorMessage(ErrorMessageT&& value) {
356 m_errorMessageHasBeenSet = true;
357 m_errorMessage = std::forward<ErrorMessageT>(value);
358 }
359 template <typename ErrorMessageT = DataSourceErrorMessage>
360 CreateDataSourceResult& WithErrorMessage(ErrorMessageT&& value) {
361 SetErrorMessage(std::forward<ErrorMessageT>(value));
362 return *this;
363 }
365
367
370 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
371 template <typename CreatedAtT = Aws::Utils::DateTime>
372 void SetCreatedAt(CreatedAtT&& value) {
373 m_createdAtHasBeenSet = true;
374 m_createdAt = std::forward<CreatedAtT>(value);
375 }
376 template <typename CreatedAtT = Aws::Utils::DateTime>
378 SetCreatedAt(std::forward<CreatedAtT>(value));
379 return *this;
380 }
382
384
387 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
388 template <typename UpdatedAtT = Aws::Utils::DateTime>
389 void SetUpdatedAt(UpdatedAtT&& value) {
390 m_updatedAtHasBeenSet = true;
391 m_updatedAt = std::forward<UpdatedAtT>(value);
392 }
393 template <typename UpdatedAtT = Aws::Utils::DateTime>
395 SetUpdatedAt(std::forward<UpdatedAtT>(value));
396 return *this;
397 }
399
401
402 inline const Aws::String& GetRequestId() const { return m_requestId; }
403 template <typename RequestIdT = Aws::String>
404 void SetRequestId(RequestIdT&& value) {
405 m_requestIdHasBeenSet = true;
406 m_requestId = std::forward<RequestIdT>(value);
407 }
408 template <typename RequestIdT = Aws::String>
410 SetRequestId(std::forward<RequestIdT>(value));
411 return *this;
412 }
414 private:
415 Aws::String m_id;
416
418
419 Aws::String m_type;
420
421 Aws::String m_name;
422
423 Aws::String m_description;
424
425 Aws::String m_domainId;
426
427 Aws::String m_projectId;
428
429 Aws::String m_environmentId;
430
431 Aws::String m_connectionId;
432
433 DataSourceConfigurationOutput m_configuration;
434
435 RecommendationConfiguration m_recommendation;
436
437 EnableSetting m_enableSetting{EnableSetting::NOT_SET};
438
439 bool m_publishOnImport{false};
440
441 Aws::Vector<FormOutput> m_assetFormsOutput;
442
443 ScheduleConfiguration m_schedule;
444
446
447 Aws::Utils::DateTime m_lastRunAt{};
448
449 DataSourceErrorMessage m_lastRunErrorMessage;
450
451 DataSourceErrorMessage m_errorMessage;
452
453 Aws::Utils::DateTime m_createdAt{};
454
455 Aws::Utils::DateTime m_updatedAt{};
456
457 Aws::String m_requestId;
458 bool m_idHasBeenSet = false;
459 bool m_statusHasBeenSet = false;
460 bool m_typeHasBeenSet = false;
461 bool m_nameHasBeenSet = false;
462 bool m_descriptionHasBeenSet = false;
463 bool m_domainIdHasBeenSet = false;
464 bool m_projectIdHasBeenSet = false;
465 bool m_environmentIdHasBeenSet = false;
466 bool m_connectionIdHasBeenSet = false;
467 bool m_configurationHasBeenSet = false;
468 bool m_recommendationHasBeenSet = false;
469 bool m_enableSettingHasBeenSet = false;
470 bool m_publishOnImportHasBeenSet = false;
471 bool m_assetFormsOutputHasBeenSet = false;
472 bool m_scheduleHasBeenSet = false;
473 bool m_lastRunStatusHasBeenSet = false;
474 bool m_lastRunAtHasBeenSet = false;
475 bool m_lastRunErrorMessageHasBeenSet = false;
476 bool m_errorMessageHasBeenSet = false;
477 bool m_createdAtHasBeenSet = false;
478 bool m_updatedAtHasBeenSet = false;
479 bool m_requestIdHasBeenSet = false;
480};
481
482} // namespace Model
483} // namespace DataZone
484} // namespace Aws
const Aws::Utils::DateTime & GetUpdatedAt() const
CreateDataSourceResult & WithSchedule(ScheduleT &&value)
CreateDataSourceResult & WithRecommendation(RecommendationT &&value)
CreateDataSourceResult & WithPublishOnImport(bool value)
CreateDataSourceResult & WithEnableSetting(EnableSetting value)
CreateDataSourceResult & WithEnvironmentId(EnvironmentIdT &&value)
CreateDataSourceResult & WithErrorMessage(ErrorMessageT &&value)
AWS_DATAZONE_API CreateDataSourceResult()=default
CreateDataSourceResult & WithRequestId(RequestIdT &&value)
const DataSourceErrorMessage & GetLastRunErrorMessage() const
CreateDataSourceResult & WithConfiguration(ConfigurationT &&value)
CreateDataSourceResult & WithType(TypeT &&value)
CreateDataSourceResult & WithName(NameT &&value)
void SetAssetFormsOutput(AssetFormsOutputT &&value)
CreateDataSourceResult & WithCreatedAt(CreatedAtT &&value)
AWS_DATAZONE_API CreateDataSourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateDataSourceResult & WithLastRunStatus(DataSourceRunStatus value)
CreateDataSourceResult & WithId(IdT &&value)
const Aws::Utils::DateTime & GetLastRunAt() const
const DataSourceConfigurationOutput & GetConfiguration() const
const Aws::Vector< FormOutput > & GetAssetFormsOutput() const
CreateDataSourceResult & WithStatus(DataSourceStatus value)
CreateDataSourceResult & WithLastRunAt(LastRunAtT &&value)
CreateDataSourceResult & WithDescription(DescriptionT &&value)
CreateDataSourceResult & WithLastRunErrorMessage(LastRunErrorMessageT &&value)
AWS_DATAZONE_API CreateDataSourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreatedAt() const
CreateDataSourceResult & WithUpdatedAt(UpdatedAtT &&value)
void SetLastRunErrorMessage(LastRunErrorMessageT &&value)
CreateDataSourceResult & WithDomainId(DomainIdT &&value)
CreateDataSourceResult & WithAssetFormsOutput(AssetFormsOutputT &&value)
CreateDataSourceResult & WithConnectionId(ConnectionIdT &&value)
CreateDataSourceResult & AddAssetFormsOutput(AssetFormsOutputT &&value)
const ScheduleConfiguration & GetSchedule() const
const DataSourceErrorMessage & GetErrorMessage() const
CreateDataSourceResult & WithProjectId(ProjectIdT &&value)
const RecommendationConfiguration & GetRecommendation() 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