AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DataSourceRunSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/DataSourceErrorMessage.h>
11#include <aws/datazone/model/DataSourceRunLineageSummary.h>
12#include <aws/datazone/model/DataSourceRunStatus.h>
13#include <aws/datazone/model/DataSourceRunType.h>
14#include <aws/datazone/model/RunStatisticsForAssets.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DataZone {
26namespace Model {
27
34 public:
35 AWS_DATAZONE_API DataSourceRunSummary() = default;
38 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
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 const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
63 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
64 template <typename DataSourceIdT = Aws::String>
65 void SetDataSourceId(DataSourceIdT&& value) {
66 m_dataSourceIdHasBeenSet = true;
67 m_dataSourceId = std::forward<DataSourceIdT>(value);
68 }
69 template <typename DataSourceIdT = Aws::String>
70 DataSourceRunSummary& WithDataSourceId(DataSourceIdT&& value) {
71 SetDataSourceId(std::forward<DataSourceIdT>(value));
72 return *this;
73 }
75
77
80 inline DataSourceRunType GetType() const { return m_type; }
81 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
82 inline void SetType(DataSourceRunType value) {
83 m_typeHasBeenSet = true;
84 m_type = value;
85 }
87 SetType(value);
88 return *this;
89 }
91
93
96 inline DataSourceRunStatus GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(DataSourceRunStatus value) {
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetProjectId() const { return m_projectId; }
113 inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; }
114 template <typename ProjectIdT = Aws::String>
115 void SetProjectId(ProjectIdT&& value) {
116 m_projectIdHasBeenSet = true;
117 m_projectId = std::forward<ProjectIdT>(value);
118 }
119 template <typename ProjectIdT = Aws::String>
120 DataSourceRunSummary& WithProjectId(ProjectIdT&& value) {
121 SetProjectId(std::forward<ProjectIdT>(value));
122 return *this;
123 }
125
127
128 inline const RunStatisticsForAssets& GetRunStatisticsForAssets() const { return m_runStatisticsForAssets; }
129 inline bool RunStatisticsForAssetsHasBeenSet() const { return m_runStatisticsForAssetsHasBeenSet; }
130 template <typename RunStatisticsForAssetsT = RunStatisticsForAssets>
131 void SetRunStatisticsForAssets(RunStatisticsForAssetsT&& value) {
132 m_runStatisticsForAssetsHasBeenSet = true;
133 m_runStatisticsForAssets = std::forward<RunStatisticsForAssetsT>(value);
134 }
135 template <typename RunStatisticsForAssetsT = RunStatisticsForAssets>
136 DataSourceRunSummary& WithRunStatisticsForAssets(RunStatisticsForAssetsT&& value) {
137 SetRunStatisticsForAssets(std::forward<RunStatisticsForAssetsT>(value));
138 return *this;
139 }
141
143
144 inline const DataSourceErrorMessage& GetErrorMessage() const { return m_errorMessage; }
145 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
146 template <typename ErrorMessageT = DataSourceErrorMessage>
147 void SetErrorMessage(ErrorMessageT&& value) {
148 m_errorMessageHasBeenSet = true;
149 m_errorMessage = std::forward<ErrorMessageT>(value);
150 }
151 template <typename ErrorMessageT = DataSourceErrorMessage>
152 DataSourceRunSummary& WithErrorMessage(ErrorMessageT&& value) {
153 SetErrorMessage(std::forward<ErrorMessageT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
163 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
164 template <typename CreatedAtT = Aws::Utils::DateTime>
165 void SetCreatedAt(CreatedAtT&& value) {
166 m_createdAtHasBeenSet = true;
167 m_createdAt = std::forward<CreatedAtT>(value);
168 }
169 template <typename CreatedAtT = Aws::Utils::DateTime>
170 DataSourceRunSummary& WithCreatedAt(CreatedAtT&& value) {
171 SetCreatedAt(std::forward<CreatedAtT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
181 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
182 template <typename UpdatedAtT = Aws::Utils::DateTime>
183 void SetUpdatedAt(UpdatedAtT&& value) {
184 m_updatedAtHasBeenSet = true;
185 m_updatedAt = std::forward<UpdatedAtT>(value);
186 }
187 template <typename UpdatedAtT = Aws::Utils::DateTime>
188 DataSourceRunSummary& WithUpdatedAt(UpdatedAtT&& value) {
189 SetUpdatedAt(std::forward<UpdatedAtT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
199 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
200 template <typename StartedAtT = Aws::Utils::DateTime>
201 void SetStartedAt(StartedAtT&& value) {
202 m_startedAtHasBeenSet = true;
203 m_startedAt = std::forward<StartedAtT>(value);
204 }
205 template <typename StartedAtT = Aws::Utils::DateTime>
206 DataSourceRunSummary& WithStartedAt(StartedAtT&& value) {
207 SetStartedAt(std::forward<StartedAtT>(value));
208 return *this;
209 }
211
213
216 inline const Aws::Utils::DateTime& GetStoppedAt() const { return m_stoppedAt; }
217 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
218 template <typename StoppedAtT = Aws::Utils::DateTime>
219 void SetStoppedAt(StoppedAtT&& value) {
220 m_stoppedAtHasBeenSet = true;
221 m_stoppedAt = std::forward<StoppedAtT>(value);
222 }
223 template <typename StoppedAtT = Aws::Utils::DateTime>
224 DataSourceRunSummary& WithStoppedAt(StoppedAtT&& value) {
225 SetStoppedAt(std::forward<StoppedAtT>(value));
226 return *this;
227 }
229
231
234 inline const DataSourceRunLineageSummary& GetLineageSummary() const { return m_lineageSummary; }
235 inline bool LineageSummaryHasBeenSet() const { return m_lineageSummaryHasBeenSet; }
236 template <typename LineageSummaryT = DataSourceRunLineageSummary>
237 void SetLineageSummary(LineageSummaryT&& value) {
238 m_lineageSummaryHasBeenSet = true;
239 m_lineageSummary = std::forward<LineageSummaryT>(value);
240 }
241 template <typename LineageSummaryT = DataSourceRunLineageSummary>
242 DataSourceRunSummary& WithLineageSummary(LineageSummaryT&& value) {
243 SetLineageSummary(std::forward<LineageSummaryT>(value));
244 return *this;
245 }
247 private:
248 Aws::String m_id;
249
250 Aws::String m_dataSourceId;
251
253
255
256 Aws::String m_projectId;
257
258 RunStatisticsForAssets m_runStatisticsForAssets;
259
260 DataSourceErrorMessage m_errorMessage;
261
262 Aws::Utils::DateTime m_createdAt{};
263
264 Aws::Utils::DateTime m_updatedAt{};
265
266 Aws::Utils::DateTime m_startedAt{};
267
268 Aws::Utils::DateTime m_stoppedAt{};
269
270 DataSourceRunLineageSummary m_lineageSummary;
271 bool m_idHasBeenSet = false;
272 bool m_dataSourceIdHasBeenSet = false;
273 bool m_typeHasBeenSet = false;
274 bool m_statusHasBeenSet = false;
275 bool m_projectIdHasBeenSet = false;
276 bool m_runStatisticsForAssetsHasBeenSet = false;
277 bool m_errorMessageHasBeenSet = false;
278 bool m_createdAtHasBeenSet = false;
279 bool m_updatedAtHasBeenSet = false;
280 bool m_startedAtHasBeenSet = false;
281 bool m_stoppedAtHasBeenSet = false;
282 bool m_lineageSummaryHasBeenSet = false;
283};
284
285} // namespace Model
286} // namespace DataZone
287} // namespace Aws
DataSourceRunSummary & WithDataSourceId(DataSourceIdT &&value)
DataSourceRunSummary & WithStatus(DataSourceRunStatus value)
DataSourceRunSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetStatus(DataSourceRunStatus value)
DataSourceRunSummary & WithType(DataSourceRunType value)
AWS_DATAZONE_API DataSourceRunSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const DataSourceRunLineageSummary & GetLineageSummary() const
AWS_DATAZONE_API DataSourceRunSummary(Aws::Utils::Json::JsonView jsonValue)
DataSourceRunSummary & WithProjectId(ProjectIdT &&value)
const DataSourceErrorMessage & GetErrorMessage() const
DataSourceRunSummary & WithStoppedAt(StoppedAtT &&value)
DataSourceRunSummary & WithRunStatisticsForAssets(RunStatisticsForAssetsT &&value)
DataSourceRunSummary & WithErrorMessage(ErrorMessageT &&value)
void SetRunStatisticsForAssets(RunStatisticsForAssetsT &&value)
DataSourceRunSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetStoppedAt() const
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
const RunStatisticsForAssets & GetRunStatisticsForAssets() const
const Aws::Utils::DateTime & GetCreatedAt() const
DataSourceRunSummary & WithId(IdT &&value)
DataSourceRunSummary & WithLineageSummary(LineageSummaryT &&value)
AWS_DATAZONE_API DataSourceRunSummary()=default
DataSourceRunSummary & WithStartedAt(StartedAtT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
void SetLineageSummary(LineageSummaryT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue