AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateJobRequest.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/JobMode.h>
11#include <aws/glue/model/ExecutionProperty.h>
12#include <aws/glue/model/JobCommand.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/glue/model/ConnectionsList.h>
15#include <aws/glue/model/NotificationProperty.h>
16#include <aws/glue/model/WorkerType.h>
17#include <aws/glue/model/ExecutionClass.h>
18#include <aws/glue/model/SourceControlDetails.h>
19#include <aws/glue/model/CodeGenConfigurationNode.h>
20#include <utility>
21
22namespace Aws
23{
24namespace Glue
25{
26namespace Model
27{
28
32 {
33 public:
34 AWS_GLUE_API CreateJobRequest() = default;
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "CreateJob"; }
41
42 AWS_GLUE_API Aws::String SerializePayload() const override;
43
45
46
48
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 CreateJobRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
59
61
70 inline JobMode GetJobMode() const { return m_jobMode; }
71 inline bool JobModeHasBeenSet() const { return m_jobModeHasBeenSet; }
72 inline void SetJobMode(JobMode value) { m_jobModeHasBeenSet = true; m_jobMode = value; }
73 inline CreateJobRequest& WithJobMode(JobMode value) { SetJobMode(value); return *this;}
75
77
84 inline bool GetJobRunQueuingEnabled() const { return m_jobRunQueuingEnabled; }
85 inline bool JobRunQueuingEnabledHasBeenSet() const { return m_jobRunQueuingEnabledHasBeenSet; }
86 inline void SetJobRunQueuingEnabled(bool value) { m_jobRunQueuingEnabledHasBeenSet = true; m_jobRunQueuingEnabled = value; }
87 inline CreateJobRequest& WithJobRunQueuingEnabled(bool value) { SetJobRunQueuingEnabled(value); return *this;}
89
91
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template<typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
98 template<typename DescriptionT = Aws::String>
99 CreateJobRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
101
103
106 inline const Aws::String& GetLogUri() const { return m_logUri; }
107 inline bool LogUriHasBeenSet() const { return m_logUriHasBeenSet; }
108 template<typename LogUriT = Aws::String>
109 void SetLogUri(LogUriT&& value) { m_logUriHasBeenSet = true; m_logUri = std::forward<LogUriT>(value); }
110 template<typename LogUriT = Aws::String>
111 CreateJobRequest& WithLogUri(LogUriT&& value) { SetLogUri(std::forward<LogUriT>(value)); return *this;}
113
115
119 inline const Aws::String& GetRole() const { return m_role; }
120 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
121 template<typename RoleT = Aws::String>
122 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
123 template<typename RoleT = Aws::String>
124 CreateJobRequest& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
126
128
132 inline const ExecutionProperty& GetExecutionProperty() const { return m_executionProperty; }
133 inline bool ExecutionPropertyHasBeenSet() const { return m_executionPropertyHasBeenSet; }
134 template<typename ExecutionPropertyT = ExecutionProperty>
135 void SetExecutionProperty(ExecutionPropertyT&& value) { m_executionPropertyHasBeenSet = true; m_executionProperty = std::forward<ExecutionPropertyT>(value); }
136 template<typename ExecutionPropertyT = ExecutionProperty>
137 CreateJobRequest& WithExecutionProperty(ExecutionPropertyT&& value) { SetExecutionProperty(std::forward<ExecutionPropertyT>(value)); return *this;}
139
141
144 inline const JobCommand& GetCommand() const { return m_command; }
145 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
146 template<typename CommandT = JobCommand>
147 void SetCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command = std::forward<CommandT>(value); }
148 template<typename CommandT = JobCommand>
149 CreateJobRequest& WithCommand(CommandT&& value) { SetCommand(std::forward<CommandT>(value)); return *this;}
151
153
172 inline const Aws::Map<Aws::String, Aws::String>& GetDefaultArguments() const { return m_defaultArguments; }
173 inline bool DefaultArgumentsHasBeenSet() const { return m_defaultArgumentsHasBeenSet; }
174 template<typename DefaultArgumentsT = Aws::Map<Aws::String, Aws::String>>
175 void SetDefaultArguments(DefaultArgumentsT&& value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments = std::forward<DefaultArgumentsT>(value); }
176 template<typename DefaultArgumentsT = Aws::Map<Aws::String, Aws::String>>
177 CreateJobRequest& WithDefaultArguments(DefaultArgumentsT&& value) { SetDefaultArguments(std::forward<DefaultArgumentsT>(value)); return *this;}
178 template<typename DefaultArgumentsKeyT = Aws::String, typename DefaultArgumentsValueT = Aws::String>
179 CreateJobRequest& AddDefaultArguments(DefaultArgumentsKeyT&& key, DefaultArgumentsValueT&& value) {
180 m_defaultArgumentsHasBeenSet = true; m_defaultArguments.emplace(std::forward<DefaultArgumentsKeyT>(key), std::forward<DefaultArgumentsValueT>(value)); return *this;
181 }
183
185
189 inline const Aws::Map<Aws::String, Aws::String>& GetNonOverridableArguments() const { return m_nonOverridableArguments; }
190 inline bool NonOverridableArgumentsHasBeenSet() const { return m_nonOverridableArgumentsHasBeenSet; }
191 template<typename NonOverridableArgumentsT = Aws::Map<Aws::String, Aws::String>>
192 void SetNonOverridableArguments(NonOverridableArgumentsT&& value) { m_nonOverridableArgumentsHasBeenSet = true; m_nonOverridableArguments = std::forward<NonOverridableArgumentsT>(value); }
193 template<typename NonOverridableArgumentsT = Aws::Map<Aws::String, Aws::String>>
194 CreateJobRequest& WithNonOverridableArguments(NonOverridableArgumentsT&& value) { SetNonOverridableArguments(std::forward<NonOverridableArgumentsT>(value)); return *this;}
195 template<typename NonOverridableArgumentsKeyT = Aws::String, typename NonOverridableArgumentsValueT = Aws::String>
196 CreateJobRequest& AddNonOverridableArguments(NonOverridableArgumentsKeyT&& key, NonOverridableArgumentsValueT&& value) {
197 m_nonOverridableArgumentsHasBeenSet = true; m_nonOverridableArguments.emplace(std::forward<NonOverridableArgumentsKeyT>(key), std::forward<NonOverridableArgumentsValueT>(value)); return *this;
198 }
200
202
205 inline const ConnectionsList& GetConnections() const { return m_connections; }
206 inline bool ConnectionsHasBeenSet() const { return m_connectionsHasBeenSet; }
207 template<typename ConnectionsT = ConnectionsList>
208 void SetConnections(ConnectionsT&& value) { m_connectionsHasBeenSet = true; m_connections = std::forward<ConnectionsT>(value); }
209 template<typename ConnectionsT = ConnectionsList>
210 CreateJobRequest& WithConnections(ConnectionsT&& value) { SetConnections(std::forward<ConnectionsT>(value)); return *this;}
212
214
217 inline int GetMaxRetries() const { return m_maxRetries; }
218 inline bool MaxRetriesHasBeenSet() const { return m_maxRetriesHasBeenSet; }
219 inline void SetMaxRetries(int value) { m_maxRetriesHasBeenSet = true; m_maxRetries = value; }
220 inline CreateJobRequest& WithMaxRetries(int value) { SetMaxRetries(value); return *this;}
222
224
236 inline int GetTimeout() const { return m_timeout; }
237 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
238 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
239 inline CreateJobRequest& WithTimeout(int value) { SetTimeout(value); return *this;}
241
243
263 inline double GetMaxCapacity() const { return m_maxCapacity; }
264 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
265 inline void SetMaxCapacity(double value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
266 inline CreateJobRequest& WithMaxCapacity(double value) { SetMaxCapacity(value); return *this;}
268
270
274 inline const Aws::String& GetSecurityConfiguration() const { return m_securityConfiguration; }
275 inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
276 template<typename SecurityConfigurationT = Aws::String>
277 void SetSecurityConfiguration(SecurityConfigurationT&& value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration = std::forward<SecurityConfigurationT>(value); }
278 template<typename SecurityConfigurationT = Aws::String>
279 CreateJobRequest& WithSecurityConfiguration(SecurityConfigurationT&& value) { SetSecurityConfiguration(std::forward<SecurityConfigurationT>(value)); return *this;}
281
283
289 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
290 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
291 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
292 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
293 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
294 CreateJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
295 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
296 CreateJobRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
297 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
298 }
300
302
305 inline const NotificationProperty& GetNotificationProperty() const { return m_notificationProperty; }
306 inline bool NotificationPropertyHasBeenSet() const { return m_notificationPropertyHasBeenSet; }
307 template<typename NotificationPropertyT = NotificationProperty>
308 void SetNotificationProperty(NotificationPropertyT&& value) { m_notificationPropertyHasBeenSet = true; m_notificationProperty = std::forward<NotificationPropertyT>(value); }
309 template<typename NotificationPropertyT = NotificationProperty>
310 CreateJobRequest& WithNotificationProperty(NotificationPropertyT&& value) { SetNotificationProperty(std::forward<NotificationPropertyT>(value)); return *this;}
312
314
327 inline const Aws::String& GetGlueVersion() const { return m_glueVersion; }
328 inline bool GlueVersionHasBeenSet() const { return m_glueVersionHasBeenSet; }
329 template<typename GlueVersionT = Aws::String>
330 void SetGlueVersion(GlueVersionT&& value) { m_glueVersionHasBeenSet = true; m_glueVersion = std::forward<GlueVersionT>(value); }
331 template<typename GlueVersionT = Aws::String>
332 CreateJobRequest& WithGlueVersion(GlueVersionT&& value) { SetGlueVersion(std::forward<GlueVersionT>(value)); return *this;}
334
336
340 inline int GetNumberOfWorkers() const { return m_numberOfWorkers; }
341 inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; }
342 inline void SetNumberOfWorkers(int value) { m_numberOfWorkersHasBeenSet = true; m_numberOfWorkers = value; }
343 inline CreateJobRequest& WithNumberOfWorkers(int value) { SetNumberOfWorkers(value); return *this;}
345
347
380 inline WorkerType GetWorkerType() const { return m_workerType; }
381 inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
382 inline void SetWorkerType(WorkerType value) { m_workerTypeHasBeenSet = true; m_workerType = value; }
383 inline CreateJobRequest& WithWorkerType(WorkerType value) { SetWorkerType(value); return *this;}
385
387
391 inline const Aws::Map<Aws::String, CodeGenConfigurationNode>& GetCodeGenConfigurationNodes() const { return m_codeGenConfigurationNodes; }
392 inline bool CodeGenConfigurationNodesHasBeenSet() const { return m_codeGenConfigurationNodesHasBeenSet; }
393 template<typename CodeGenConfigurationNodesT = Aws::Map<Aws::String, CodeGenConfigurationNode>>
394 void SetCodeGenConfigurationNodes(CodeGenConfigurationNodesT&& value) { m_codeGenConfigurationNodesHasBeenSet = true; m_codeGenConfigurationNodes = std::forward<CodeGenConfigurationNodesT>(value); }
395 template<typename CodeGenConfigurationNodesT = Aws::Map<Aws::String, CodeGenConfigurationNode>>
396 CreateJobRequest& WithCodeGenConfigurationNodes(CodeGenConfigurationNodesT&& value) { SetCodeGenConfigurationNodes(std::forward<CodeGenConfigurationNodesT>(value)); return *this;}
397 template<typename CodeGenConfigurationNodesKeyT = Aws::String, typename CodeGenConfigurationNodesValueT = CodeGenConfigurationNode>
398 CreateJobRequest& AddCodeGenConfigurationNodes(CodeGenConfigurationNodesKeyT&& key, CodeGenConfigurationNodesValueT&& value) {
399 m_codeGenConfigurationNodesHasBeenSet = true; m_codeGenConfigurationNodes.emplace(std::forward<CodeGenConfigurationNodesKeyT>(key), std::forward<CodeGenConfigurationNodesValueT>(value)); return *this;
400 }
402
404
413 inline ExecutionClass GetExecutionClass() const { return m_executionClass; }
414 inline bool ExecutionClassHasBeenSet() const { return m_executionClassHasBeenSet; }
415 inline void SetExecutionClass(ExecutionClass value) { m_executionClassHasBeenSet = true; m_executionClass = value; }
418
420
424 inline const SourceControlDetails& GetSourceControlDetails() const { return m_sourceControlDetails; }
425 inline bool SourceControlDetailsHasBeenSet() const { return m_sourceControlDetailsHasBeenSet; }
426 template<typename SourceControlDetailsT = SourceControlDetails>
427 void SetSourceControlDetails(SourceControlDetailsT&& value) { m_sourceControlDetailsHasBeenSet = true; m_sourceControlDetails = std::forward<SourceControlDetailsT>(value); }
428 template<typename SourceControlDetailsT = SourceControlDetails>
429 CreateJobRequest& WithSourceControlDetails(SourceControlDetailsT&& value) { SetSourceControlDetails(std::forward<SourceControlDetailsT>(value)); return *this;}
431
433
441 inline const Aws::String& GetMaintenanceWindow() const { return m_maintenanceWindow; }
442 inline bool MaintenanceWindowHasBeenSet() const { return m_maintenanceWindowHasBeenSet; }
443 template<typename MaintenanceWindowT = Aws::String>
444 void SetMaintenanceWindow(MaintenanceWindowT&& value) { m_maintenanceWindowHasBeenSet = true; m_maintenanceWindow = std::forward<MaintenanceWindowT>(value); }
445 template<typename MaintenanceWindowT = Aws::String>
446 CreateJobRequest& WithMaintenanceWindow(MaintenanceWindowT&& value) { SetMaintenanceWindow(std::forward<MaintenanceWindowT>(value)); return *this;}
448 private:
449
450 Aws::String m_name;
451 bool m_nameHasBeenSet = false;
452
453 JobMode m_jobMode{JobMode::NOT_SET};
454 bool m_jobModeHasBeenSet = false;
455
456 bool m_jobRunQueuingEnabled{false};
457 bool m_jobRunQueuingEnabledHasBeenSet = false;
458
459 Aws::String m_description;
460 bool m_descriptionHasBeenSet = false;
461
462 Aws::String m_logUri;
463 bool m_logUriHasBeenSet = false;
464
465 Aws::String m_role;
466 bool m_roleHasBeenSet = false;
467
468 ExecutionProperty m_executionProperty;
469 bool m_executionPropertyHasBeenSet = false;
470
471 JobCommand m_command;
472 bool m_commandHasBeenSet = false;
473
474 Aws::Map<Aws::String, Aws::String> m_defaultArguments;
475 bool m_defaultArgumentsHasBeenSet = false;
476
477 Aws::Map<Aws::String, Aws::String> m_nonOverridableArguments;
478 bool m_nonOverridableArgumentsHasBeenSet = false;
479
480 ConnectionsList m_connections;
481 bool m_connectionsHasBeenSet = false;
482
483 int m_maxRetries{0};
484 bool m_maxRetriesHasBeenSet = false;
485
486 int m_timeout{0};
487 bool m_timeoutHasBeenSet = false;
488
489 double m_maxCapacity{0.0};
490 bool m_maxCapacityHasBeenSet = false;
491
492 Aws::String m_securityConfiguration;
493 bool m_securityConfigurationHasBeenSet = false;
494
496 bool m_tagsHasBeenSet = false;
497
498 NotificationProperty m_notificationProperty;
499 bool m_notificationPropertyHasBeenSet = false;
500
501 Aws::String m_glueVersion;
502 bool m_glueVersionHasBeenSet = false;
503
504 int m_numberOfWorkers{0};
505 bool m_numberOfWorkersHasBeenSet = false;
506
507 WorkerType m_workerType{WorkerType::NOT_SET};
508 bool m_workerTypeHasBeenSet = false;
509
510 Aws::Map<Aws::String, CodeGenConfigurationNode> m_codeGenConfigurationNodes;
511 bool m_codeGenConfigurationNodesHasBeenSet = false;
512
513 ExecutionClass m_executionClass{ExecutionClass::NOT_SET};
514 bool m_executionClassHasBeenSet = false;
515
516 SourceControlDetails m_sourceControlDetails;
517 bool m_sourceControlDetailsHasBeenSet = false;
518
519 Aws::String m_maintenanceWindow;
520 bool m_maintenanceWindowHasBeenSet = false;
521 };
522
523} // namespace Model
524} // namespace Glue
525} // namespace Aws
void SetNonOverridableArguments(NonOverridableArgumentsT &&value)
CreateJobRequest & WithWorkerType(WorkerType value)
const ExecutionProperty & GetExecutionProperty() const
CreateJobRequest & AddCodeGenConfigurationNodes(CodeGenConfigurationNodesKeyT &&key, CodeGenConfigurationNodesValueT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetDescription(DescriptionT &&value)
const Aws::String & GetName() const
CreateJobRequest & WithCodeGenConfigurationNodes(CodeGenConfigurationNodesT &&value)
const ConnectionsList & GetConnections() const
CreateJobRequest & WithNonOverridableArguments(NonOverridableArgumentsT &&value)
CreateJobRequest & WithConnections(ConnectionsT &&value)
CreateJobRequest & WithSecurityConfiguration(SecurityConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetNonOverridableArguments() const
CreateJobRequest & WithDefaultArguments(DefaultArgumentsT &&value)
CreateJobRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateJobRequest & WithJobRunQueuingEnabled(bool value)
void SetDefaultArguments(DefaultArgumentsT &&value)
const JobCommand & GetCommand() const
const Aws::String & GetLogUri() const
CreateJobRequest & WithLogUri(LogUriT &&value)
const Aws::String & GetRole() const
CreateJobRequest & WithTimeout(int value)
void SetSecurityConfiguration(SecurityConfigurationT &&value)
CreateJobRequest & WithMaxCapacity(double value)
CreateJobRequest & WithTags(TagsT &&value)
CreateJobRequest & WithSourceControlDetails(SourceControlDetailsT &&value)
void SetGlueVersion(GlueVersionT &&value)
void SetMaintenanceWindow(MaintenanceWindowT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetMaintenanceWindow() const
CreateJobRequest & WithDescription(DescriptionT &&value)
AWS_GLUE_API CreateJobRequest()=default
void SetNotificationProperty(NotificationPropertyT &&value)
CreateJobRequest & WithJobMode(JobMode value)
CreateJobRequest & WithRole(RoleT &&value)
const Aws::String & GetSecurityConfiguration() const
CreateJobRequest & AddNonOverridableArguments(NonOverridableArgumentsKeyT &&key, NonOverridableArgumentsValueT &&value)
CreateJobRequest & WithCommand(CommandT &&value)
CreateJobRequest & WithExecutionProperty(ExecutionPropertyT &&value)
CreateJobRequest & WithGlueVersion(GlueVersionT &&value)
const NotificationProperty & GetNotificationProperty() const
CreateJobRequest & WithNumberOfWorkers(int value)
CreateJobRequest & WithMaintenanceWindow(MaintenanceWindowT &&value)
const SourceControlDetails & GetSourceControlDetails() const
const Aws::Map< Aws::String, CodeGenConfigurationNode > & GetCodeGenConfigurationNodes() const
void SetExecutionProperty(ExecutionPropertyT &&value)
const Aws::Map< Aws::String, Aws::String > & GetDefaultArguments() const
const Aws::String & GetGlueVersion() const
const Aws::String & GetDescription() const
void SetCodeGenConfigurationNodes(CodeGenConfigurationNodesT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
CreateJobRequest & WithName(NameT &&value)
CreateJobRequest & WithMaxRetries(int value)
CreateJobRequest & AddDefaultArguments(DefaultArgumentsKeyT &&key, DefaultArgumentsValueT &&value)
virtual const char * GetServiceRequestName() const override
void SetExecutionClass(ExecutionClass value)
CreateJobRequest & WithNotificationProperty(NotificationPropertyT &&value)
CreateJobRequest & WithExecutionClass(ExecutionClass value)
ExecutionClass GetExecutionClass() const
void SetConnections(ConnectionsT &&value)
void SetSourceControlDetails(SourceControlDetailsT &&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