AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateCrawlerRequest.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glue/model/CrawlerTargets.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/glue/model/SchemaChangePolicy.h>
13#include <aws/glue/model/RecrawlPolicy.h>
14#include <aws/glue/model/LineageConfiguration.h>
15#include <aws/glue/model/LakeFormationConfiguration.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Glue
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_GLUE_API CreateCrawlerRequest() = 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 "CreateCrawler"; }
38
39 AWS_GLUE_API Aws::String SerializePayload() const override;
40
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 CreateCrawlerRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
61 inline const Aws::String& GetRole() const { return m_role; }
62 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
63 template<typename RoleT = Aws::String>
64 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
65 template<typename RoleT = Aws::String>
66 CreateCrawlerRequest& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
68
70
74 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
75 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
76 template<typename DatabaseNameT = Aws::String>
77 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
78 template<typename DatabaseNameT = Aws::String>
79 CreateCrawlerRequest& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(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 CreateCrawlerRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
93
95
98 inline const CrawlerTargets& GetTargets() const { return m_targets; }
99 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
100 template<typename TargetsT = CrawlerTargets>
101 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
102 template<typename TargetsT = CrawlerTargets>
103 CreateCrawlerRequest& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
105
107
113 inline const Aws::String& GetSchedule() const { return m_schedule; }
114 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
115 template<typename ScheduleT = Aws::String>
116 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
117 template<typename ScheduleT = Aws::String>
118 CreateCrawlerRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
120
122
127 inline const Aws::Vector<Aws::String>& GetClassifiers() const { return m_classifiers; }
128 inline bool ClassifiersHasBeenSet() const { return m_classifiersHasBeenSet; }
129 template<typename ClassifiersT = Aws::Vector<Aws::String>>
130 void SetClassifiers(ClassifiersT&& value) { m_classifiersHasBeenSet = true; m_classifiers = std::forward<ClassifiersT>(value); }
131 template<typename ClassifiersT = Aws::Vector<Aws::String>>
132 CreateCrawlerRequest& WithClassifiers(ClassifiersT&& value) { SetClassifiers(std::forward<ClassifiersT>(value)); return *this;}
133 template<typename ClassifiersT = Aws::String>
134 CreateCrawlerRequest& AddClassifiers(ClassifiersT&& value) { m_classifiersHasBeenSet = true; m_classifiers.emplace_back(std::forward<ClassifiersT>(value)); return *this; }
136
138
141 inline const Aws::String& GetTablePrefix() const { return m_tablePrefix; }
142 inline bool TablePrefixHasBeenSet() const { return m_tablePrefixHasBeenSet; }
143 template<typename TablePrefixT = Aws::String>
144 void SetTablePrefix(TablePrefixT&& value) { m_tablePrefixHasBeenSet = true; m_tablePrefix = std::forward<TablePrefixT>(value); }
145 template<typename TablePrefixT = Aws::String>
146 CreateCrawlerRequest& WithTablePrefix(TablePrefixT&& value) { SetTablePrefix(std::forward<TablePrefixT>(value)); return *this;}
148
150
153 inline const SchemaChangePolicy& GetSchemaChangePolicy() const { return m_schemaChangePolicy; }
154 inline bool SchemaChangePolicyHasBeenSet() const { return m_schemaChangePolicyHasBeenSet; }
155 template<typename SchemaChangePolicyT = SchemaChangePolicy>
156 void SetSchemaChangePolicy(SchemaChangePolicyT&& value) { m_schemaChangePolicyHasBeenSet = true; m_schemaChangePolicy = std::forward<SchemaChangePolicyT>(value); }
157 template<typename SchemaChangePolicyT = SchemaChangePolicy>
158 CreateCrawlerRequest& WithSchemaChangePolicy(SchemaChangePolicyT&& value) { SetSchemaChangePolicy(std::forward<SchemaChangePolicyT>(value)); return *this;}
160
162
166 inline const RecrawlPolicy& GetRecrawlPolicy() const { return m_recrawlPolicy; }
167 inline bool RecrawlPolicyHasBeenSet() const { return m_recrawlPolicyHasBeenSet; }
168 template<typename RecrawlPolicyT = RecrawlPolicy>
169 void SetRecrawlPolicy(RecrawlPolicyT&& value) { m_recrawlPolicyHasBeenSet = true; m_recrawlPolicy = std::forward<RecrawlPolicyT>(value); }
170 template<typename RecrawlPolicyT = RecrawlPolicy>
171 CreateCrawlerRequest& WithRecrawlPolicy(RecrawlPolicyT&& value) { SetRecrawlPolicy(std::forward<RecrawlPolicyT>(value)); return *this;}
173
175
178 inline const LineageConfiguration& GetLineageConfiguration() const { return m_lineageConfiguration; }
179 inline bool LineageConfigurationHasBeenSet() const { return m_lineageConfigurationHasBeenSet; }
180 template<typename LineageConfigurationT = LineageConfiguration>
181 void SetLineageConfiguration(LineageConfigurationT&& value) { m_lineageConfigurationHasBeenSet = true; m_lineageConfiguration = std::forward<LineageConfigurationT>(value); }
182 template<typename LineageConfigurationT = LineageConfiguration>
183 CreateCrawlerRequest& WithLineageConfiguration(LineageConfigurationT&& value) { SetLineageConfiguration(std::forward<LineageConfigurationT>(value)); return *this;}
185
187
190 inline const LakeFormationConfiguration& GetLakeFormationConfiguration() const { return m_lakeFormationConfiguration; }
191 inline bool LakeFormationConfigurationHasBeenSet() const { return m_lakeFormationConfigurationHasBeenSet; }
192 template<typename LakeFormationConfigurationT = LakeFormationConfiguration>
193 void SetLakeFormationConfiguration(LakeFormationConfigurationT&& value) { m_lakeFormationConfigurationHasBeenSet = true; m_lakeFormationConfiguration = std::forward<LakeFormationConfigurationT>(value); }
194 template<typename LakeFormationConfigurationT = LakeFormationConfiguration>
195 CreateCrawlerRequest& WithLakeFormationConfiguration(LakeFormationConfigurationT&& value) { SetLakeFormationConfiguration(std::forward<LakeFormationConfigurationT>(value)); return *this;}
197
199
205 inline const Aws::String& GetConfiguration() const { return m_configuration; }
206 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
207 template<typename ConfigurationT = Aws::String>
208 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
209 template<typename ConfigurationT = Aws::String>
210 CreateCrawlerRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
212
214
218 inline const Aws::String& GetCrawlerSecurityConfiguration() const { return m_crawlerSecurityConfiguration; }
219 inline bool CrawlerSecurityConfigurationHasBeenSet() const { return m_crawlerSecurityConfigurationHasBeenSet; }
220 template<typename CrawlerSecurityConfigurationT = Aws::String>
221 void SetCrawlerSecurityConfiguration(CrawlerSecurityConfigurationT&& value) { m_crawlerSecurityConfigurationHasBeenSet = true; m_crawlerSecurityConfiguration = std::forward<CrawlerSecurityConfigurationT>(value); }
222 template<typename CrawlerSecurityConfigurationT = Aws::String>
223 CreateCrawlerRequest& WithCrawlerSecurityConfiguration(CrawlerSecurityConfigurationT&& value) { SetCrawlerSecurityConfiguration(std::forward<CrawlerSecurityConfigurationT>(value)); return *this;}
225
227
233 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
234 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
235 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
236 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
237 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
238 CreateCrawlerRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
239 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
240 CreateCrawlerRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
241 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
242 }
244 private:
245
246 Aws::String m_name;
247 bool m_nameHasBeenSet = false;
248
249 Aws::String m_role;
250 bool m_roleHasBeenSet = false;
251
252 Aws::String m_databaseName;
253 bool m_databaseNameHasBeenSet = false;
254
255 Aws::String m_description;
256 bool m_descriptionHasBeenSet = false;
257
258 CrawlerTargets m_targets;
259 bool m_targetsHasBeenSet = false;
260
261 Aws::String m_schedule;
262 bool m_scheduleHasBeenSet = false;
263
264 Aws::Vector<Aws::String> m_classifiers;
265 bool m_classifiersHasBeenSet = false;
266
267 Aws::String m_tablePrefix;
268 bool m_tablePrefixHasBeenSet = false;
269
270 SchemaChangePolicy m_schemaChangePolicy;
271 bool m_schemaChangePolicyHasBeenSet = false;
272
273 RecrawlPolicy m_recrawlPolicy;
274 bool m_recrawlPolicyHasBeenSet = false;
275
276 LineageConfiguration m_lineageConfiguration;
277 bool m_lineageConfigurationHasBeenSet = false;
278
279 LakeFormationConfiguration m_lakeFormationConfiguration;
280 bool m_lakeFormationConfigurationHasBeenSet = false;
281
282 Aws::String m_configuration;
283 bool m_configurationHasBeenSet = false;
284
285 Aws::String m_crawlerSecurityConfiguration;
286 bool m_crawlerSecurityConfigurationHasBeenSet = false;
287
289 bool m_tagsHasBeenSet = false;
290 };
291
292} // namespace Model
293} // namespace Glue
294} // namespace Aws
void SetConfiguration(ConfigurationT &&value)
CreateCrawlerRequest & WithDatabaseName(DatabaseNameT &&value)
CreateCrawlerRequest & WithCrawlerSecurityConfiguration(CrawlerSecurityConfigurationT &&value)
CreateCrawlerRequest & WithTargets(TargetsT &&value)
const SchemaChangePolicy & GetSchemaChangePolicy() const
AWS_GLUE_API CreateCrawlerRequest()=default
const Aws::String & GetConfiguration() const
const CrawlerTargets & GetTargets() const
void SetLakeFormationConfiguration(LakeFormationConfigurationT &&value)
const Aws::String & GetDescription() const
CreateCrawlerRequest & AddClassifiers(ClassifiersT &&value)
CreateCrawlerRequest & WithSchedule(ScheduleT &&value)
void SetRecrawlPolicy(RecrawlPolicyT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const LakeFormationConfiguration & GetLakeFormationConfiguration() const
const Aws::String & GetDatabaseName() const
CreateCrawlerRequest & WithName(NameT &&value)
const Aws::Vector< Aws::String > & GetClassifiers() const
CreateCrawlerRequest & WithTags(TagsT &&value)
const LineageConfiguration & GetLineageConfiguration() const
CreateCrawlerRequest & WithLakeFormationConfiguration(LakeFormationConfigurationT &&value)
const RecrawlPolicy & GetRecrawlPolicy() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateCrawlerRequest & WithTablePrefix(TablePrefixT &&value)
void SetCrawlerSecurityConfiguration(CrawlerSecurityConfigurationT &&value)
CreateCrawlerRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateCrawlerRequest & WithConfiguration(ConfigurationT &&value)
CreateCrawlerRequest & WithLineageConfiguration(LineageConfigurationT &&value)
void SetDatabaseName(DatabaseNameT &&value)
virtual const char * GetServiceRequestName() const override
void SetLineageConfiguration(LineageConfigurationT &&value)
CreateCrawlerRequest & WithClassifiers(ClassifiersT &&value)
CreateCrawlerRequest & WithRecrawlPolicy(RecrawlPolicyT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
CreateCrawlerRequest & WithDescription(DescriptionT &&value)
const Aws::String & GetCrawlerSecurityConfiguration() const
void SetSchemaChangePolicy(SchemaChangePolicyT &&value)
CreateCrawlerRequest & WithRole(RoleT &&value)
CreateCrawlerRequest & WithSchemaChangePolicy(SchemaChangePolicyT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector