AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DataSourceSummary.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/DataSourceRunStatus.h>
12#include <aws/datazone/model/DataSourceStatus.h>
13#include <aws/datazone/model/EnableSetting.h>
14#include <aws/datazone/model/ScheduleConfiguration.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 DataSourceSummary() = default;
36 AWS_DATAZONE_API DataSourceSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetDomainId() const { return m_domainId; }
45 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
46 template <typename DomainIdT = Aws::String>
47 void SetDomainId(DomainIdT&& value) {
48 m_domainIdHasBeenSet = true;
49 m_domainId = std::forward<DomainIdT>(value);
50 }
51 template <typename DomainIdT = Aws::String>
52 DataSourceSummary& WithDomainId(DomainIdT&& value) {
53 SetDomainId(std::forward<DomainIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
63 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
64 template <typename EnvironmentIdT = Aws::String>
65 void SetEnvironmentId(EnvironmentIdT&& value) {
66 m_environmentIdHasBeenSet = true;
67 m_environmentId = std::forward<EnvironmentIdT>(value);
68 }
69 template <typename EnvironmentIdT = Aws::String>
70 DataSourceSummary& WithEnvironmentId(EnvironmentIdT&& value) {
71 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
81 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
82 template <typename ConnectionIdT = Aws::String>
83 void SetConnectionId(ConnectionIdT&& value) {
84 m_connectionIdHasBeenSet = true;
85 m_connectionId = std::forward<ConnectionIdT>(value);
86 }
87 template <typename ConnectionIdT = Aws::String>
88 DataSourceSummary& WithConnectionId(ConnectionIdT&& value) {
89 SetConnectionId(std::forward<ConnectionIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
99 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
100 template <typename DataSourceIdT = Aws::String>
101 void SetDataSourceId(DataSourceIdT&& value) {
102 m_dataSourceIdHasBeenSet = true;
103 m_dataSourceId = std::forward<DataSourceIdT>(value);
104 }
105 template <typename DataSourceIdT = Aws::String>
106 DataSourceSummary& WithDataSourceId(DataSourceIdT&& value) {
107 SetDataSourceId(std::forward<DataSourceIdT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetName() const { return m_name; }
117 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
118 template <typename NameT = Aws::String>
119 void SetName(NameT&& value) {
120 m_nameHasBeenSet = true;
121 m_name = std::forward<NameT>(value);
122 }
123 template <typename NameT = Aws::String>
124 DataSourceSummary& WithName(NameT&& value) {
125 SetName(std::forward<NameT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetType() const { return m_type; }
135 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
136 template <typename TypeT = Aws::String>
137 void SetType(TypeT&& value) {
138 m_typeHasBeenSet = true;
139 m_type = std::forward<TypeT>(value);
140 }
141 template <typename TypeT = Aws::String>
142 DataSourceSummary& WithType(TypeT&& value) {
143 SetType(std::forward<TypeT>(value));
144 return *this;
145 }
147
149
152 inline DataSourceStatus GetStatus() const { return m_status; }
153 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
154 inline void SetStatus(DataSourceStatus value) {
155 m_statusHasBeenSet = true;
156 m_status = value;
157 }
159 SetStatus(value);
160 return *this;
161 }
163
165
168 inline EnableSetting GetEnableSetting() const { return m_enableSetting; }
169 inline bool EnableSettingHasBeenSet() const { return m_enableSettingHasBeenSet; }
170 inline void SetEnableSetting(EnableSetting value) {
171 m_enableSettingHasBeenSet = true;
172 m_enableSetting = value;
173 }
175 SetEnableSetting(value);
176 return *this;
177 }
179
181
182 inline const ScheduleConfiguration& GetSchedule() const { return m_schedule; }
183 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
184 template <typename ScheduleT = ScheduleConfiguration>
185 void SetSchedule(ScheduleT&& value) {
186 m_scheduleHasBeenSet = true;
187 m_schedule = std::forward<ScheduleT>(value);
188 }
189 template <typename ScheduleT = ScheduleConfiguration>
190 DataSourceSummary& WithSchedule(ScheduleT&& value) {
191 SetSchedule(std::forward<ScheduleT>(value));
192 return *this;
193 }
195
197
200 inline DataSourceRunStatus GetLastRunStatus() const { return m_lastRunStatus; }
201 inline bool LastRunStatusHasBeenSet() const { return m_lastRunStatusHasBeenSet; }
203 m_lastRunStatusHasBeenSet = true;
204 m_lastRunStatus = value;
205 }
207 SetLastRunStatus(value);
208 return *this;
209 }
211
213
216 inline const Aws::Utils::DateTime& GetLastRunAt() const { return m_lastRunAt; }
217 inline bool LastRunAtHasBeenSet() const { return m_lastRunAtHasBeenSet; }
218 template <typename LastRunAtT = Aws::Utils::DateTime>
219 void SetLastRunAt(LastRunAtT&& value) {
220 m_lastRunAtHasBeenSet = true;
221 m_lastRunAt = std::forward<LastRunAtT>(value);
222 }
223 template <typename LastRunAtT = Aws::Utils::DateTime>
224 DataSourceSummary& WithLastRunAt(LastRunAtT&& value) {
225 SetLastRunAt(std::forward<LastRunAtT>(value));
226 return *this;
227 }
229
231
232 inline const DataSourceErrorMessage& GetLastRunErrorMessage() const { return m_lastRunErrorMessage; }
233 inline bool LastRunErrorMessageHasBeenSet() const { return m_lastRunErrorMessageHasBeenSet; }
234 template <typename LastRunErrorMessageT = DataSourceErrorMessage>
235 void SetLastRunErrorMessage(LastRunErrorMessageT&& value) {
236 m_lastRunErrorMessageHasBeenSet = true;
237 m_lastRunErrorMessage = std::forward<LastRunErrorMessageT>(value);
238 }
239 template <typename LastRunErrorMessageT = DataSourceErrorMessage>
240 DataSourceSummary& WithLastRunErrorMessage(LastRunErrorMessageT&& value) {
241 SetLastRunErrorMessage(std::forward<LastRunErrorMessageT>(value));
242 return *this;
243 }
245
247
250 inline int GetLastRunAssetCount() const { return m_lastRunAssetCount; }
251 inline bool LastRunAssetCountHasBeenSet() const { return m_lastRunAssetCountHasBeenSet; }
252 inline void SetLastRunAssetCount(int value) {
253 m_lastRunAssetCountHasBeenSet = true;
254 m_lastRunAssetCount = value;
255 }
258 return *this;
259 }
261
263
266 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
267 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
268 template <typename CreatedAtT = Aws::Utils::DateTime>
269 void SetCreatedAt(CreatedAtT&& value) {
270 m_createdAtHasBeenSet = true;
271 m_createdAt = std::forward<CreatedAtT>(value);
272 }
273 template <typename CreatedAtT = Aws::Utils::DateTime>
274 DataSourceSummary& WithCreatedAt(CreatedAtT&& value) {
275 SetCreatedAt(std::forward<CreatedAtT>(value));
276 return *this;
277 }
279
281
284 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
285 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
286 template <typename UpdatedAtT = Aws::Utils::DateTime>
287 void SetUpdatedAt(UpdatedAtT&& value) {
288 m_updatedAtHasBeenSet = true;
289 m_updatedAt = std::forward<UpdatedAtT>(value);
290 }
291 template <typename UpdatedAtT = Aws::Utils::DateTime>
292 DataSourceSummary& WithUpdatedAt(UpdatedAtT&& value) {
293 SetUpdatedAt(std::forward<UpdatedAtT>(value));
294 return *this;
295 }
297
299
302 inline const Aws::String& GetDescription() const { return m_description; }
303 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
304 template <typename DescriptionT = Aws::String>
305 void SetDescription(DescriptionT&& value) {
306 m_descriptionHasBeenSet = true;
307 m_description = std::forward<DescriptionT>(value);
308 }
309 template <typename DescriptionT = Aws::String>
310 DataSourceSummary& WithDescription(DescriptionT&& value) {
311 SetDescription(std::forward<DescriptionT>(value));
312 return *this;
313 }
315 private:
316 Aws::String m_domainId;
317
318 Aws::String m_environmentId;
319
320 Aws::String m_connectionId;
321
322 Aws::String m_dataSourceId;
323
324 Aws::String m_name;
325
326 Aws::String m_type;
327
329
330 EnableSetting m_enableSetting{EnableSetting::NOT_SET};
331
332 ScheduleConfiguration m_schedule;
333
335
336 Aws::Utils::DateTime m_lastRunAt{};
337
338 DataSourceErrorMessage m_lastRunErrorMessage;
339
340 int m_lastRunAssetCount{0};
341
342 Aws::Utils::DateTime m_createdAt{};
343
344 Aws::Utils::DateTime m_updatedAt{};
345
346 Aws::String m_description;
347 bool m_domainIdHasBeenSet = false;
348 bool m_environmentIdHasBeenSet = false;
349 bool m_connectionIdHasBeenSet = false;
350 bool m_dataSourceIdHasBeenSet = false;
351 bool m_nameHasBeenSet = false;
352 bool m_typeHasBeenSet = false;
353 bool m_statusHasBeenSet = false;
354 bool m_enableSettingHasBeenSet = false;
355 bool m_scheduleHasBeenSet = false;
356 bool m_lastRunStatusHasBeenSet = false;
357 bool m_lastRunAtHasBeenSet = false;
358 bool m_lastRunErrorMessageHasBeenSet = false;
359 bool m_lastRunAssetCountHasBeenSet = false;
360 bool m_createdAtHasBeenSet = false;
361 bool m_updatedAtHasBeenSet = false;
362 bool m_descriptionHasBeenSet = false;
363};
364
365} // namespace Model
366} // namespace DataZone
367} // namespace Aws
void SetLastRunErrorMessage(LastRunErrorMessageT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetDataSourceId(DataSourceIdT &&value)
const DataSourceErrorMessage & GetLastRunErrorMessage() const
void SetEnvironmentId(EnvironmentIdT &&value)
void SetDescription(DescriptionT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
const ScheduleConfiguration & GetSchedule() const
DataSourceSummary & WithLastRunStatus(DataSourceRunStatus value)
const Aws::String & GetEnvironmentId() const
const Aws::String & GetDomainId() const
const Aws::String & GetDescription() const
const Aws::Utils::DateTime & GetUpdatedAt() const
DataSourceSummary & WithEnableSetting(EnableSetting value)
const Aws::String & GetDataSourceId() const
DataSourceSummary & WithSchedule(ScheduleT &&value)
DataSourceSummary & WithDescription(DescriptionT &&value)
AWS_DATAZONE_API DataSourceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSourceSummary & WithLastRunAt(LastRunAtT &&value)
AWS_DATAZONE_API DataSourceSummary(Aws::Utils::Json::JsonView jsonValue)
DataSourceSummary & WithName(NameT &&value)
void SetStatus(DataSourceStatus value)
const Aws::String & GetConnectionId() const
DataSourceSummary & WithDataSourceId(DataSourceIdT &&value)
DataSourceSummary & WithLastRunErrorMessage(LastRunErrorMessageT &&value)
DataSourceRunStatus GetLastRunStatus() const
AWS_DATAZONE_API DataSourceSummary()=default
const Aws::Utils::DateTime & GetLastRunAt() const
DataSourceSummary & WithDomainId(DomainIdT &&value)
DataSourceSummary & WithConnectionId(ConnectionIdT &&value)
DataSourceSummary & WithStatus(DataSourceStatus value)
DataSourceSummary & WithUpdatedAt(UpdatedAtT &&value)
void SetConnectionId(ConnectionIdT &&value)
void SetLastRunStatus(DataSourceRunStatus value)
DataSourceSummary & WithCreatedAt(CreatedAtT &&value)
DataSourceSummary & WithType(TypeT &&value)
DataSourceSummary & WithLastRunAssetCount(int value)
DataSourceSummary & WithEnvironmentId(EnvironmentIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue