AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateDataSourceRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datazone/DataZoneRequest.h>
11#include <aws/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/DataSourceConfigurationInput.h>
13#include <aws/datazone/model/EnableSetting.h>
14#include <aws/datazone/model/FormInput.h>
15#include <aws/datazone/model/RecommendationConfiguration.h>
16#include <aws/datazone/model/ScheduleConfiguration.h>
17
18#include <utility>
19
20namespace Aws {
21namespace DataZone {
22namespace Model {
23
27 public:
28 AWS_DATAZONE_API CreateDataSourceRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateDataSource"; }
35
36 AWS_DATAZONE_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
79 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
80 template <typename DomainIdentifierT = Aws::String>
81 void SetDomainIdentifier(DomainIdentifierT&& value) {
82 m_domainIdentifierHasBeenSet = true;
83 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
84 }
85 template <typename DomainIdentifierT = Aws::String>
86 CreateDataSourceRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
87 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetProjectIdentifier() const { return m_projectIdentifier; }
98 inline bool ProjectIdentifierHasBeenSet() const { return m_projectIdentifierHasBeenSet; }
99 template <typename ProjectIdentifierT = Aws::String>
100 void SetProjectIdentifier(ProjectIdentifierT&& value) {
101 m_projectIdentifierHasBeenSet = true;
102 m_projectIdentifier = std::forward<ProjectIdentifierT>(value);
103 }
104 template <typename ProjectIdentifierT = Aws::String>
105 CreateDataSourceRequest& WithProjectIdentifier(ProjectIdentifierT&& value) {
106 SetProjectIdentifier(std::forward<ProjectIdentifierT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetEnvironmentIdentifier() const { return m_environmentIdentifier; }
117 inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; }
118 template <typename EnvironmentIdentifierT = Aws::String>
119 void SetEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
120 m_environmentIdentifierHasBeenSet = true;
121 m_environmentIdentifier = std::forward<EnvironmentIdentifierT>(value);
122 }
123 template <typename EnvironmentIdentifierT = Aws::String>
124 CreateDataSourceRequest& WithEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
125 SetEnvironmentIdentifier(std::forward<EnvironmentIdentifierT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetConnectionIdentifier() const { return m_connectionIdentifier; }
135 inline bool ConnectionIdentifierHasBeenSet() const { return m_connectionIdentifierHasBeenSet; }
136 template <typename ConnectionIdentifierT = Aws::String>
137 void SetConnectionIdentifier(ConnectionIdentifierT&& value) {
138 m_connectionIdentifierHasBeenSet = true;
139 m_connectionIdentifier = std::forward<ConnectionIdentifierT>(value);
140 }
141 template <typename ConnectionIdentifierT = Aws::String>
142 CreateDataSourceRequest& WithConnectionIdentifier(ConnectionIdentifierT&& value) {
143 SetConnectionIdentifier(std::forward<ConnectionIdentifierT>(value));
144 return *this;
145 }
147
149
156 inline const Aws::String& GetType() const { return m_type; }
157 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
158 template <typename TypeT = Aws::String>
159 void SetType(TypeT&& value) {
160 m_typeHasBeenSet = true;
161 m_type = std::forward<TypeT>(value);
162 }
163 template <typename TypeT = Aws::String>
165 SetType(std::forward<TypeT>(value));
166 return *this;
167 }
169
171
175 inline const DataSourceConfigurationInput& GetConfiguration() const { return m_configuration; }
176 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
177 template <typename ConfigurationT = DataSourceConfigurationInput>
178 void SetConfiguration(ConfigurationT&& value) {
179 m_configurationHasBeenSet = true;
180 m_configuration = std::forward<ConfigurationT>(value);
181 }
182 template <typename ConfigurationT = DataSourceConfigurationInput>
184 SetConfiguration(std::forward<ConfigurationT>(value));
185 return *this;
186 }
188
190
194 inline const RecommendationConfiguration& GetRecommendation() const { return m_recommendation; }
195 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
196 template <typename RecommendationT = RecommendationConfiguration>
197 void SetRecommendation(RecommendationT&& value) {
198 m_recommendationHasBeenSet = true;
199 m_recommendation = std::forward<RecommendationT>(value);
200 }
201 template <typename RecommendationT = RecommendationConfiguration>
202 CreateDataSourceRequest& WithRecommendation(RecommendationT&& value) {
203 SetRecommendation(std::forward<RecommendationT>(value));
204 return *this;
205 }
207
209
212 inline EnableSetting GetEnableSetting() const { return m_enableSetting; }
213 inline bool EnableSettingHasBeenSet() const { return m_enableSettingHasBeenSet; }
214 inline void SetEnableSetting(EnableSetting value) {
215 m_enableSettingHasBeenSet = true;
216 m_enableSetting = value;
217 }
219 SetEnableSetting(value);
220 return *this;
221 }
223
225
228 inline const ScheduleConfiguration& GetSchedule() const { return m_schedule; }
229 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
230 template <typename ScheduleT = ScheduleConfiguration>
231 void SetSchedule(ScheduleT&& value) {
232 m_scheduleHasBeenSet = true;
233 m_schedule = std::forward<ScheduleT>(value);
234 }
235 template <typename ScheduleT = ScheduleConfiguration>
237 SetSchedule(std::forward<ScheduleT>(value));
238 return *this;
239 }
241
243
247 inline bool GetPublishOnImport() const { return m_publishOnImport; }
248 inline bool PublishOnImportHasBeenSet() const { return m_publishOnImportHasBeenSet; }
249 inline void SetPublishOnImport(bool value) {
250 m_publishOnImportHasBeenSet = true;
251 m_publishOnImport = value;
252 }
254 SetPublishOnImport(value);
255 return *this;
256 }
258
260
264 inline const Aws::Vector<FormInput>& GetAssetFormsInput() const { return m_assetFormsInput; }
265 inline bool AssetFormsInputHasBeenSet() const { return m_assetFormsInputHasBeenSet; }
266 template <typename AssetFormsInputT = Aws::Vector<FormInput>>
267 void SetAssetFormsInput(AssetFormsInputT&& value) {
268 m_assetFormsInputHasBeenSet = true;
269 m_assetFormsInput = std::forward<AssetFormsInputT>(value);
270 }
271 template <typename AssetFormsInputT = Aws::Vector<FormInput>>
272 CreateDataSourceRequest& WithAssetFormsInput(AssetFormsInputT&& value) {
273 SetAssetFormsInput(std::forward<AssetFormsInputT>(value));
274 return *this;
275 }
276 template <typename AssetFormsInputT = FormInput>
277 CreateDataSourceRequest& AddAssetFormsInput(AssetFormsInputT&& value) {
278 m_assetFormsInputHasBeenSet = true;
279 m_assetFormsInput.emplace_back(std::forward<AssetFormsInputT>(value));
280 return *this;
281 }
283
285
289 inline const Aws::String& GetClientToken() const { return m_clientToken; }
290 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
291 template <typename ClientTokenT = Aws::String>
292 void SetClientToken(ClientTokenT&& value) {
293 m_clientTokenHasBeenSet = true;
294 m_clientToken = std::forward<ClientTokenT>(value);
295 }
296 template <typename ClientTokenT = Aws::String>
298 SetClientToken(std::forward<ClientTokenT>(value));
299 return *this;
300 }
302 private:
303 Aws::String m_name;
304
305 Aws::String m_description;
306
307 Aws::String m_domainIdentifier;
308
309 Aws::String m_projectIdentifier;
310
311 Aws::String m_environmentIdentifier;
312
313 Aws::String m_connectionIdentifier;
314
315 Aws::String m_type;
316
317 DataSourceConfigurationInput m_configuration;
318
319 RecommendationConfiguration m_recommendation;
320
321 EnableSetting m_enableSetting{EnableSetting::NOT_SET};
322
323 ScheduleConfiguration m_schedule;
324
325 bool m_publishOnImport{false};
326
327 Aws::Vector<FormInput> m_assetFormsInput;
328
330 bool m_nameHasBeenSet = false;
331 bool m_descriptionHasBeenSet = false;
332 bool m_domainIdentifierHasBeenSet = false;
333 bool m_projectIdentifierHasBeenSet = false;
334 bool m_environmentIdentifierHasBeenSet = false;
335 bool m_connectionIdentifierHasBeenSet = false;
336 bool m_typeHasBeenSet = false;
337 bool m_configurationHasBeenSet = false;
338 bool m_recommendationHasBeenSet = false;
339 bool m_enableSettingHasBeenSet = false;
340 bool m_scheduleHasBeenSet = false;
341 bool m_publishOnImportHasBeenSet = false;
342 bool m_assetFormsInputHasBeenSet = false;
343 bool m_clientTokenHasBeenSet = true;
344};
345
346} // namespace Model
347} // namespace DataZone
348} // namespace Aws
const DataSourceConfigurationInput & GetConfiguration() const
CreateDataSourceRequest & WithName(NameT &&value)
CreateDataSourceRequest & AddAssetFormsInput(AssetFormsInputT &&value)
void SetEnvironmentIdentifier(EnvironmentIdentifierT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
const Aws::Vector< FormInput > & GetAssetFormsInput() const
CreateDataSourceRequest & WithDescription(DescriptionT &&value)
CreateDataSourceRequest & WithRecommendation(RecommendationT &&value)
CreateDataSourceRequest & WithConfiguration(ConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
CreateDataSourceRequest & WithConnectionIdentifier(ConnectionIdentifierT &&value)
AWS_DATAZONE_API CreateDataSourceRequest()=default
CreateDataSourceRequest & WithDomainIdentifier(DomainIdentifierT &&value)
CreateDataSourceRequest & WithEnvironmentIdentifier(EnvironmentIdentifierT &&value)
CreateDataSourceRequest & WithSchedule(ScheduleT &&value)
void SetConnectionIdentifier(ConnectionIdentifierT &&value)
CreateDataSourceRequest & WithPublishOnImport(bool value)
CreateDataSourceRequest & WithAssetFormsInput(AssetFormsInputT &&value)
const ScheduleConfiguration & GetSchedule() const
CreateDataSourceRequest & WithEnableSetting(EnableSetting value)
CreateDataSourceRequest & WithClientToken(ClientTokenT &&value)
const RecommendationConfiguration & GetRecommendation() const
void SetProjectIdentifier(ProjectIdentifierT &&value)
CreateDataSourceRequest & WithProjectIdentifier(ProjectIdentifierT &&value)
CreateDataSourceRequest & WithType(TypeT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector