AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline CreateCrawlerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline CreateCrawlerRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline CreateCrawlerRequest& WithName(const char* value) { SetName(value); return *this;}
57
59
63 inline const Aws::String& GetRole() const{ return m_role; }
64 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
65 inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
66 inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
67 inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
68 inline CreateCrawlerRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;}
69 inline CreateCrawlerRequest& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
70 inline CreateCrawlerRequest& WithRole(const char* value) { SetRole(value); return *this;}
72
74
78 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
79 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
80 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
81 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
82 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
83 inline CreateCrawlerRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
84 inline CreateCrawlerRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
85 inline CreateCrawlerRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
87
89
92 inline const Aws::String& GetDescription() const{ return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
95 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
96 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
97 inline CreateCrawlerRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
98 inline CreateCrawlerRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
99 inline CreateCrawlerRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
101
103
106 inline const CrawlerTargets& GetTargets() const{ return m_targets; }
107 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
108 inline void SetTargets(const CrawlerTargets& value) { m_targetsHasBeenSet = true; m_targets = value; }
109 inline void SetTargets(CrawlerTargets&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
110 inline CreateCrawlerRequest& WithTargets(const CrawlerTargets& value) { SetTargets(value); return *this;}
111 inline CreateCrawlerRequest& WithTargets(CrawlerTargets&& value) { SetTargets(std::move(value)); return *this;}
113
115
121 inline const Aws::String& GetSchedule() const{ return m_schedule; }
122 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
123 inline void SetSchedule(const Aws::String& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
124 inline void SetSchedule(Aws::String&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
125 inline void SetSchedule(const char* value) { m_scheduleHasBeenSet = true; m_schedule.assign(value); }
126 inline CreateCrawlerRequest& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
127 inline CreateCrawlerRequest& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
128 inline CreateCrawlerRequest& WithSchedule(const char* value) { SetSchedule(value); return *this;}
130
132
137 inline const Aws::Vector<Aws::String>& GetClassifiers() const{ return m_classifiers; }
138 inline bool ClassifiersHasBeenSet() const { return m_classifiersHasBeenSet; }
139 inline void SetClassifiers(const Aws::Vector<Aws::String>& value) { m_classifiersHasBeenSet = true; m_classifiers = value; }
140 inline void SetClassifiers(Aws::Vector<Aws::String>&& value) { m_classifiersHasBeenSet = true; m_classifiers = std::move(value); }
142 inline CreateCrawlerRequest& WithClassifiers(Aws::Vector<Aws::String>&& value) { SetClassifiers(std::move(value)); return *this;}
143 inline CreateCrawlerRequest& AddClassifiers(const Aws::String& value) { m_classifiersHasBeenSet = true; m_classifiers.push_back(value); return *this; }
144 inline CreateCrawlerRequest& AddClassifiers(Aws::String&& value) { m_classifiersHasBeenSet = true; m_classifiers.push_back(std::move(value)); return *this; }
145 inline CreateCrawlerRequest& AddClassifiers(const char* value) { m_classifiersHasBeenSet = true; m_classifiers.push_back(value); return *this; }
147
149
152 inline const Aws::String& GetTablePrefix() const{ return m_tablePrefix; }
153 inline bool TablePrefixHasBeenSet() const { return m_tablePrefixHasBeenSet; }
154 inline void SetTablePrefix(const Aws::String& value) { m_tablePrefixHasBeenSet = true; m_tablePrefix = value; }
155 inline void SetTablePrefix(Aws::String&& value) { m_tablePrefixHasBeenSet = true; m_tablePrefix = std::move(value); }
156 inline void SetTablePrefix(const char* value) { m_tablePrefixHasBeenSet = true; m_tablePrefix.assign(value); }
157 inline CreateCrawlerRequest& WithTablePrefix(const Aws::String& value) { SetTablePrefix(value); return *this;}
158 inline CreateCrawlerRequest& WithTablePrefix(Aws::String&& value) { SetTablePrefix(std::move(value)); return *this;}
159 inline CreateCrawlerRequest& WithTablePrefix(const char* value) { SetTablePrefix(value); return *this;}
161
163
166 inline const SchemaChangePolicy& GetSchemaChangePolicy() const{ return m_schemaChangePolicy; }
167 inline bool SchemaChangePolicyHasBeenSet() const { return m_schemaChangePolicyHasBeenSet; }
168 inline void SetSchemaChangePolicy(const SchemaChangePolicy& value) { m_schemaChangePolicyHasBeenSet = true; m_schemaChangePolicy = value; }
169 inline void SetSchemaChangePolicy(SchemaChangePolicy&& value) { m_schemaChangePolicyHasBeenSet = true; m_schemaChangePolicy = std::move(value); }
171 inline CreateCrawlerRequest& WithSchemaChangePolicy(SchemaChangePolicy&& value) { SetSchemaChangePolicy(std::move(value)); return *this;}
173
175
179 inline const RecrawlPolicy& GetRecrawlPolicy() const{ return m_recrawlPolicy; }
180 inline bool RecrawlPolicyHasBeenSet() const { return m_recrawlPolicyHasBeenSet; }
181 inline void SetRecrawlPolicy(const RecrawlPolicy& value) { m_recrawlPolicyHasBeenSet = true; m_recrawlPolicy = value; }
182 inline void SetRecrawlPolicy(RecrawlPolicy&& value) { m_recrawlPolicyHasBeenSet = true; m_recrawlPolicy = std::move(value); }
183 inline CreateCrawlerRequest& WithRecrawlPolicy(const RecrawlPolicy& value) { SetRecrawlPolicy(value); return *this;}
184 inline CreateCrawlerRequest& WithRecrawlPolicy(RecrawlPolicy&& value) { SetRecrawlPolicy(std::move(value)); return *this;}
186
188
191 inline const LineageConfiguration& GetLineageConfiguration() const{ return m_lineageConfiguration; }
192 inline bool LineageConfigurationHasBeenSet() const { return m_lineageConfigurationHasBeenSet; }
193 inline void SetLineageConfiguration(const LineageConfiguration& value) { m_lineageConfigurationHasBeenSet = true; m_lineageConfiguration = value; }
194 inline void SetLineageConfiguration(LineageConfiguration&& value) { m_lineageConfigurationHasBeenSet = true; m_lineageConfiguration = std::move(value); }
198
200
203 inline const LakeFormationConfiguration& GetLakeFormationConfiguration() const{ return m_lakeFormationConfiguration; }
204 inline bool LakeFormationConfigurationHasBeenSet() const { return m_lakeFormationConfigurationHasBeenSet; }
205 inline void SetLakeFormationConfiguration(const LakeFormationConfiguration& value) { m_lakeFormationConfigurationHasBeenSet = true; m_lakeFormationConfiguration = value; }
206 inline void SetLakeFormationConfiguration(LakeFormationConfiguration&& value) { m_lakeFormationConfigurationHasBeenSet = true; m_lakeFormationConfiguration = std::move(value); }
210
212
218 inline const Aws::String& GetConfiguration() const{ return m_configuration; }
219 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
220 inline void SetConfiguration(const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration = value; }
221 inline void SetConfiguration(Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
222 inline void SetConfiguration(const char* value) { m_configurationHasBeenSet = true; m_configuration.assign(value); }
223 inline CreateCrawlerRequest& WithConfiguration(const Aws::String& value) { SetConfiguration(value); return *this;}
224 inline CreateCrawlerRequest& WithConfiguration(Aws::String&& value) { SetConfiguration(std::move(value)); return *this;}
225 inline CreateCrawlerRequest& WithConfiguration(const char* value) { SetConfiguration(value); return *this;}
227
229
233 inline const Aws::String& GetCrawlerSecurityConfiguration() const{ return m_crawlerSecurityConfiguration; }
234 inline bool CrawlerSecurityConfigurationHasBeenSet() const { return m_crawlerSecurityConfigurationHasBeenSet; }
235 inline void SetCrawlerSecurityConfiguration(const Aws::String& value) { m_crawlerSecurityConfigurationHasBeenSet = true; m_crawlerSecurityConfiguration = value; }
236 inline void SetCrawlerSecurityConfiguration(Aws::String&& value) { m_crawlerSecurityConfigurationHasBeenSet = true; m_crawlerSecurityConfiguration = std::move(value); }
237 inline void SetCrawlerSecurityConfiguration(const char* value) { m_crawlerSecurityConfigurationHasBeenSet = true; m_crawlerSecurityConfiguration.assign(value); }
242
244
250 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
251 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
252 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
253 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
254 inline CreateCrawlerRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
255 inline CreateCrawlerRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
256 inline CreateCrawlerRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
257 inline CreateCrawlerRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
258 inline CreateCrawlerRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
259 inline CreateCrawlerRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
260 inline CreateCrawlerRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
261 inline CreateCrawlerRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
262 inline CreateCrawlerRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
264 private:
265
266 Aws::String m_name;
267 bool m_nameHasBeenSet = false;
268
269 Aws::String m_role;
270 bool m_roleHasBeenSet = false;
271
272 Aws::String m_databaseName;
273 bool m_databaseNameHasBeenSet = false;
274
275 Aws::String m_description;
276 bool m_descriptionHasBeenSet = false;
277
278 CrawlerTargets m_targets;
279 bool m_targetsHasBeenSet = false;
280
281 Aws::String m_schedule;
282 bool m_scheduleHasBeenSet = false;
283
284 Aws::Vector<Aws::String> m_classifiers;
285 bool m_classifiersHasBeenSet = false;
286
287 Aws::String m_tablePrefix;
288 bool m_tablePrefixHasBeenSet = false;
289
290 SchemaChangePolicy m_schemaChangePolicy;
291 bool m_schemaChangePolicyHasBeenSet = false;
292
293 RecrawlPolicy m_recrawlPolicy;
294 bool m_recrawlPolicyHasBeenSet = false;
295
296 LineageConfiguration m_lineageConfiguration;
297 bool m_lineageConfigurationHasBeenSet = false;
298
299 LakeFormationConfiguration m_lakeFormationConfiguration;
300 bool m_lakeFormationConfigurationHasBeenSet = false;
301
302 Aws::String m_configuration;
303 bool m_configurationHasBeenSet = false;
304
305 Aws::String m_crawlerSecurityConfiguration;
306 bool m_crawlerSecurityConfigurationHasBeenSet = false;
307
309 bool m_tagsHasBeenSet = false;
310 };
311
312} // namespace Model
313} // namespace Glue
314} // namespace Aws
void SetLineageConfiguration(const LineageConfiguration &value)
CreateCrawlerRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetLineageConfiguration(LineageConfiguration &&value)
CreateCrawlerRequest & WithSchedule(const char *value)
CreateCrawlerRequest & WithClassifiers(Aws::Vector< Aws::String > &&value)
CreateCrawlerRequest & AddClassifiers(const Aws::String &value)
CreateCrawlerRequest & WithLakeFormationConfiguration(const LakeFormationConfiguration &value)
CreateCrawlerRequest & WithDatabaseName(const char *value)
CreateCrawlerRequest & WithName(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetCrawlerSecurityConfiguration(const char *value)
CreateCrawlerRequest & WithSchemaChangePolicy(SchemaChangePolicy &&value)
CreateCrawlerRequest & WithTablePrefix(const char *value)
void SetCrawlerSecurityConfiguration(Aws::String &&value)
CreateCrawlerRequest & WithSchedule(Aws::String &&value)
void SetTablePrefix(const Aws::String &value)
void SetSchedule(const Aws::String &value)
CreateCrawlerRequest & AddTags(const char *key, const char *value)
CreateCrawlerRequest & WithLakeFormationConfiguration(LakeFormationConfiguration &&value)
const SchemaChangePolicy & GetSchemaChangePolicy() const
CreateCrawlerRequest & WithDescription(const char *value)
CreateCrawlerRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetSchemaChangePolicy(const SchemaChangePolicy &value)
CreateCrawlerRequest & WithRole(const char *value)
CreateCrawlerRequest & WithDescription(const Aws::String &value)
CreateCrawlerRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateCrawlerRequest & WithConfiguration(Aws::String &&value)
const Aws::String & GetConfiguration() const
CreateCrawlerRequest & WithDatabaseName(Aws::String &&value)
void SetLakeFormationConfiguration(LakeFormationConfiguration &&value)
void SetCrawlerSecurityConfiguration(const Aws::String &value)
CreateCrawlerRequest & WithName(Aws::String &&value)
void SetClassifiers(const Aws::Vector< Aws::String > &value)
void SetConfiguration(const Aws::String &value)
void SetLakeFormationConfiguration(const LakeFormationConfiguration &value)
void SetDescription(const Aws::String &value)
void SetDatabaseName(const Aws::String &value)
const CrawlerTargets & GetTargets() const
CreateCrawlerRequest & WithRole(Aws::String &&value)
CreateCrawlerRequest & WithSchemaChangePolicy(const SchemaChangePolicy &value)
void SetRecrawlPolicy(const RecrawlPolicy &value)
CreateCrawlerRequest & WithLineageConfiguration(const LineageConfiguration &value)
const Aws::String & GetDescription() const
CreateCrawlerRequest & WithCrawlerSecurityConfiguration(const char *value)
CreateCrawlerRequest & WithTablePrefix(Aws::String &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCrawlerRequest & WithCrawlerSecurityConfiguration(Aws::String &&value)
const LakeFormationConfiguration & GetLakeFormationConfiguration() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateCrawlerRequest & WithRole(const Aws::String &value)
void SetSchemaChangePolicy(SchemaChangePolicy &&value)
const Aws::String & GetDatabaseName() const
CreateCrawlerRequest & AddClassifiers(const char *value)
CreateCrawlerRequest & AddClassifiers(Aws::String &&value)
CreateCrawlerRequest & WithRecrawlPolicy(const RecrawlPolicy &value)
CreateCrawlerRequest & WithDatabaseName(const Aws::String &value)
CreateCrawlerRequest & WithTablePrefix(const Aws::String &value)
const Aws::Vector< Aws::String > & GetClassifiers() const
CreateCrawlerRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const LineageConfiguration & GetLineageConfiguration() const
CreateCrawlerRequest & WithSchedule(const Aws::String &value)
void SetClassifiers(Aws::Vector< Aws::String > &&value)
CreateCrawlerRequest & WithTargets(CrawlerTargets &&value)
const RecrawlPolicy & GetRecrawlPolicy() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateCrawlerRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetName(const Aws::String &value)
CreateCrawlerRequest & WithLineageConfiguration(LineageConfiguration &&value)
void SetRecrawlPolicy(RecrawlPolicy &&value)
CreateCrawlerRequest & AddTags(const char *key, Aws::String &&value)
CreateCrawlerRequest & WithName(const char *value)
virtual const char * GetServiceRequestName() const override
CreateCrawlerRequest & WithConfiguration(const char *value)
void SetRole(const Aws::String &value)
CreateCrawlerRequest & WithCrawlerSecurityConfiguration(const Aws::String &value)
CreateCrawlerRequest & WithConfiguration(const Aws::String &value)
void SetTargets(const CrawlerTargets &value)
AWS_GLUE_API Aws::String SerializePayload() const override
CreateCrawlerRequest & WithRecrawlPolicy(RecrawlPolicy &&value)
CreateCrawlerRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateCrawlerRequest & WithDescription(Aws::String &&value)
const Aws::String & GetCrawlerSecurityConfiguration() const
CreateCrawlerRequest & AddTags(Aws::String &&key, const char *value)
CreateCrawlerRequest & WithTargets(const CrawlerTargets &value)
CreateCrawlerRequest & WithClassifiers(const Aws::Vector< Aws::String > &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