AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetDataSourceResult.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datazone/model/DataSourceConfigurationOutput.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/datazone/model/EnableSetting.h>
13#include <aws/datazone/model/DataSourceErrorMessage.h>
14#include <aws/datazone/model/DataSourceRunStatus.h>
15#include <aws/datazone/model/RecommendationConfiguration.h>
16#include <aws/datazone/model/ScheduleConfiguration.h>
17#include <aws/datazone/model/SelfGrantStatusOutput.h>
18#include <aws/datazone/model/DataSourceStatus.h>
19#include <aws/datazone/model/FormOutput.h>
20#include <utility>
21
22namespace Aws
23{
24template<typename RESULT_TYPE>
25class AmazonWebServiceResult;
26
27namespace Utils
28{
29namespace Json
30{
31 class JsonValue;
32} // namespace Json
33} // namespace Utils
34namespace DataZone
35{
36namespace Model
37{
39 {
40 public:
41 AWS_DATAZONE_API GetDataSourceResult() = default;
44
45
47
50 inline const Aws::Vector<FormOutput>& GetAssetFormsOutput() const { return m_assetFormsOutput; }
51 template<typename AssetFormsOutputT = Aws::Vector<FormOutput>>
52 void SetAssetFormsOutput(AssetFormsOutputT&& value) { m_assetFormsOutputHasBeenSet = true; m_assetFormsOutput = std::forward<AssetFormsOutputT>(value); }
53 template<typename AssetFormsOutputT = Aws::Vector<FormOutput>>
54 GetDataSourceResult& WithAssetFormsOutput(AssetFormsOutputT&& value) { SetAssetFormsOutput(std::forward<AssetFormsOutputT>(value)); return *this;}
55 template<typename AssetFormsOutputT = FormOutput>
56 GetDataSourceResult& AddAssetFormsOutput(AssetFormsOutputT&& value) { m_assetFormsOutputHasBeenSet = true; m_assetFormsOutput.emplace_back(std::forward<AssetFormsOutputT>(value)); return *this; }
58
60
63 inline const DataSourceConfigurationOutput& GetConfiguration() const { return m_configuration; }
64 template<typename ConfigurationT = DataSourceConfigurationOutput>
65 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
66 template<typename ConfigurationT = DataSourceConfigurationOutput>
67 GetDataSourceResult& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
69
71
74 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
75 template<typename ConnectionIdT = Aws::String>
76 void SetConnectionId(ConnectionIdT&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::forward<ConnectionIdT>(value); }
77 template<typename ConnectionIdT = Aws::String>
78 GetDataSourceResult& WithConnectionId(ConnectionIdT&& value) { SetConnectionId(std::forward<ConnectionIdT>(value)); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
86 template<typename CreatedAtT = Aws::Utils::DateTime>
87 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
88 template<typename CreatedAtT = Aws::Utils::DateTime>
89 GetDataSourceResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 template<typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
99 template<typename DescriptionT = Aws::String>
100 GetDataSourceResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
102
104
107 inline const Aws::String& GetDomainId() const { return m_domainId; }
108 template<typename DomainIdT = Aws::String>
109 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
110 template<typename DomainIdT = Aws::String>
111 GetDataSourceResult& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
113
115
118 inline EnableSetting GetEnableSetting() const { return m_enableSetting; }
119 inline void SetEnableSetting(EnableSetting value) { m_enableSettingHasBeenSet = true; m_enableSetting = value; }
122
124
128 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
129 template<typename EnvironmentIdT = Aws::String>
130 void SetEnvironmentId(EnvironmentIdT&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::forward<EnvironmentIdT>(value); }
131 template<typename EnvironmentIdT = Aws::String>
132 GetDataSourceResult& WithEnvironmentId(EnvironmentIdT&& value) { SetEnvironmentId(std::forward<EnvironmentIdT>(value)); return *this;}
134
136
140 inline const DataSourceErrorMessage& GetErrorMessage() const { return m_errorMessage; }
141 template<typename ErrorMessageT = DataSourceErrorMessage>
142 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
143 template<typename ErrorMessageT = DataSourceErrorMessage>
144 GetDataSourceResult& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
146
148
151 inline const Aws::String& GetId() const { return m_id; }
152 template<typename IdT = Aws::String>
153 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
154 template<typename IdT = Aws::String>
155 GetDataSourceResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
157
159
162 inline int GetLastRunAssetCount() const { return m_lastRunAssetCount; }
163 inline void SetLastRunAssetCount(int value) { m_lastRunAssetCountHasBeenSet = true; m_lastRunAssetCount = value; }
164 inline GetDataSourceResult& WithLastRunAssetCount(int value) { SetLastRunAssetCount(value); return *this;}
166
168
171 inline const Aws::Utils::DateTime& GetLastRunAt() const { return m_lastRunAt; }
172 template<typename LastRunAtT = Aws::Utils::DateTime>
173 void SetLastRunAt(LastRunAtT&& value) { m_lastRunAtHasBeenSet = true; m_lastRunAt = std::forward<LastRunAtT>(value); }
174 template<typename LastRunAtT = Aws::Utils::DateTime>
175 GetDataSourceResult& WithLastRunAt(LastRunAtT&& value) { SetLastRunAt(std::forward<LastRunAtT>(value)); return *this;}
177
179
183 inline const DataSourceErrorMessage& GetLastRunErrorMessage() const { return m_lastRunErrorMessage; }
184 template<typename LastRunErrorMessageT = DataSourceErrorMessage>
185 void SetLastRunErrorMessage(LastRunErrorMessageT&& value) { m_lastRunErrorMessageHasBeenSet = true; m_lastRunErrorMessage = std::forward<LastRunErrorMessageT>(value); }
186 template<typename LastRunErrorMessageT = DataSourceErrorMessage>
187 GetDataSourceResult& WithLastRunErrorMessage(LastRunErrorMessageT&& value) { SetLastRunErrorMessage(std::forward<LastRunErrorMessageT>(value)); return *this;}
189
191
194 inline DataSourceRunStatus GetLastRunStatus() const { return m_lastRunStatus; }
195 inline void SetLastRunStatus(DataSourceRunStatus value) { m_lastRunStatusHasBeenSet = true; m_lastRunStatus = value; }
198
200
203 inline const Aws::String& GetName() const { return m_name; }
204 template<typename NameT = Aws::String>
205 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
206 template<typename NameT = Aws::String>
207 GetDataSourceResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
209
211
214 inline const Aws::String& GetProjectId() const { return m_projectId; }
215 template<typename ProjectIdT = Aws::String>
216 void SetProjectId(ProjectIdT&& value) { m_projectIdHasBeenSet = true; m_projectId = std::forward<ProjectIdT>(value); }
217 template<typename ProjectIdT = Aws::String>
218 GetDataSourceResult& WithProjectId(ProjectIdT&& value) { SetProjectId(std::forward<ProjectIdT>(value)); return *this;}
220
222
226 inline bool GetPublishOnImport() const { return m_publishOnImport; }
227 inline void SetPublishOnImport(bool value) { m_publishOnImportHasBeenSet = true; m_publishOnImport = value; }
228 inline GetDataSourceResult& WithPublishOnImport(bool value) { SetPublishOnImport(value); return *this;}
230
232
235 inline const RecommendationConfiguration& GetRecommendation() const { return m_recommendation; }
236 template<typename RecommendationT = RecommendationConfiguration>
237 void SetRecommendation(RecommendationT&& value) { m_recommendationHasBeenSet = true; m_recommendation = std::forward<RecommendationT>(value); }
238 template<typename RecommendationT = RecommendationConfiguration>
239 GetDataSourceResult& WithRecommendation(RecommendationT&& value) { SetRecommendation(std::forward<RecommendationT>(value)); return *this;}
241
243
246 inline const ScheduleConfiguration& GetSchedule() const { return m_schedule; }
247 template<typename ScheduleT = ScheduleConfiguration>
248 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
249 template<typename ScheduleT = ScheduleConfiguration>
250 GetDataSourceResult& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
252
254
257 inline const SelfGrantStatusOutput& GetSelfGrantStatus() const { return m_selfGrantStatus; }
258 template<typename SelfGrantStatusT = SelfGrantStatusOutput>
259 void SetSelfGrantStatus(SelfGrantStatusT&& value) { m_selfGrantStatusHasBeenSet = true; m_selfGrantStatus = std::forward<SelfGrantStatusT>(value); }
260 template<typename SelfGrantStatusT = SelfGrantStatusOutput>
261 GetDataSourceResult& WithSelfGrantStatus(SelfGrantStatusT&& value) { SetSelfGrantStatus(std::forward<SelfGrantStatusT>(value)); return *this;}
263
265
268 inline DataSourceStatus GetStatus() const { return m_status; }
269 inline void SetStatus(DataSourceStatus value) { m_statusHasBeenSet = true; m_status = value; }
270 inline GetDataSourceResult& WithStatus(DataSourceStatus value) { SetStatus(value); return *this;}
272
274
277 inline const Aws::String& GetType() const { return m_type; }
278 template<typename TypeT = Aws::String>
279 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
280 template<typename TypeT = Aws::String>
281 GetDataSourceResult& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
283
285
288 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
289 template<typename UpdatedAtT = Aws::Utils::DateTime>
290 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
291 template<typename UpdatedAtT = Aws::Utils::DateTime>
292 GetDataSourceResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
294
296
297 inline const Aws::String& GetRequestId() const { return m_requestId; }
298 template<typename RequestIdT = Aws::String>
299 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
300 template<typename RequestIdT = Aws::String>
301 GetDataSourceResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
303 private:
304
305 Aws::Vector<FormOutput> m_assetFormsOutput;
306 bool m_assetFormsOutputHasBeenSet = false;
307
308 DataSourceConfigurationOutput m_configuration;
309 bool m_configurationHasBeenSet = false;
310
311 Aws::String m_connectionId;
312 bool m_connectionIdHasBeenSet = false;
313
314 Aws::Utils::DateTime m_createdAt{};
315 bool m_createdAtHasBeenSet = false;
316
317 Aws::String m_description;
318 bool m_descriptionHasBeenSet = false;
319
320 Aws::String m_domainId;
321 bool m_domainIdHasBeenSet = false;
322
323 EnableSetting m_enableSetting{EnableSetting::NOT_SET};
324 bool m_enableSettingHasBeenSet = false;
325
326 Aws::String m_environmentId;
327 bool m_environmentIdHasBeenSet = false;
328
329 DataSourceErrorMessage m_errorMessage;
330 bool m_errorMessageHasBeenSet = false;
331
332 Aws::String m_id;
333 bool m_idHasBeenSet = false;
334
335 int m_lastRunAssetCount{0};
336 bool m_lastRunAssetCountHasBeenSet = false;
337
338 Aws::Utils::DateTime m_lastRunAt{};
339 bool m_lastRunAtHasBeenSet = false;
340
341 DataSourceErrorMessage m_lastRunErrorMessage;
342 bool m_lastRunErrorMessageHasBeenSet = false;
343
345 bool m_lastRunStatusHasBeenSet = false;
346
347 Aws::String m_name;
348 bool m_nameHasBeenSet = false;
349
350 Aws::String m_projectId;
351 bool m_projectIdHasBeenSet = false;
352
353 bool m_publishOnImport{false};
354 bool m_publishOnImportHasBeenSet = false;
355
356 RecommendationConfiguration m_recommendation;
357 bool m_recommendationHasBeenSet = false;
358
359 ScheduleConfiguration m_schedule;
360 bool m_scheduleHasBeenSet = false;
361
362 SelfGrantStatusOutput m_selfGrantStatus;
363 bool m_selfGrantStatusHasBeenSet = false;
364
366 bool m_statusHasBeenSet = false;
367
368 Aws::String m_type;
369 bool m_typeHasBeenSet = false;
370
371 Aws::Utils::DateTime m_updatedAt{};
372 bool m_updatedAtHasBeenSet = false;
373
374 Aws::String m_requestId;
375 bool m_requestIdHasBeenSet = false;
376 };
377
378} // namespace Model
379} // namespace DataZone
380} // namespace Aws
GetDataSourceResult & WithStatus(DataSourceStatus value)
void SetAssetFormsOutput(AssetFormsOutputT &&value)
const Aws::Utils::DateTime & GetLastRunAt() const
GetDataSourceResult & WithUpdatedAt(UpdatedAtT &&value)
void SetEnvironmentId(EnvironmentIdT &&value)
GetDataSourceResult & WithEnvironmentId(EnvironmentIdT &&value)
GetDataSourceResult & WithName(NameT &&value)
const Aws::Vector< FormOutput > & GetAssetFormsOutput() const
GetDataSourceResult & WithDescription(DescriptionT &&value)
GetDataSourceResult & WithLastRunAt(LastRunAtT &&value)
GetDataSourceResult & WithSelfGrantStatus(SelfGrantStatusT &&value)
GetDataSourceResult & WithConnectionId(ConnectionIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetDataSourceResult & WithId(IdT &&value)
AWS_DATAZONE_API GetDataSourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetDataSourceResult & WithCreatedAt(CreatedAtT &&value)
void SetLastRunStatus(DataSourceRunStatus value)
const ScheduleConfiguration & GetSchedule() const
void SetRecommendation(RecommendationT &&value)
AWS_DATAZONE_API GetDataSourceResult()=default
GetDataSourceResult & WithLastRunStatus(DataSourceRunStatus value)
GetDataSourceResult & WithRecommendation(RecommendationT &&value)
const RecommendationConfiguration & GetRecommendation() const
GetDataSourceResult & WithRequestId(RequestIdT &&value)
const DataSourceConfigurationOutput & GetConfiguration() const
GetDataSourceResult & WithProjectId(ProjectIdT &&value)
GetDataSourceResult & WithSchedule(ScheduleT &&value)
AWS_DATAZONE_API GetDataSourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDataSourceResult & WithAssetFormsOutput(AssetFormsOutputT &&value)
GetDataSourceResult & WithConfiguration(ConfigurationT &&value)
void SetSelfGrantStatus(SelfGrantStatusT &&value)
GetDataSourceResult & WithLastRunErrorMessage(LastRunErrorMessageT &&value)
void SetConfiguration(ConfigurationT &&value)
GetDataSourceResult & WithType(TypeT &&value)
GetDataSourceResult & AddAssetFormsOutput(AssetFormsOutputT &&value)
void SetLastRunErrorMessage(LastRunErrorMessageT &&value)
GetDataSourceResult & WithDomainId(DomainIdT &&value)
GetDataSourceResult & WithLastRunAssetCount(int value)
GetDataSourceResult & WithEnableSetting(EnableSetting value)
const DataSourceErrorMessage & GetLastRunErrorMessage() const
GetDataSourceResult & WithPublishOnImport(bool value)
GetDataSourceResult & WithErrorMessage(ErrorMessageT &&value)
const DataSourceErrorMessage & GetErrorMessage() const
const SelfGrantStatusOutput & GetSelfGrantStatus() 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