AWS SDK for C++

AWS SDK for C++ Version 1.11.809

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
309 inline int GetTimeout() const { return m_timeout; }
310 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
311 inline void SetTimeout(int value) {
312 m_timeoutHasBeenSet = true;
313 m_timeout = value;
314 }
315 inline CreateJobRequest& WithTimeout(int value) {
316 SetTimeout(value);
317 return *this;
318 }
320
322
342 inline double GetMaxCapacity() const { return m_maxCapacity; }
343 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
344 inline void SetMaxCapacity(double value) {
345 m_maxCapacityHasBeenSet = true;
346 m_maxCapacity = value;
347 }
348 inline CreateJobRequest& WithMaxCapacity(double value) {
349 SetMaxCapacity(value);
350 return *this;
351 }
353
355
359 inline const Aws::String& GetSecurityConfiguration() const { return m_securityConfiguration; }
360 inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
361 template <typename SecurityConfigurationT = Aws::String>
362 void SetSecurityConfiguration(SecurityConfigurationT&& value) {
363 m_securityConfigurationHasBeenSet = true;
364 m_securityConfiguration = std::forward<SecurityConfigurationT>(value);
365 }
366 template <typename SecurityConfigurationT = Aws::String>
367 CreateJobRequest& WithSecurityConfiguration(SecurityConfigurationT&& value) {
368 SetSecurityConfiguration(std::forward<SecurityConfigurationT>(value));
369 return *this;
370 }
372
374
380 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
381 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
382 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
383 void SetTags(TagsT&& value) {
384 m_tagsHasBeenSet = true;
385 m_tags = std::forward<TagsT>(value);
386 }
387 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
388 CreateJobRequest& WithTags(TagsT&& value) {
389 SetTags(std::forward<TagsT>(value));
390 return *this;
391 }
392 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
393 CreateJobRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
394 m_tagsHasBeenSet = true;
395 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
396 return *this;
397 }
399
401
404 inline const NotificationProperty& GetNotificationProperty() const { return m_notificationProperty; }
405 inline bool NotificationPropertyHasBeenSet() const { return m_notificationPropertyHasBeenSet; }
406 template <typename NotificationPropertyT = NotificationProperty>
407 void SetNotificationProperty(NotificationPropertyT&& value) {
408 m_notificationPropertyHasBeenSet = true;
409 m_notificationProperty = std::forward<NotificationPropertyT>(value);
410 }
411 template <typename NotificationPropertyT = NotificationProperty>
412 CreateJobRequest& WithNotificationProperty(NotificationPropertyT&& value) {
413 SetNotificationProperty(std::forward<NotificationPropertyT>(value));
414 return *this;
415 }
417
419
432 inline const Aws::String& GetGlueVersion() const { return m_glueVersion; }
433 inline bool GlueVersionHasBeenSet() const { return m_glueVersionHasBeenSet; }
434 template <typename GlueVersionT = Aws::String>
435 void SetGlueVersion(GlueVersionT&& value) {
436 m_glueVersionHasBeenSet = true;
437 m_glueVersion = std::forward<GlueVersionT>(value);
438 }
439 template <typename GlueVersionT = Aws::String>
440 CreateJobRequest& WithGlueVersion(GlueVersionT&& value) {
441 SetGlueVersion(std::forward<GlueVersionT>(value));
442 return *this;
443 }
445
447
451 inline int GetNumberOfWorkers() const { return m_numberOfWorkers; }
452 inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; }
453 inline void SetNumberOfWorkers(int value) {
454 m_numberOfWorkersHasBeenSet = true;
455 m_numberOfWorkers = value;
456 }
458 SetNumberOfWorkers(value);
459 return *this;
460 }
462
464
499 inline WorkerType GetWorkerType() const { return m_workerType; }
500 inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
501 inline void SetWorkerType(WorkerType value) {
502 m_workerTypeHasBeenSet = true;
503 m_workerType = value;
504 }
506 SetWorkerType(value);
507 return *this;
508 }
510
512
516 inline const Aws::Map<Aws::String, CodeGenConfigurationNode>& GetCodeGenConfigurationNodes() const { return m_codeGenConfigurationNodes; }
517 inline bool CodeGenConfigurationNodesHasBeenSet() const { return m_codeGenConfigurationNodesHasBeenSet; }
518 template <typename CodeGenConfigurationNodesT = Aws::Map<Aws::String, CodeGenConfigurationNode>>
519 void SetCodeGenConfigurationNodes(CodeGenConfigurationNodesT&& value) {
520 m_codeGenConfigurationNodesHasBeenSet = true;
521 m_codeGenConfigurationNodes = std::forward<CodeGenConfigurationNodesT>(value);
522 }
523 template <typename CodeGenConfigurationNodesT = Aws::Map<Aws::String, CodeGenConfigurationNode>>
524 CreateJobRequest& WithCodeGenConfigurationNodes(CodeGenConfigurationNodesT&& value) {
525 SetCodeGenConfigurationNodes(std::forward<CodeGenConfigurationNodesT>(value));
526 return *this;
527 }
528 template <typename CodeGenConfigurationNodesKeyT = Aws::String, typename CodeGenConfigurationNodesValueT = CodeGenConfigurationNode>
529 CreateJobRequest& AddCodeGenConfigurationNodes(CodeGenConfigurationNodesKeyT&& key, CodeGenConfigurationNodesValueT&& value) {
530 m_codeGenConfigurationNodesHasBeenSet = true;
531 m_codeGenConfigurationNodes.emplace(std::forward<CodeGenConfigurationNodesKeyT>(key),
532 std::forward<CodeGenConfigurationNodesValueT>(value));
533 return *this;
534 }
536
538
547 inline ExecutionClass GetExecutionClass() const { return m_executionClass; }
548 inline bool ExecutionClassHasBeenSet() const { return m_executionClassHasBeenSet; }
550 m_executionClassHasBeenSet = true;
551 m_executionClass = value;
552 }
554 SetExecutionClass(value);
555 return *this;
556 }
558
560
564 inline const SourceControlDetails& GetSourceControlDetails() const { return m_sourceControlDetails; }
565 inline bool SourceControlDetailsHasBeenSet() const { return m_sourceControlDetailsHasBeenSet; }
566 template <typename SourceControlDetailsT = SourceControlDetails>
567 void SetSourceControlDetails(SourceControlDetailsT&& value) {
568 m_sourceControlDetailsHasBeenSet = true;
569 m_sourceControlDetails = std::forward<SourceControlDetailsT>(value);
570 }
571 template <typename SourceControlDetailsT = SourceControlDetails>
572 CreateJobRequest& WithSourceControlDetails(SourceControlDetailsT&& value) {
573 SetSourceControlDetails(std::forward<SourceControlDetailsT>(value));
574 return *this;
575 }
577
579
587 inline const Aws::String& GetMaintenanceWindow() const { return m_maintenanceWindow; }
588 inline bool MaintenanceWindowHasBeenSet() const { return m_maintenanceWindowHasBeenSet; }
589 template <typename MaintenanceWindowT = Aws::String>
590 void SetMaintenanceWindow(MaintenanceWindowT&& value) {
591 m_maintenanceWindowHasBeenSet = true;
592 m_maintenanceWindow = std::forward<MaintenanceWindowT>(value);
593 }
594 template <typename MaintenanceWindowT = Aws::String>
595 CreateJobRequest& WithMaintenanceWindow(MaintenanceWindowT&& value) {
596 SetMaintenanceWindow(std::forward<MaintenanceWindowT>(value));
597 return *this;
598 }
600 private:
601 Aws::String m_name;
602
603 JobMode m_jobMode{JobMode::NOT_SET};
604
605 bool m_jobRunQueuingEnabled{false};
606
607 Aws::String m_description;
608
609 Aws::String m_logUri;
610
611 Aws::String m_role;
612
613 ExecutionProperty m_executionProperty;
614
615 JobCommand m_command;
616
617 Aws::Map<Aws::String, Aws::String> m_defaultArguments;
618
619 Aws::Map<Aws::String, Aws::String> m_nonOverridableArguments;
620
621 ConnectionsList m_connections;
622
623 int m_maxRetries{0};
624
625 int m_timeout{0};
626
627 double m_maxCapacity{0.0};
628
629 Aws::String m_securityConfiguration;
630
632
633 NotificationProperty m_notificationProperty;
634
635 Aws::String m_glueVersion;
636
637 int m_numberOfWorkers{0};
638
639 WorkerType m_workerType{WorkerType::NOT_SET};
640
641 Aws::Map<Aws::String, CodeGenConfigurationNode> m_codeGenConfigurationNodes;
642
643 ExecutionClass m_executionClass{ExecutionClass::NOT_SET};
644
645 SourceControlDetails m_sourceControlDetails;
646
647 Aws::String m_maintenanceWindow;
648 bool m_nameHasBeenSet = false;
649 bool m_jobModeHasBeenSet = false;
650 bool m_jobRunQueuingEnabledHasBeenSet = false;
651 bool m_descriptionHasBeenSet = false;
652 bool m_logUriHasBeenSet = false;
653 bool m_roleHasBeenSet = false;
654 bool m_executionPropertyHasBeenSet = false;
655 bool m_commandHasBeenSet = false;
656 bool m_defaultArgumentsHasBeenSet = false;
657 bool m_nonOverridableArgumentsHasBeenSet = false;
658 bool m_connectionsHasBeenSet = false;
659 bool m_maxRetriesHasBeenSet = false;
660 bool m_timeoutHasBeenSet = false;
661 bool m_maxCapacityHasBeenSet = false;
662 bool m_securityConfigurationHasBeenSet = false;
663 bool m_tagsHasBeenSet = false;
664 bool m_notificationPropertyHasBeenSet = false;
665 bool m_glueVersionHasBeenSet = false;
666 bool m_numberOfWorkersHasBeenSet = false;
667 bool m_workerTypeHasBeenSet = false;
668 bool m_codeGenConfigurationNodesHasBeenSet = false;
669 bool m_executionClassHasBeenSet = false;
670 bool m_sourceControlDetailsHasBeenSet = false;
671 bool m_maintenanceWindowHasBeenSet = false;
672};
673
674} // namespace Model
675} // namespace Glue
676} // 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