AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/GlueRequest.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/CodeGenConfigurationNode.h>
12#include <aws/glue/model/ConnectionsList.h>
13#include <aws/glue/model/ExecutionClass.h>
14#include <aws/glue/model/ExecutionProperty.h>
15#include <aws/glue/model/JobCommand.h>
16#include <aws/glue/model/JobMode.h>
17#include <aws/glue/model/NotificationProperty.h>
18#include <aws/glue/model/SourceControlDetails.h>
19#include <aws/glue/model/WorkerType.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Glue {
25namespace Model {
26
30 public:
31 AWS_GLUE_API CreateJobRequest() = 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 "CreateJob"; }
38
39 AWS_GLUE_API Aws::String SerializePayload() const override;
40
42
44
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) {
52 m_nameHasBeenSet = true;
53 m_name = std::forward<NameT>(value);
54 }
55 template <typename NameT = Aws::String>
56 CreateJobRequest& WithName(NameT&& value) {
57 SetName(std::forward<NameT>(value));
58 return *this;
59 }
61
63
72 inline JobMode GetJobMode() const { return m_jobMode; }
73 inline bool JobModeHasBeenSet() const { return m_jobModeHasBeenSet; }
74 inline void SetJobMode(JobMode value) {
75 m_jobModeHasBeenSet = true;
76 m_jobMode = value;
77 }
79 SetJobMode(value);
80 return *this;
81 }
83
85
92 inline bool GetJobRunQueuingEnabled() const { return m_jobRunQueuingEnabled; }
93 inline bool JobRunQueuingEnabledHasBeenSet() const { return m_jobRunQueuingEnabledHasBeenSet; }
94 inline void SetJobRunQueuingEnabled(bool value) {
95 m_jobRunQueuingEnabledHasBeenSet = true;
96 m_jobRunQueuingEnabled = value;
97 }
100 return *this;
101 }
103
105
108 inline const Aws::String& GetDescription() const { return m_description; }
109 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
110 template <typename DescriptionT = Aws::String>
111 void SetDescription(DescriptionT&& value) {
112 m_descriptionHasBeenSet = true;
113 m_description = std::forward<DescriptionT>(value);
114 }
115 template <typename DescriptionT = Aws::String>
116 CreateJobRequest& WithDescription(DescriptionT&& value) {
117 SetDescription(std::forward<DescriptionT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetLogUri() const { return m_logUri; }
127 inline bool LogUriHasBeenSet() const { return m_logUriHasBeenSet; }
128 template <typename LogUriT = Aws::String>
129 void SetLogUri(LogUriT&& value) {
130 m_logUriHasBeenSet = true;
131 m_logUri = std::forward<LogUriT>(value);
132 }
133 template <typename LogUriT = Aws::String>
134 CreateJobRequest& WithLogUri(LogUriT&& value) {
135 SetLogUri(std::forward<LogUriT>(value));
136 return *this;
137 }
139
141
145 inline const Aws::String& GetRole() const { return m_role; }
146 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
147 template <typename RoleT = Aws::String>
148 void SetRole(RoleT&& value) {
149 m_roleHasBeenSet = true;
150 m_role = std::forward<RoleT>(value);
151 }
152 template <typename RoleT = Aws::String>
153 CreateJobRequest& WithRole(RoleT&& value) {
154 SetRole(std::forward<RoleT>(value));
155 return *this;
156 }
158
160
164 inline const ExecutionProperty& GetExecutionProperty() const { return m_executionProperty; }
165 inline bool ExecutionPropertyHasBeenSet() const { return m_executionPropertyHasBeenSet; }
166 template <typename ExecutionPropertyT = ExecutionProperty>
167 void SetExecutionProperty(ExecutionPropertyT&& value) {
168 m_executionPropertyHasBeenSet = true;
169 m_executionProperty = std::forward<ExecutionPropertyT>(value);
170 }
171 template <typename ExecutionPropertyT = ExecutionProperty>
172 CreateJobRequest& WithExecutionProperty(ExecutionPropertyT&& value) {
173 SetExecutionProperty(std::forward<ExecutionPropertyT>(value));
174 return *this;
175 }
177
179
182 inline const JobCommand& GetCommand() const { return m_command; }
183 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
184 template <typename CommandT = JobCommand>
185 void SetCommand(CommandT&& value) {
186 m_commandHasBeenSet = true;
187 m_command = std::forward<CommandT>(value);
188 }
189 template <typename CommandT = JobCommand>
190 CreateJobRequest& WithCommand(CommandT&& value) {
191 SetCommand(std::forward<CommandT>(value));
192 return *this;
193 }
195
197
216 inline const Aws::Map<Aws::String, Aws::String>& GetDefaultArguments() const { return m_defaultArguments; }
217 inline bool DefaultArgumentsHasBeenSet() const { return m_defaultArgumentsHasBeenSet; }
218 template <typename DefaultArgumentsT = Aws::Map<Aws::String, Aws::String>>
219 void SetDefaultArguments(DefaultArgumentsT&& value) {
220 m_defaultArgumentsHasBeenSet = true;
221 m_defaultArguments = std::forward<DefaultArgumentsT>(value);
222 }
223 template <typename DefaultArgumentsT = Aws::Map<Aws::String, Aws::String>>
224 CreateJobRequest& WithDefaultArguments(DefaultArgumentsT&& value) {
225 SetDefaultArguments(std::forward<DefaultArgumentsT>(value));
226 return *this;
227 }
228 template <typename DefaultArgumentsKeyT = Aws::String, typename DefaultArgumentsValueT = Aws::String>
229 CreateJobRequest& AddDefaultArguments(DefaultArgumentsKeyT&& key, DefaultArgumentsValueT&& value) {
230 m_defaultArgumentsHasBeenSet = true;
231 m_defaultArguments.emplace(std::forward<DefaultArgumentsKeyT>(key), std::forward<DefaultArgumentsValueT>(value));
232 return *this;
233 }
235
237
241 inline const Aws::Map<Aws::String, Aws::String>& GetNonOverridableArguments() const { return m_nonOverridableArguments; }
242 inline bool NonOverridableArgumentsHasBeenSet() const { return m_nonOverridableArgumentsHasBeenSet; }
243 template <typename NonOverridableArgumentsT = Aws::Map<Aws::String, Aws::String>>
244 void SetNonOverridableArguments(NonOverridableArgumentsT&& value) {
245 m_nonOverridableArgumentsHasBeenSet = true;
246 m_nonOverridableArguments = std::forward<NonOverridableArgumentsT>(value);
247 }
248 template <typename NonOverridableArgumentsT = Aws::Map<Aws::String, Aws::String>>
249 CreateJobRequest& WithNonOverridableArguments(NonOverridableArgumentsT&& value) {
250 SetNonOverridableArguments(std::forward<NonOverridableArgumentsT>(value));
251 return *this;
252 }
253 template <typename NonOverridableArgumentsKeyT = Aws::String, typename NonOverridableArgumentsValueT = Aws::String>
254 CreateJobRequest& AddNonOverridableArguments(NonOverridableArgumentsKeyT&& key, NonOverridableArgumentsValueT&& value) {
255 m_nonOverridableArgumentsHasBeenSet = true;
256 m_nonOverridableArguments.emplace(std::forward<NonOverridableArgumentsKeyT>(key), std::forward<NonOverridableArgumentsValueT>(value));
257 return *this;
258 }
260
262
265 inline const ConnectionsList& GetConnections() const { return m_connections; }
266 inline bool ConnectionsHasBeenSet() const { return m_connectionsHasBeenSet; }
267 template <typename ConnectionsT = ConnectionsList>
268 void SetConnections(ConnectionsT&& value) {
269 m_connectionsHasBeenSet = true;
270 m_connections = std::forward<ConnectionsT>(value);
271 }
272 template <typename ConnectionsT = ConnectionsList>
273 CreateJobRequest& WithConnections(ConnectionsT&& value) {
274 SetConnections(std::forward<ConnectionsT>(value));
275 return *this;
276 }
278
280
283 inline int GetMaxRetries() const { return m_maxRetries; }
284 inline bool MaxRetriesHasBeenSet() const { return m_maxRetriesHasBeenSet; }
285 inline void SetMaxRetries(int value) {
286 m_maxRetriesHasBeenSet = true;
287 m_maxRetries = value;
288 }
289 inline CreateJobRequest& WithMaxRetries(int value) {
290 SetMaxRetries(value);
291 return *this;
292 }
294
296
308 inline int GetTimeout() const { return m_timeout; }
309 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
310 inline void SetTimeout(int value) {
311 m_timeoutHasBeenSet = true;
312 m_timeout = value;
313 }
314 inline CreateJobRequest& WithTimeout(int value) {
315 SetTimeout(value);
316 return *this;
317 }
319
321
341 inline double GetMaxCapacity() const { return m_maxCapacity; }
342 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
343 inline void SetMaxCapacity(double value) {
344 m_maxCapacityHasBeenSet = true;
345 m_maxCapacity = value;
346 }
347 inline CreateJobRequest& WithMaxCapacity(double value) {
348 SetMaxCapacity(value);
349 return *this;
350 }
352
354
358 inline const Aws::String& GetSecurityConfiguration() const { return m_securityConfiguration; }
359 inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
360 template <typename SecurityConfigurationT = Aws::String>
361 void SetSecurityConfiguration(SecurityConfigurationT&& value) {
362 m_securityConfigurationHasBeenSet = true;
363 m_securityConfiguration = std::forward<SecurityConfigurationT>(value);
364 }
365 template <typename SecurityConfigurationT = Aws::String>
366 CreateJobRequest& WithSecurityConfiguration(SecurityConfigurationT&& value) {
367 SetSecurityConfiguration(std::forward<SecurityConfigurationT>(value));
368 return *this;
369 }
371
373
379 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
380 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
381 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
382 void SetTags(TagsT&& value) {
383 m_tagsHasBeenSet = true;
384 m_tags = std::forward<TagsT>(value);
385 }
386 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
387 CreateJobRequest& WithTags(TagsT&& value) {
388 SetTags(std::forward<TagsT>(value));
389 return *this;
390 }
391 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
392 CreateJobRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
393 m_tagsHasBeenSet = true;
394 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
395 return *this;
396 }
398
400
403 inline const NotificationProperty& GetNotificationProperty() const { return m_notificationProperty; }
404 inline bool NotificationPropertyHasBeenSet() const { return m_notificationPropertyHasBeenSet; }
405 template <typename NotificationPropertyT = NotificationProperty>
406 void SetNotificationProperty(NotificationPropertyT&& value) {
407 m_notificationPropertyHasBeenSet = true;
408 m_notificationProperty = std::forward<NotificationPropertyT>(value);
409 }
410 template <typename NotificationPropertyT = NotificationProperty>
411 CreateJobRequest& WithNotificationProperty(NotificationPropertyT&& value) {
412 SetNotificationProperty(std::forward<NotificationPropertyT>(value));
413 return *this;
414 }
416
418
431 inline const Aws::String& GetGlueVersion() const { return m_glueVersion; }
432 inline bool GlueVersionHasBeenSet() const { return m_glueVersionHasBeenSet; }
433 template <typename GlueVersionT = Aws::String>
434 void SetGlueVersion(GlueVersionT&& value) {
435 m_glueVersionHasBeenSet = true;
436 m_glueVersion = std::forward<GlueVersionT>(value);
437 }
438 template <typename GlueVersionT = Aws::String>
439 CreateJobRequest& WithGlueVersion(GlueVersionT&& value) {
440 SetGlueVersion(std::forward<GlueVersionT>(value));
441 return *this;
442 }
444
446
450 inline int GetNumberOfWorkers() const { return m_numberOfWorkers; }
451 inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; }
452 inline void SetNumberOfWorkers(int value) {
453 m_numberOfWorkersHasBeenSet = true;
454 m_numberOfWorkers = value;
455 }
457 SetNumberOfWorkers(value);
458 return *this;
459 }
461
463
498 inline WorkerType GetWorkerType() const { return m_workerType; }
499 inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
500 inline void SetWorkerType(WorkerType value) {
501 m_workerTypeHasBeenSet = true;
502 m_workerType = value;
503 }
505 SetWorkerType(value);
506 return *this;
507 }
509
511
515 inline const Aws::Map<Aws::String, CodeGenConfigurationNode>& GetCodeGenConfigurationNodes() const { return m_codeGenConfigurationNodes; }
516 inline bool CodeGenConfigurationNodesHasBeenSet() const { return m_codeGenConfigurationNodesHasBeenSet; }
517 template <typename CodeGenConfigurationNodesT = Aws::Map<Aws::String, CodeGenConfigurationNode>>
518 void SetCodeGenConfigurationNodes(CodeGenConfigurationNodesT&& value) {
519 m_codeGenConfigurationNodesHasBeenSet = true;
520 m_codeGenConfigurationNodes = std::forward<CodeGenConfigurationNodesT>(value);
521 }
522 template <typename CodeGenConfigurationNodesT = Aws::Map<Aws::String, CodeGenConfigurationNode>>
523 CreateJobRequest& WithCodeGenConfigurationNodes(CodeGenConfigurationNodesT&& value) {
524 SetCodeGenConfigurationNodes(std::forward<CodeGenConfigurationNodesT>(value));
525 return *this;
526 }
527 template <typename CodeGenConfigurationNodesKeyT = Aws::String, typename CodeGenConfigurationNodesValueT = CodeGenConfigurationNode>
528 CreateJobRequest& AddCodeGenConfigurationNodes(CodeGenConfigurationNodesKeyT&& key, CodeGenConfigurationNodesValueT&& value) {
529 m_codeGenConfigurationNodesHasBeenSet = true;
530 m_codeGenConfigurationNodes.emplace(std::forward<CodeGenConfigurationNodesKeyT>(key),
531 std::forward<CodeGenConfigurationNodesValueT>(value));
532 return *this;
533 }
535
537
546 inline ExecutionClass GetExecutionClass() const { return m_executionClass; }
547 inline bool ExecutionClassHasBeenSet() const { return m_executionClassHasBeenSet; }
549 m_executionClassHasBeenSet = true;
550 m_executionClass = value;
551 }
553 SetExecutionClass(value);
554 return *this;
555 }
557
559
563 inline const SourceControlDetails& GetSourceControlDetails() const { return m_sourceControlDetails; }
564 inline bool SourceControlDetailsHasBeenSet() const { return m_sourceControlDetailsHasBeenSet; }
565 template <typename SourceControlDetailsT = SourceControlDetails>
566 void SetSourceControlDetails(SourceControlDetailsT&& value) {
567 m_sourceControlDetailsHasBeenSet = true;
568 m_sourceControlDetails = std::forward<SourceControlDetailsT>(value);
569 }
570 template <typename SourceControlDetailsT = SourceControlDetails>
571 CreateJobRequest& WithSourceControlDetails(SourceControlDetailsT&& value) {
572 SetSourceControlDetails(std::forward<SourceControlDetailsT>(value));
573 return *this;
574 }
576
578
586 inline const Aws::String& GetMaintenanceWindow() const { return m_maintenanceWindow; }
587 inline bool MaintenanceWindowHasBeenSet() const { return m_maintenanceWindowHasBeenSet; }
588 template <typename MaintenanceWindowT = Aws::String>
589 void SetMaintenanceWindow(MaintenanceWindowT&& value) {
590 m_maintenanceWindowHasBeenSet = true;
591 m_maintenanceWindow = std::forward<MaintenanceWindowT>(value);
592 }
593 template <typename MaintenanceWindowT = Aws::String>
594 CreateJobRequest& WithMaintenanceWindow(MaintenanceWindowT&& value) {
595 SetMaintenanceWindow(std::forward<MaintenanceWindowT>(value));
596 return *this;
597 }
599 private:
600 Aws::String m_name;
601
602 JobMode m_jobMode{JobMode::NOT_SET};
603
604 bool m_jobRunQueuingEnabled{false};
605
606 Aws::String m_description;
607
608 Aws::String m_logUri;
609
610 Aws::String m_role;
611
612 ExecutionProperty m_executionProperty;
613
614 JobCommand m_command;
615
616 Aws::Map<Aws::String, Aws::String> m_defaultArguments;
617
618 Aws::Map<Aws::String, Aws::String> m_nonOverridableArguments;
619
620 ConnectionsList m_connections;
621
622 int m_maxRetries{0};
623
624 int m_timeout{0};
625
626 double m_maxCapacity{0.0};
627
628 Aws::String m_securityConfiguration;
629
631
632 NotificationProperty m_notificationProperty;
633
634 Aws::String m_glueVersion;
635
636 int m_numberOfWorkers{0};
637
638 WorkerType m_workerType{WorkerType::NOT_SET};
639
640 Aws::Map<Aws::String, CodeGenConfigurationNode> m_codeGenConfigurationNodes;
641
642 ExecutionClass m_executionClass{ExecutionClass::NOT_SET};
643
644 SourceControlDetails m_sourceControlDetails;
645
646 Aws::String m_maintenanceWindow;
647 bool m_nameHasBeenSet = false;
648 bool m_jobModeHasBeenSet = false;
649 bool m_jobRunQueuingEnabledHasBeenSet = false;
650 bool m_descriptionHasBeenSet = false;
651 bool m_logUriHasBeenSet = false;
652 bool m_roleHasBeenSet = false;
653 bool m_executionPropertyHasBeenSet = false;
654 bool m_commandHasBeenSet = false;
655 bool m_defaultArgumentsHasBeenSet = false;
656 bool m_nonOverridableArgumentsHasBeenSet = false;
657 bool m_connectionsHasBeenSet = false;
658 bool m_maxRetriesHasBeenSet = false;
659 bool m_timeoutHasBeenSet = false;
660 bool m_maxCapacityHasBeenSet = false;
661 bool m_securityConfigurationHasBeenSet = false;
662 bool m_tagsHasBeenSet = false;
663 bool m_notificationPropertyHasBeenSet = false;
664 bool m_glueVersionHasBeenSet = false;
665 bool m_numberOfWorkersHasBeenSet = false;
666 bool m_workerTypeHasBeenSet = false;
667 bool m_codeGenConfigurationNodesHasBeenSet = false;
668 bool m_executionClassHasBeenSet = false;
669 bool m_sourceControlDetailsHasBeenSet = false;
670 bool m_maintenanceWindowHasBeenSet = false;
671};
672
673} // namespace Model
674} // namespace Glue
675} // 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