AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDataSourceRequest.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/datazone/model/DataSourceConfigurationInput.h>
12#include <aws/datazone/model/EnableSetting.h>
13#include <aws/datazone/model/RecommendationConfiguration.h>
14#include <aws/datazone/model/ScheduleConfiguration.h>
15#include <aws/datazone/model/FormInput.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace DataZone
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_DATAZONE_API CreateDataSourceRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateDataSource"; }
38
39 AWS_DATAZONE_API Aws::String SerializePayload() const override;
40
41
43
47 inline const Aws::Vector<FormInput>& GetAssetFormsInput() const { return m_assetFormsInput; }
48 inline bool AssetFormsInputHasBeenSet() const { return m_assetFormsInputHasBeenSet; }
49 template<typename AssetFormsInputT = Aws::Vector<FormInput>>
50 void SetAssetFormsInput(AssetFormsInputT&& value) { m_assetFormsInputHasBeenSet = true; m_assetFormsInput = std::forward<AssetFormsInputT>(value); }
51 template<typename AssetFormsInputT = Aws::Vector<FormInput>>
52 CreateDataSourceRequest& WithAssetFormsInput(AssetFormsInputT&& value) { SetAssetFormsInput(std::forward<AssetFormsInputT>(value)); return *this;}
53 template<typename AssetFormsInputT = FormInput>
54 CreateDataSourceRequest& AddAssetFormsInput(AssetFormsInputT&& value) { m_assetFormsInputHasBeenSet = true; m_assetFormsInput.emplace_back(std::forward<AssetFormsInputT>(value)); return *this; }
56
58
62 inline const Aws::String& GetClientToken() const { return m_clientToken; }
63 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
64 template<typename ClientTokenT = Aws::String>
65 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
66 template<typename ClientTokenT = Aws::String>
67 CreateDataSourceRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
69
71
75 inline const DataSourceConfigurationInput& GetConfiguration() const { return m_configuration; }
76 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
77 template<typename ConfigurationT = DataSourceConfigurationInput>
78 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
79 template<typename ConfigurationT = DataSourceConfigurationInput>
80 CreateDataSourceRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
82
84
87 inline const Aws::String& GetConnectionIdentifier() const { return m_connectionIdentifier; }
88 inline bool ConnectionIdentifierHasBeenSet() const { return m_connectionIdentifierHasBeenSet; }
89 template<typename ConnectionIdentifierT = Aws::String>
90 void SetConnectionIdentifier(ConnectionIdentifierT&& value) { m_connectionIdentifierHasBeenSet = true; m_connectionIdentifier = std::forward<ConnectionIdentifierT>(value); }
91 template<typename ConnectionIdentifierT = Aws::String>
92 CreateDataSourceRequest& WithConnectionIdentifier(ConnectionIdentifierT&& value) { SetConnectionIdentifier(std::forward<ConnectionIdentifierT>(value)); return *this;}
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template<typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
103 template<typename DescriptionT = Aws::String>
104 CreateDataSourceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
106
108
111 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
112 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
113 template<typename DomainIdentifierT = Aws::String>
114 void SetDomainIdentifier(DomainIdentifierT&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::forward<DomainIdentifierT>(value); }
115 template<typename DomainIdentifierT = Aws::String>
116 CreateDataSourceRequest& WithDomainIdentifier(DomainIdentifierT&& value) { SetDomainIdentifier(std::forward<DomainIdentifierT>(value)); return *this;}
118
120
123 inline EnableSetting GetEnableSetting() const { return m_enableSetting; }
124 inline bool EnableSettingHasBeenSet() const { return m_enableSettingHasBeenSet; }
125 inline void SetEnableSetting(EnableSetting value) { m_enableSettingHasBeenSet = true; m_enableSetting = value; }
128
130
134 inline const Aws::String& GetEnvironmentIdentifier() const { return m_environmentIdentifier; }
135 inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; }
136 template<typename EnvironmentIdentifierT = Aws::String>
137 void SetEnvironmentIdentifier(EnvironmentIdentifierT&& value) { m_environmentIdentifierHasBeenSet = true; m_environmentIdentifier = std::forward<EnvironmentIdentifierT>(value); }
138 template<typename EnvironmentIdentifierT = Aws::String>
139 CreateDataSourceRequest& WithEnvironmentIdentifier(EnvironmentIdentifierT&& value) { SetEnvironmentIdentifier(std::forward<EnvironmentIdentifierT>(value)); return *this;}
141
143
146 inline const Aws::String& GetName() const { return m_name; }
147 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
148 template<typename NameT = Aws::String>
149 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
150 template<typename NameT = Aws::String>
151 CreateDataSourceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
153
155
159 inline const Aws::String& GetProjectIdentifier() const { return m_projectIdentifier; }
160 inline bool ProjectIdentifierHasBeenSet() const { return m_projectIdentifierHasBeenSet; }
161 template<typename ProjectIdentifierT = Aws::String>
162 void SetProjectIdentifier(ProjectIdentifierT&& value) { m_projectIdentifierHasBeenSet = true; m_projectIdentifier = std::forward<ProjectIdentifierT>(value); }
163 template<typename ProjectIdentifierT = Aws::String>
164 CreateDataSourceRequest& WithProjectIdentifier(ProjectIdentifierT&& value) { SetProjectIdentifier(std::forward<ProjectIdentifierT>(value)); return *this;}
166
168
172 inline bool GetPublishOnImport() const { return m_publishOnImport; }
173 inline bool PublishOnImportHasBeenSet() const { return m_publishOnImportHasBeenSet; }
174 inline void SetPublishOnImport(bool value) { m_publishOnImportHasBeenSet = true; m_publishOnImport = value; }
175 inline CreateDataSourceRequest& WithPublishOnImport(bool value) { SetPublishOnImport(value); return *this;}
177
179
183 inline const RecommendationConfiguration& GetRecommendation() const { return m_recommendation; }
184 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
185 template<typename RecommendationT = RecommendationConfiguration>
186 void SetRecommendation(RecommendationT&& value) { m_recommendationHasBeenSet = true; m_recommendation = std::forward<RecommendationT>(value); }
187 template<typename RecommendationT = RecommendationConfiguration>
188 CreateDataSourceRequest& WithRecommendation(RecommendationT&& value) { SetRecommendation(std::forward<RecommendationT>(value)); return *this;}
190
192
195 inline const ScheduleConfiguration& GetSchedule() const { return m_schedule; }
196 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
197 template<typename ScheduleT = ScheduleConfiguration>
198 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
199 template<typename ScheduleT = ScheduleConfiguration>
200 CreateDataSourceRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
202
204
211 inline const Aws::String& GetType() const { return m_type; }
212 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
213 template<typename TypeT = Aws::String>
214 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
215 template<typename TypeT = Aws::String>
216 CreateDataSourceRequest& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
218 private:
219
220 Aws::Vector<FormInput> m_assetFormsInput;
221 bool m_assetFormsInputHasBeenSet = false;
222
224 bool m_clientTokenHasBeenSet = true;
225
226 DataSourceConfigurationInput m_configuration;
227 bool m_configurationHasBeenSet = false;
228
229 Aws::String m_connectionIdentifier;
230 bool m_connectionIdentifierHasBeenSet = false;
231
232 Aws::String m_description;
233 bool m_descriptionHasBeenSet = false;
234
235 Aws::String m_domainIdentifier;
236 bool m_domainIdentifierHasBeenSet = false;
237
238 EnableSetting m_enableSetting{EnableSetting::NOT_SET};
239 bool m_enableSettingHasBeenSet = false;
240
241 Aws::String m_environmentIdentifier;
242 bool m_environmentIdentifierHasBeenSet = false;
243
244 Aws::String m_name;
245 bool m_nameHasBeenSet = false;
246
247 Aws::String m_projectIdentifier;
248 bool m_projectIdentifierHasBeenSet = false;
249
250 bool m_publishOnImport{false};
251 bool m_publishOnImportHasBeenSet = false;
252
253 RecommendationConfiguration m_recommendation;
254 bool m_recommendationHasBeenSet = false;
255
256 ScheduleConfiguration m_schedule;
257 bool m_scheduleHasBeenSet = false;
258
259 Aws::String m_type;
260 bool m_typeHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace DataZone
265} // 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