AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAssetFormsInput(const Aws::Vector<FormInput>& value) { m_assetFormsInputHasBeenSet = true; m_assetFormsInput = value; }
50 inline void SetAssetFormsInput(Aws::Vector<FormInput>&& value) { m_assetFormsInputHasBeenSet = true; m_assetFormsInput = std::move(value); }
52 inline CreateDataSourceRequest& WithAssetFormsInput(Aws::Vector<FormInput>&& value) { SetAssetFormsInput(std::move(value)); return *this;}
53 inline CreateDataSourceRequest& AddAssetFormsInput(const FormInput& value) { m_assetFormsInputHasBeenSet = true; m_assetFormsInput.push_back(value); return *this; }
54 inline CreateDataSourceRequest& AddAssetFormsInput(FormInput&& value) { m_assetFormsInputHasBeenSet = true; m_assetFormsInput.push_back(std::move(value)); return *this; }
56
58
62 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
63 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
64 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
65 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
66 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
67 inline CreateDataSourceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
68 inline CreateDataSourceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
69 inline CreateDataSourceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
71
73
77 inline const DataSourceConfigurationInput& GetConfiguration() const{ return m_configuration; }
78 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
79 inline void SetConfiguration(const DataSourceConfigurationInput& value) { m_configurationHasBeenSet = true; m_configuration = value; }
80 inline void SetConfiguration(DataSourceConfigurationInput&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
84
86
89 inline const Aws::String& GetDescription() const{ return m_description; }
90 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
92 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
93 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
94 inline CreateDataSourceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
95 inline CreateDataSourceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
96 inline CreateDataSourceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
98
100
103 inline const Aws::String& GetDomainIdentifier() const{ return m_domainIdentifier; }
104 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
105 inline void SetDomainIdentifier(const Aws::String& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = value; }
106 inline void SetDomainIdentifier(Aws::String&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::move(value); }
107 inline void SetDomainIdentifier(const char* value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier.assign(value); }
109 inline CreateDataSourceRequest& WithDomainIdentifier(Aws::String&& value) { SetDomainIdentifier(std::move(value)); return *this;}
110 inline CreateDataSourceRequest& WithDomainIdentifier(const char* value) { SetDomainIdentifier(value); return *this;}
112
114
117 inline const EnableSetting& GetEnableSetting() const{ return m_enableSetting; }
118 inline bool EnableSettingHasBeenSet() const { return m_enableSettingHasBeenSet; }
119 inline void SetEnableSetting(const EnableSetting& value) { m_enableSettingHasBeenSet = true; m_enableSetting = value; }
120 inline void SetEnableSetting(EnableSetting&& value) { m_enableSettingHasBeenSet = true; m_enableSetting = std::move(value); }
121 inline CreateDataSourceRequest& WithEnableSetting(const EnableSetting& value) { SetEnableSetting(value); return *this;}
122 inline CreateDataSourceRequest& WithEnableSetting(EnableSetting&& value) { SetEnableSetting(std::move(value)); return *this;}
124
126
130 inline const Aws::String& GetEnvironmentIdentifier() const{ return m_environmentIdentifier; }
131 inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; }
132 inline void SetEnvironmentIdentifier(const Aws::String& value) { m_environmentIdentifierHasBeenSet = true; m_environmentIdentifier = value; }
133 inline void SetEnvironmentIdentifier(Aws::String&& value) { m_environmentIdentifierHasBeenSet = true; m_environmentIdentifier = std::move(value); }
134 inline void SetEnvironmentIdentifier(const char* value) { m_environmentIdentifierHasBeenSet = true; m_environmentIdentifier.assign(value); }
137 inline CreateDataSourceRequest& WithEnvironmentIdentifier(const char* value) { SetEnvironmentIdentifier(value); return *this;}
139
141
144 inline const Aws::String& GetName() const{ return m_name; }
145 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
146 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
147 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
148 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
149 inline CreateDataSourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
150 inline CreateDataSourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
151 inline CreateDataSourceRequest& WithName(const char* value) { SetName(value); return *this;}
153
155
159 inline const Aws::String& GetProjectIdentifier() const{ return m_projectIdentifier; }
160 inline bool ProjectIdentifierHasBeenSet() const { return m_projectIdentifierHasBeenSet; }
161 inline void SetProjectIdentifier(const Aws::String& value) { m_projectIdentifierHasBeenSet = true; m_projectIdentifier = value; }
162 inline void SetProjectIdentifier(Aws::String&& value) { m_projectIdentifierHasBeenSet = true; m_projectIdentifier = std::move(value); }
163 inline void SetProjectIdentifier(const char* value) { m_projectIdentifierHasBeenSet = true; m_projectIdentifier.assign(value); }
165 inline CreateDataSourceRequest& WithProjectIdentifier(Aws::String&& value) { SetProjectIdentifier(std::move(value)); return *this;}
166 inline CreateDataSourceRequest& WithProjectIdentifier(const char* value) { SetProjectIdentifier(value); return *this;}
168
170
174 inline bool GetPublishOnImport() const{ return m_publishOnImport; }
175 inline bool PublishOnImportHasBeenSet() const { return m_publishOnImportHasBeenSet; }
176 inline void SetPublishOnImport(bool value) { m_publishOnImportHasBeenSet = true; m_publishOnImport = value; }
177 inline CreateDataSourceRequest& WithPublishOnImport(bool value) { SetPublishOnImport(value); return *this;}
179
181
185 inline const RecommendationConfiguration& GetRecommendation() const{ return m_recommendation; }
186 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
187 inline void SetRecommendation(const RecommendationConfiguration& value) { m_recommendationHasBeenSet = true; m_recommendation = value; }
188 inline void SetRecommendation(RecommendationConfiguration&& value) { m_recommendationHasBeenSet = true; m_recommendation = std::move(value); }
192
194
197 inline const ScheduleConfiguration& GetSchedule() const{ return m_schedule; }
198 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
199 inline void SetSchedule(const ScheduleConfiguration& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
200 inline void SetSchedule(ScheduleConfiguration&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
201 inline CreateDataSourceRequest& WithSchedule(const ScheduleConfiguration& value) { SetSchedule(value); return *this;}
202 inline CreateDataSourceRequest& WithSchedule(ScheduleConfiguration&& value) { SetSchedule(std::move(value)); return *this;}
204
206
209 inline const Aws::String& GetType() const{ return m_type; }
210 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
211 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
212 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
213 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
214 inline CreateDataSourceRequest& WithType(const Aws::String& value) { SetType(value); return *this;}
215 inline CreateDataSourceRequest& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
216 inline CreateDataSourceRequest& WithType(const char* value) { SetType(value); return *this;}
218 private:
219
220 Aws::Vector<FormInput> m_assetFormsInput;
221 bool m_assetFormsInputHasBeenSet = false;
222
223 Aws::String m_clientToken;
224 bool m_clientTokenHasBeenSet = false;
225
226 DataSourceConfigurationInput m_configuration;
227 bool m_configurationHasBeenSet = false;
228
229 Aws::String m_description;
230 bool m_descriptionHasBeenSet = false;
231
232 Aws::String m_domainIdentifier;
233 bool m_domainIdentifierHasBeenSet = false;
234
235 EnableSetting m_enableSetting;
236 bool m_enableSettingHasBeenSet = false;
237
238 Aws::String m_environmentIdentifier;
239 bool m_environmentIdentifierHasBeenSet = false;
240
241 Aws::String m_name;
242 bool m_nameHasBeenSet = false;
243
244 Aws::String m_projectIdentifier;
245 bool m_projectIdentifierHasBeenSet = false;
246
247 bool m_publishOnImport;
248 bool m_publishOnImportHasBeenSet = false;
249
250 RecommendationConfiguration m_recommendation;
251 bool m_recommendationHasBeenSet = false;
252
253 ScheduleConfiguration m_schedule;
254 bool m_scheduleHasBeenSet = false;
255
256 Aws::String m_type;
257 bool m_typeHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace DataZone
262} // namespace Aws
const DataSourceConfigurationInput & GetConfiguration() const
CreateDataSourceRequest & WithEnvironmentIdentifier(const Aws::String &value)
CreateDataSourceRequest & WithDomainIdentifier(Aws::String &&value)
CreateDataSourceRequest & WithAssetFormsInput(Aws::Vector< FormInput > &&value)
void SetSchedule(ScheduleConfiguration &&value)
CreateDataSourceRequest & WithRecommendation(const RecommendationConfiguration &value)
void SetAssetFormsInput(Aws::Vector< FormInput > &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateDataSourceRequest & WithClientToken(const char *value)
const Aws::Vector< FormInput > & GetAssetFormsInput() const
CreateDataSourceRequest & WithProjectIdentifier(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateDataSourceRequest & AddAssetFormsInput(FormInput &&value)
CreateDataSourceRequest & WithConfiguration(const DataSourceConfigurationInput &value)
CreateDataSourceRequest & WithEnvironmentIdentifier(Aws::String &&value)
CreateDataSourceRequest & WithSchedule(const ScheduleConfiguration &value)
CreateDataSourceRequest & WithName(const Aws::String &value)
CreateDataSourceRequest & WithType(const char *value)
void SetAssetFormsInput(const Aws::Vector< FormInput > &value)
CreateDataSourceRequest & WithName(Aws::String &&value)
CreateDataSourceRequest & WithClientToken(Aws::String &&value)
void SetSchedule(const ScheduleConfiguration &value)
CreateDataSourceRequest & WithProjectIdentifier(const char *value)
CreateDataSourceRequest & WithPublishOnImport(bool value)
CreateDataSourceRequest & WithDomainIdentifier(const Aws::String &value)
const ScheduleConfiguration & GetSchedule() const
CreateDataSourceRequest & WithDescription(Aws::String &&value)
CreateDataSourceRequest & WithDescription(const Aws::String &value)
void SetRecommendation(RecommendationConfiguration &&value)
CreateDataSourceRequest & WithName(const char *value)
CreateDataSourceRequest & WithAssetFormsInput(const Aws::Vector< FormInput > &value)
void SetConfiguration(DataSourceConfigurationInput &&value)
void SetRecommendation(const RecommendationConfiguration &value)
CreateDataSourceRequest & WithConfiguration(DataSourceConfigurationInput &&value)
CreateDataSourceRequest & AddAssetFormsInput(const FormInput &value)
CreateDataSourceRequest & WithProjectIdentifier(const Aws::String &value)
CreateDataSourceRequest & WithType(const Aws::String &value)
CreateDataSourceRequest & WithEnvironmentIdentifier(const char *value)
CreateDataSourceRequest & WithType(Aws::String &&value)
CreateDataSourceRequest & WithDomainIdentifier(const char *value)
CreateDataSourceRequest & WithClientToken(const Aws::String &value)
CreateDataSourceRequest & WithSchedule(ScheduleConfiguration &&value)
const RecommendationConfiguration & GetRecommendation() const
CreateDataSourceRequest & WithRecommendation(RecommendationConfiguration &&value)
CreateDataSourceRequest & WithEnableSetting(EnableSetting &&value)
CreateDataSourceRequest & WithEnableSetting(const EnableSetting &value)
void SetConfiguration(const DataSourceConfigurationInput &value)
CreateDataSourceRequest & WithDescription(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector