AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
DeleteDataSourceResult.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/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 DeleteDataSourceResult() = 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>
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>
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>
135 SetDomainId(std::forward<DomainIdT>(value));
136 return *this;
137 }
139
141
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>
153 SetProjectId(std::forward<ProjectIdT>(value));
154 return *this;
155 }
157
159
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 DeleteDataSourceResult& 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 DeleteDataSourceResult& 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 DeleteDataSourceResult& WithConfiguration(ConfigurationT&& value) {
204 SetConfiguration(std::forward<ConfigurationT>(value));
205 return *this;
206 }
208
210
214 inline EnableSetting GetEnableSetting() const { return m_enableSetting; }
215 inline void SetEnableSetting(EnableSetting value) {
216 m_enableSettingHasBeenSet = true;
217 m_enableSetting = value;
218 }
220 SetEnableSetting(value);
221 return *this;
222 }
224
226
230 inline bool GetPublishOnImport() const { return m_publishOnImport; }
231 inline void SetPublishOnImport(bool value) {
232 m_publishOnImportHasBeenSet = true;
233 m_publishOnImport = value;
234 }
236 SetPublishOnImport(value);
237 return *this;
238 }
240
242
245 inline const Aws::Vector<FormOutput>& GetAssetFormsOutput() const { return m_assetFormsOutput; }
246 template <typename AssetFormsOutputT = Aws::Vector<FormOutput>>
247 void SetAssetFormsOutput(AssetFormsOutputT&& value) {
248 m_assetFormsOutputHasBeenSet = true;
249 m_assetFormsOutput = std::forward<AssetFormsOutputT>(value);
250 }
251 template <typename AssetFormsOutputT = Aws::Vector<FormOutput>>
252 DeleteDataSourceResult& WithAssetFormsOutput(AssetFormsOutputT&& value) {
253 SetAssetFormsOutput(std::forward<AssetFormsOutputT>(value));
254 return *this;
255 }
256 template <typename AssetFormsOutputT = FormOutput>
257 DeleteDataSourceResult& AddAssetFormsOutput(AssetFormsOutputT&& value) {
258 m_assetFormsOutputHasBeenSet = true;
259 m_assetFormsOutput.emplace_back(std::forward<AssetFormsOutputT>(value));
260 return *this;
261 }
263
265
268 inline const ScheduleConfiguration& GetSchedule() const { return m_schedule; }
269 template <typename ScheduleT = ScheduleConfiguration>
270 void SetSchedule(ScheduleT&& value) {
271 m_scheduleHasBeenSet = true;
272 m_schedule = std::forward<ScheduleT>(value);
273 }
274 template <typename ScheduleT = ScheduleConfiguration>
276 SetSchedule(std::forward<ScheduleT>(value));
277 return *this;
278 }
280
282
285 inline DataSourceRunStatus GetLastRunStatus() const { return m_lastRunStatus; }
287 m_lastRunStatusHasBeenSet = true;
288 m_lastRunStatus = value;
289 }
291 SetLastRunStatus(value);
292 return *this;
293 }
295
297
300 inline const Aws::Utils::DateTime& GetLastRunAt() const { return m_lastRunAt; }
301 template <typename LastRunAtT = Aws::Utils::DateTime>
302 void SetLastRunAt(LastRunAtT&& value) {
303 m_lastRunAtHasBeenSet = true;
304 m_lastRunAt = std::forward<LastRunAtT>(value);
305 }
306 template <typename LastRunAtT = Aws::Utils::DateTime>
308 SetLastRunAt(std::forward<LastRunAtT>(value));
309 return *this;
310 }
312
314
318 inline const DataSourceErrorMessage& GetLastRunErrorMessage() const { return m_lastRunErrorMessage; }
319 template <typename LastRunErrorMessageT = DataSourceErrorMessage>
320 void SetLastRunErrorMessage(LastRunErrorMessageT&& value) {
321 m_lastRunErrorMessageHasBeenSet = true;
322 m_lastRunErrorMessage = std::forward<LastRunErrorMessageT>(value);
323 }
324 template <typename LastRunErrorMessageT = DataSourceErrorMessage>
325 DeleteDataSourceResult& WithLastRunErrorMessage(LastRunErrorMessageT&& value) {
326 SetLastRunErrorMessage(std::forward<LastRunErrorMessageT>(value));
327 return *this;
328 }
330
332
336 inline const DataSourceErrorMessage& GetErrorMessage() const { return m_errorMessage; }
337 template <typename ErrorMessageT = DataSourceErrorMessage>
338 void SetErrorMessage(ErrorMessageT&& value) {
339 m_errorMessageHasBeenSet = true;
340 m_errorMessage = std::forward<ErrorMessageT>(value);
341 }
342 template <typename ErrorMessageT = DataSourceErrorMessage>
343 DeleteDataSourceResult& WithErrorMessage(ErrorMessageT&& value) {
344 SetErrorMessage(std::forward<ErrorMessageT>(value));
345 return *this;
346 }
348
350
353 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
354 template <typename CreatedAtT = Aws::Utils::DateTime>
355 void SetCreatedAt(CreatedAtT&& value) {
356 m_createdAtHasBeenSet = true;
357 m_createdAt = std::forward<CreatedAtT>(value);
358 }
359 template <typename CreatedAtT = Aws::Utils::DateTime>
361 SetCreatedAt(std::forward<CreatedAtT>(value));
362 return *this;
363 }
365
367
370 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
371 template <typename UpdatedAtT = Aws::Utils::DateTime>
372 void SetUpdatedAt(UpdatedAtT&& value) {
373 m_updatedAtHasBeenSet = true;
374 m_updatedAt = std::forward<UpdatedAtT>(value);
375 }
376 template <typename UpdatedAtT = Aws::Utils::DateTime>
378 SetUpdatedAt(std::forward<UpdatedAtT>(value));
379 return *this;
380 }
382
384
387 inline const SelfGrantStatusOutput& GetSelfGrantStatus() const { return m_selfGrantStatus; }
388 template <typename SelfGrantStatusT = SelfGrantStatusOutput>
389 void SetSelfGrantStatus(SelfGrantStatusT&& value) {
390 m_selfGrantStatusHasBeenSet = true;
391 m_selfGrantStatus = std::forward<SelfGrantStatusT>(value);
392 }
393 template <typename SelfGrantStatusT = SelfGrantStatusOutput>
394 DeleteDataSourceResult& WithSelfGrantStatus(SelfGrantStatusT&& value) {
395 SetSelfGrantStatus(std::forward<SelfGrantStatusT>(value));
396 return *this;
397 }
399
401
405 inline bool GetRetainPermissionsOnRevokeFailure() const { return m_retainPermissionsOnRevokeFailure; }
406 inline void SetRetainPermissionsOnRevokeFailure(bool value) {
407 m_retainPermissionsOnRevokeFailureHasBeenSet = true;
408 m_retainPermissionsOnRevokeFailure = value;
409 }
412 return *this;
413 }
415
417
418 inline const Aws::String& GetRequestId() const { return m_requestId; }
419 template <typename RequestIdT = Aws::String>
420 void SetRequestId(RequestIdT&& value) {
421 m_requestIdHasBeenSet = true;
422 m_requestId = std::forward<RequestIdT>(value);
423 }
424 template <typename RequestIdT = Aws::String>
426 SetRequestId(std::forward<RequestIdT>(value));
427 return *this;
428 }
430 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
431
432 private:
433 Aws::String m_id;
434
436
437 Aws::String m_type;
438
439 Aws::String m_name;
440
441 Aws::String m_description;
442
443 Aws::String m_domainId;
444
445 Aws::String m_projectId;
446
447 Aws::String m_environmentId;
448
449 Aws::String m_connectionId;
450
451 DataSourceConfigurationOutput m_configuration;
452
453 EnableSetting m_enableSetting{EnableSetting::NOT_SET};
454
455 bool m_publishOnImport{false};
456
457 Aws::Vector<FormOutput> m_assetFormsOutput;
458
459 ScheduleConfiguration m_schedule;
460
462
463 Aws::Utils::DateTime m_lastRunAt{};
464
465 DataSourceErrorMessage m_lastRunErrorMessage;
466
467 DataSourceErrorMessage m_errorMessage;
468
469 Aws::Utils::DateTime m_createdAt{};
470
471 Aws::Utils::DateTime m_updatedAt{};
472
473 SelfGrantStatusOutput m_selfGrantStatus;
474
475 bool m_retainPermissionsOnRevokeFailure{false};
476
477 Aws::String m_requestId;
478 Aws::Http::HttpResponseCode m_HttpResponseCode;
479 bool m_idHasBeenSet = false;
480 bool m_statusHasBeenSet = false;
481 bool m_typeHasBeenSet = false;
482 bool m_nameHasBeenSet = false;
483 bool m_descriptionHasBeenSet = false;
484 bool m_domainIdHasBeenSet = false;
485 bool m_projectIdHasBeenSet = false;
486 bool m_environmentIdHasBeenSet = false;
487 bool m_connectionIdHasBeenSet = false;
488 bool m_configurationHasBeenSet = false;
489 bool m_enableSettingHasBeenSet = false;
490 bool m_publishOnImportHasBeenSet = false;
491 bool m_assetFormsOutputHasBeenSet = false;
492 bool m_scheduleHasBeenSet = false;
493 bool m_lastRunStatusHasBeenSet = false;
494 bool m_lastRunAtHasBeenSet = false;
495 bool m_lastRunErrorMessageHasBeenSet = false;
496 bool m_errorMessageHasBeenSet = false;
497 bool m_createdAtHasBeenSet = false;
498 bool m_updatedAtHasBeenSet = false;
499 bool m_selfGrantStatusHasBeenSet = false;
500 bool m_retainPermissionsOnRevokeFailureHasBeenSet = false;
501 bool m_requestIdHasBeenSet = false;
502};
503
504} // namespace Model
505} // namespace DataZone
506} // namespace Aws
DeleteDataSourceResult & WithCreatedAt(CreatedAtT &&value)
DeleteDataSourceResult & WithPublishOnImport(bool value)
DeleteDataSourceResult & WithLastRunStatus(DataSourceRunStatus value)
AWS_DATAZONE_API DeleteDataSourceResult()=default
const Aws::Utils::DateTime & GetLastRunAt() const
DeleteDataSourceResult & AddAssetFormsOutput(AssetFormsOutputT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DeleteDataSourceResult & WithEnvironmentId(EnvironmentIdT &&value)
DeleteDataSourceResult & WithConnectionId(ConnectionIdT &&value)
DeleteDataSourceResult & WithProjectId(ProjectIdT &&value)
DeleteDataSourceResult & WithDomainId(DomainIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
DeleteDataSourceResult & WithAssetFormsOutput(AssetFormsOutputT &&value)
DeleteDataSourceResult & WithSelfGrantStatus(SelfGrantStatusT &&value)
const DataSourceErrorMessage & GetLastRunErrorMessage() const
const SelfGrantStatusOutput & GetSelfGrantStatus() const
const Aws::Vector< FormOutput > & GetAssetFormsOutput() const
void SetLastRunErrorMessage(LastRunErrorMessageT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
DeleteDataSourceResult & WithStatus(DataSourceStatus value)
DeleteDataSourceResult & WithEnableSetting(EnableSetting value)
DeleteDataSourceResult & WithDescription(DescriptionT &&value)
void SetAssetFormsOutput(AssetFormsOutputT &&value)
DeleteDataSourceResult & WithSchedule(ScheduleT &&value)
const DataSourceErrorMessage & GetErrorMessage() const
AWS_DATAZONE_API DeleteDataSourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DeleteDataSourceResult & WithLastRunErrorMessage(LastRunErrorMessageT &&value)
DeleteDataSourceResult & WithType(TypeT &&value)
DeleteDataSourceResult & WithRetainPermissionsOnRevokeFailure(bool value)
DeleteDataSourceResult & WithConfiguration(ConfigurationT &&value)
const DataSourceConfigurationOutput & GetConfiguration() const
const ScheduleConfiguration & GetSchedule() const
DeleteDataSourceResult & WithUpdatedAt(UpdatedAtT &&value)
DeleteDataSourceResult & WithErrorMessage(ErrorMessageT &&value)
DeleteDataSourceResult & WithRequestId(RequestIdT &&value)
DeleteDataSourceResult & WithLastRunAt(LastRunAtT &&value)
DeleteDataSourceResult & WithId(IdT &&value)
DeleteDataSourceResult & WithName(NameT &&value)
AWS_DATAZONE_API DeleteDataSourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue