AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DataSourceSummary.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/datazone/model/EnableSetting.h>
11#include <aws/datazone/model/DataSourceErrorMessage.h>
12#include <aws/datazone/model/DataSourceRunStatus.h>
13#include <aws/datazone/model/ScheduleConfiguration.h>
14#include <aws/datazone/model/DataSourceStatus.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace DataZone
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_DATAZONE_API DataSourceSummary() = default;
41 AWS_DATAZONE_API DataSourceSummary(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
51 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
52 template<typename ConnectionIdT = Aws::String>
53 void SetConnectionId(ConnectionIdT&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::forward<ConnectionIdT>(value); }
54 template<typename ConnectionIdT = Aws::String>
55 DataSourceSummary& WithConnectionId(ConnectionIdT&& value) { SetConnectionId(std::forward<ConnectionIdT>(value)); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
63 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
64 template<typename CreatedAtT = Aws::Utils::DateTime>
65 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
66 template<typename CreatedAtT = Aws::Utils::DateTime>
67 DataSourceSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
69
71
74 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
75 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
76 template<typename DataSourceIdT = Aws::String>
77 void SetDataSourceId(DataSourceIdT&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::forward<DataSourceIdT>(value); }
78 template<typename DataSourceIdT = Aws::String>
79 DataSourceSummary& WithDataSourceId(DataSourceIdT&& value) { SetDataSourceId(std::forward<DataSourceIdT>(value)); return *this;}
81
83
86 inline const Aws::String& GetDescription() const { return m_description; }
87 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 template<typename DescriptionT = Aws::String>
89 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
90 template<typename DescriptionT = Aws::String>
91 DataSourceSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
93
95
98 inline const Aws::String& GetDomainId() const { return m_domainId; }
99 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
100 template<typename DomainIdT = Aws::String>
101 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
102 template<typename DomainIdT = Aws::String>
103 DataSourceSummary& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
105
107
110 inline EnableSetting GetEnableSetting() const { return m_enableSetting; }
111 inline bool EnableSettingHasBeenSet() const { return m_enableSettingHasBeenSet; }
112 inline void SetEnableSetting(EnableSetting value) { m_enableSettingHasBeenSet = true; m_enableSetting = value; }
115
117
120 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
121 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
122 template<typename EnvironmentIdT = Aws::String>
123 void SetEnvironmentId(EnvironmentIdT&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::forward<EnvironmentIdT>(value); }
124 template<typename EnvironmentIdT = Aws::String>
125 DataSourceSummary& WithEnvironmentId(EnvironmentIdT&& value) { SetEnvironmentId(std::forward<EnvironmentIdT>(value)); return *this;}
127
129
132 inline int GetLastRunAssetCount() const { return m_lastRunAssetCount; }
133 inline bool LastRunAssetCountHasBeenSet() const { return m_lastRunAssetCountHasBeenSet; }
134 inline void SetLastRunAssetCount(int value) { m_lastRunAssetCountHasBeenSet = true; m_lastRunAssetCount = value; }
135 inline DataSourceSummary& WithLastRunAssetCount(int value) { SetLastRunAssetCount(value); return *this;}
137
139
142 inline const Aws::Utils::DateTime& GetLastRunAt() const { return m_lastRunAt; }
143 inline bool LastRunAtHasBeenSet() const { return m_lastRunAtHasBeenSet; }
144 template<typename LastRunAtT = Aws::Utils::DateTime>
145 void SetLastRunAt(LastRunAtT&& value) { m_lastRunAtHasBeenSet = true; m_lastRunAt = std::forward<LastRunAtT>(value); }
146 template<typename LastRunAtT = Aws::Utils::DateTime>
147 DataSourceSummary& WithLastRunAt(LastRunAtT&& value) { SetLastRunAt(std::forward<LastRunAtT>(value)); return *this;}
149
151
152 inline const DataSourceErrorMessage& GetLastRunErrorMessage() const { return m_lastRunErrorMessage; }
153 inline bool LastRunErrorMessageHasBeenSet() const { return m_lastRunErrorMessageHasBeenSet; }
154 template<typename LastRunErrorMessageT = DataSourceErrorMessage>
155 void SetLastRunErrorMessage(LastRunErrorMessageT&& value) { m_lastRunErrorMessageHasBeenSet = true; m_lastRunErrorMessage = std::forward<LastRunErrorMessageT>(value); }
156 template<typename LastRunErrorMessageT = DataSourceErrorMessage>
157 DataSourceSummary& WithLastRunErrorMessage(LastRunErrorMessageT&& value) { SetLastRunErrorMessage(std::forward<LastRunErrorMessageT>(value)); return *this;}
159
161
164 inline DataSourceRunStatus GetLastRunStatus() const { return m_lastRunStatus; }
165 inline bool LastRunStatusHasBeenSet() const { return m_lastRunStatusHasBeenSet; }
166 inline void SetLastRunStatus(DataSourceRunStatus value) { m_lastRunStatusHasBeenSet = true; m_lastRunStatus = value; }
169
171
174 inline const Aws::String& GetName() const { return m_name; }
175 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
176 template<typename NameT = Aws::String>
177 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
178 template<typename NameT = Aws::String>
179 DataSourceSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
181
183
184 inline const ScheduleConfiguration& GetSchedule() const { return m_schedule; }
185 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
186 template<typename ScheduleT = ScheduleConfiguration>
187 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
188 template<typename ScheduleT = ScheduleConfiguration>
189 DataSourceSummary& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
191
193
196 inline DataSourceStatus GetStatus() const { return m_status; }
197 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
198 inline void SetStatus(DataSourceStatus value) { m_statusHasBeenSet = true; m_status = value; }
199 inline DataSourceSummary& WithStatus(DataSourceStatus value) { SetStatus(value); return *this;}
201
203
206 inline const Aws::String& GetType() const { return m_type; }
207 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
208 template<typename TypeT = Aws::String>
209 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
210 template<typename TypeT = Aws::String>
211 DataSourceSummary& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
213
215
218 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
219 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
220 template<typename UpdatedAtT = Aws::Utils::DateTime>
221 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
222 template<typename UpdatedAtT = Aws::Utils::DateTime>
223 DataSourceSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
225 private:
226
227 Aws::String m_connectionId;
228 bool m_connectionIdHasBeenSet = false;
229
230 Aws::Utils::DateTime m_createdAt{};
231 bool m_createdAtHasBeenSet = false;
232
233 Aws::String m_dataSourceId;
234 bool m_dataSourceIdHasBeenSet = false;
235
236 Aws::String m_description;
237 bool m_descriptionHasBeenSet = false;
238
239 Aws::String m_domainId;
240 bool m_domainIdHasBeenSet = false;
241
242 EnableSetting m_enableSetting{EnableSetting::NOT_SET};
243 bool m_enableSettingHasBeenSet = false;
244
245 Aws::String m_environmentId;
246 bool m_environmentIdHasBeenSet = false;
247
248 int m_lastRunAssetCount{0};
249 bool m_lastRunAssetCountHasBeenSet = false;
250
251 Aws::Utils::DateTime m_lastRunAt{};
252 bool m_lastRunAtHasBeenSet = false;
253
254 DataSourceErrorMessage m_lastRunErrorMessage;
255 bool m_lastRunErrorMessageHasBeenSet = false;
256
258 bool m_lastRunStatusHasBeenSet = false;
259
260 Aws::String m_name;
261 bool m_nameHasBeenSet = false;
262
263 ScheduleConfiguration m_schedule;
264 bool m_scheduleHasBeenSet = false;
265
267 bool m_statusHasBeenSet = false;
268
269 Aws::String m_type;
270 bool m_typeHasBeenSet = false;
271
272 Aws::Utils::DateTime m_updatedAt{};
273 bool m_updatedAtHasBeenSet = false;
274 };
275
276} // namespace Model
277} // namespace DataZone
278} // 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