AWS SDK for C++  1.9.108
AWS SDK for C++
StartJobRunRequest.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/glue/GlueRequest.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Glue
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "StartJobRun"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetJobName() const{ return m_jobName; }
44 
48  inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
49 
53  inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
54 
58  inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
59 
63  inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
64 
68  inline StartJobRunRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
69 
73  inline StartJobRunRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
74 
78  inline StartJobRunRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
79 
80 
84  inline const Aws::String& GetJobRunId() const{ return m_jobRunId; }
85 
89  inline bool JobRunIdHasBeenSet() const { return m_jobRunIdHasBeenSet; }
90 
94  inline void SetJobRunId(const Aws::String& value) { m_jobRunIdHasBeenSet = true; m_jobRunId = value; }
95 
99  inline void SetJobRunId(Aws::String&& value) { m_jobRunIdHasBeenSet = true; m_jobRunId = std::move(value); }
100 
104  inline void SetJobRunId(const char* value) { m_jobRunIdHasBeenSet = true; m_jobRunId.assign(value); }
105 
109  inline StartJobRunRequest& WithJobRunId(const Aws::String& value) { SetJobRunId(value); return *this;}
110 
114  inline StartJobRunRequest& WithJobRunId(Aws::String&& value) { SetJobRunId(std::move(value)); return *this;}
115 
119  inline StartJobRunRequest& WithJobRunId(const char* value) { SetJobRunId(value); return *this;}
120 
121 
134  inline const Aws::Map<Aws::String, Aws::String>& GetArguments() const{ return m_arguments; }
135 
148  inline bool ArgumentsHasBeenSet() const { return m_argumentsHasBeenSet; }
149 
162  inline void SetArguments(const Aws::Map<Aws::String, Aws::String>& value) { m_argumentsHasBeenSet = true; m_arguments = value; }
163 
176  inline void SetArguments(Aws::Map<Aws::String, Aws::String>&& value) { m_argumentsHasBeenSet = true; m_arguments = std::move(value); }
177 
190  inline StartJobRunRequest& WithArguments(const Aws::Map<Aws::String, Aws::String>& value) { SetArguments(value); return *this;}
191 
204  inline StartJobRunRequest& WithArguments(Aws::Map<Aws::String, Aws::String>&& value) { SetArguments(std::move(value)); return *this;}
205 
218  inline StartJobRunRequest& AddArguments(const Aws::String& key, const Aws::String& value) { m_argumentsHasBeenSet = true; m_arguments.emplace(key, value); return *this; }
219 
232  inline StartJobRunRequest& AddArguments(Aws::String&& key, const Aws::String& value) { m_argumentsHasBeenSet = true; m_arguments.emplace(std::move(key), value); return *this; }
233 
246  inline StartJobRunRequest& AddArguments(const Aws::String& key, Aws::String&& value) { m_argumentsHasBeenSet = true; m_arguments.emplace(key, std::move(value)); return *this; }
247 
260  inline StartJobRunRequest& AddArguments(Aws::String&& key, Aws::String&& value) { m_argumentsHasBeenSet = true; m_arguments.emplace(std::move(key), std::move(value)); return *this; }
261 
274  inline StartJobRunRequest& AddArguments(const char* key, Aws::String&& value) { m_argumentsHasBeenSet = true; m_arguments.emplace(key, std::move(value)); return *this; }
275 
288  inline StartJobRunRequest& AddArguments(Aws::String&& key, const char* value) { m_argumentsHasBeenSet = true; m_arguments.emplace(std::move(key), value); return *this; }
289 
302  inline StartJobRunRequest& AddArguments(const char* key, const char* value) { m_argumentsHasBeenSet = true; m_arguments.emplace(key, value); return *this; }
303 
304 
311  inline int GetTimeout() const{ return m_timeout; }
312 
319  inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
320 
327  inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
328 
335  inline StartJobRunRequest& WithTimeout(int value) { SetTimeout(value); return *this;}
336 
337 
353  inline double GetMaxCapacity() const{ return m_maxCapacity; }
354 
370  inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
371 
387  inline void SetMaxCapacity(double value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
388 
404  inline StartJobRunRequest& WithMaxCapacity(double value) { SetMaxCapacity(value); return *this;}
405 
406 
411  inline const Aws::String& GetSecurityConfiguration() const{ return m_securityConfiguration; }
412 
417  inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
418 
423  inline void SetSecurityConfiguration(const Aws::String& value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration = value; }
424 
429  inline void SetSecurityConfiguration(Aws::String&& value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration = std::move(value); }
430 
435  inline void SetSecurityConfiguration(const char* value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration.assign(value); }
436 
441  inline StartJobRunRequest& WithSecurityConfiguration(const Aws::String& value) { SetSecurityConfiguration(value); return *this;}
442 
447  inline StartJobRunRequest& WithSecurityConfiguration(Aws::String&& value) { SetSecurityConfiguration(std::move(value)); return *this;}
448 
453  inline StartJobRunRequest& WithSecurityConfiguration(const char* value) { SetSecurityConfiguration(value); return *this;}
454 
455 
459  inline const NotificationProperty& GetNotificationProperty() const{ return m_notificationProperty; }
460 
464  inline bool NotificationPropertyHasBeenSet() const { return m_notificationPropertyHasBeenSet; }
465 
469  inline void SetNotificationProperty(const NotificationProperty& value) { m_notificationPropertyHasBeenSet = true; m_notificationProperty = value; }
470 
474  inline void SetNotificationProperty(NotificationProperty&& value) { m_notificationPropertyHasBeenSet = true; m_notificationProperty = std::move(value); }
475 
479  inline StartJobRunRequest& WithNotificationProperty(const NotificationProperty& value) { SetNotificationProperty(value); return *this;}
480 
484  inline StartJobRunRequest& WithNotificationProperty(NotificationProperty&& value) { SetNotificationProperty(std::move(value)); return *this;}
485 
486 
497  inline const WorkerType& GetWorkerType() const{ return m_workerType; }
498 
509  inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
510 
521  inline void SetWorkerType(const WorkerType& value) { m_workerTypeHasBeenSet = true; m_workerType = value; }
522 
533  inline void SetWorkerType(WorkerType&& value) { m_workerTypeHasBeenSet = true; m_workerType = std::move(value); }
534 
545  inline StartJobRunRequest& WithWorkerType(const WorkerType& value) { SetWorkerType(value); return *this;}
546 
557  inline StartJobRunRequest& WithWorkerType(WorkerType&& value) { SetWorkerType(std::move(value)); return *this;}
558 
559 
565  inline int GetNumberOfWorkers() const{ return m_numberOfWorkers; }
566 
572  inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; }
573 
579  inline void SetNumberOfWorkers(int value) { m_numberOfWorkersHasBeenSet = true; m_numberOfWorkers = value; }
580 
586  inline StartJobRunRequest& WithNumberOfWorkers(int value) { SetNumberOfWorkers(value); return *this;}
587 
588  private:
589 
590  Aws::String m_jobName;
591  bool m_jobNameHasBeenSet;
592 
593  Aws::String m_jobRunId;
594  bool m_jobRunIdHasBeenSet;
595 
597  bool m_argumentsHasBeenSet;
598 
599  int m_timeout;
600  bool m_timeoutHasBeenSet;
601 
602  double m_maxCapacity;
603  bool m_maxCapacityHasBeenSet;
604 
605  Aws::String m_securityConfiguration;
606  bool m_securityConfigurationHasBeenSet;
607 
608  NotificationProperty m_notificationProperty;
609  bool m_notificationPropertyHasBeenSet;
610 
611  WorkerType m_workerType;
612  bool m_workerTypeHasBeenSet;
613 
614  int m_numberOfWorkers;
615  bool m_numberOfWorkersHasBeenSet;
616  };
617 
618 } // namespace Model
619 } // namespace Glue
620 } // namespace Aws
Aws::Glue::Model::StartJobRunRequest::SetJobRunId
void SetJobRunId(const char *value)
Definition: StartJobRunRequest.h:104
Aws::Glue::Model::StartJobRunRequest::WithJobName
StartJobRunRequest & WithJobName(const Aws::String &value)
Definition: StartJobRunRequest.h:68
Aws::Glue::Model::StartJobRunRequest::SetArguments
void SetArguments(const Aws::Map< Aws::String, Aws::String > &value)
Definition: StartJobRunRequest.h:162
Aws::Glue::Model::StartJobRunRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Glue::Model::StartJobRunRequest::SetSecurityConfiguration
void SetSecurityConfiguration(const Aws::String &value)
Definition: StartJobRunRequest.h:423
Aws::Glue::Model::StartJobRunRequest::AddArguments
StartJobRunRequest & AddArguments(const Aws::String &key, Aws::String &&value)
Definition: StartJobRunRequest.h:246
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Glue::Model::StartJobRunRequest::TimeoutHasBeenSet
bool TimeoutHasBeenSet() const
Definition: StartJobRunRequest.h:319
Aws::Glue::Model::WorkerType
WorkerType
Definition: WorkerType.h:17
NotificationProperty.h
Glue_EXPORTS.h
Aws::Glue::Model::StartJobRunRequest::AddArguments
StartJobRunRequest & AddArguments(Aws::String &&key, Aws::String &&value)
Definition: StartJobRunRequest.h:260
Aws::Glue::Model::StartJobRunRequest::AddArguments
StartJobRunRequest & AddArguments(const char *key, const char *value)
Definition: StartJobRunRequest.h:302
Aws::Glue::Model::StartJobRunRequest::WithTimeout
StartJobRunRequest & WithTimeout(int value)
Definition: StartJobRunRequest.h:335
Aws::Glue::Model::StartJobRunRequest::SetMaxCapacity
void SetMaxCapacity(double value)
Definition: StartJobRunRequest.h:387
Aws::Glue::Model::StartJobRunRequest::WithJobRunId
StartJobRunRequest & WithJobRunId(const Aws::String &value)
Definition: StartJobRunRequest.h:109
Aws::Glue::Model::StartJobRunRequest::WithArguments
StartJobRunRequest & WithArguments(Aws::Map< Aws::String, Aws::String > &&value)
Definition: StartJobRunRequest.h:204
Aws::Glue::Model::StartJobRunRequest::WithNumberOfWorkers
StartJobRunRequest & WithNumberOfWorkers(int value)
Definition: StartJobRunRequest.h:586
Aws::Glue::Model::StartJobRunRequest::SetJobName
void SetJobName(Aws::String &&value)
Definition: StartJobRunRequest.h:58
Aws::Glue::Model::StartJobRunRequest::GetMaxCapacity
double GetMaxCapacity() const
Definition: StartJobRunRequest.h:353
Aws::Glue::Model::StartJobRunRequest::WithJobName
StartJobRunRequest & WithJobName(Aws::String &&value)
Definition: StartJobRunRequest.h:73
Aws::Glue::Model::StartJobRunRequest::WithNotificationProperty
StartJobRunRequest & WithNotificationProperty(NotificationProperty &&value)
Definition: StartJobRunRequest.h:484
Aws::Glue::Model::StartJobRunRequest::AddArguments
StartJobRunRequest & AddArguments(Aws::String &&key, const Aws::String &value)
Definition: StartJobRunRequest.h:232
Aws::Glue::Model::StartJobRunRequest::WithNotificationProperty
StartJobRunRequest & WithNotificationProperty(const NotificationProperty &value)
Definition: StartJobRunRequest.h:479
Aws::Glue::Model::NotificationProperty
Definition: NotificationProperty.h:31
Aws::Glue::Model::StartJobRunRequest::WorkerTypeHasBeenSet
bool WorkerTypeHasBeenSet() const
Definition: StartJobRunRequest.h:509
Aws::Glue::Model::StartJobRunRequest::SetNotificationProperty
void SetNotificationProperty(NotificationProperty &&value)
Definition: StartJobRunRequest.h:474
Aws::Glue::Model::StartJobRunRequest::WithSecurityConfiguration
StartJobRunRequest & WithSecurityConfiguration(Aws::String &&value)
Definition: StartJobRunRequest.h:447
Aws::Glue::Model::StartJobRunRequest::AddArguments
StartJobRunRequest & AddArguments(Aws::String &&key, const char *value)
Definition: StartJobRunRequest.h:288
AWS_GLUE_API
#define AWS_GLUE_API
Definition: Glue_EXPORTS.h:28
Aws::Glue::Model::StartJobRunRequest::SecurityConfigurationHasBeenSet
bool SecurityConfigurationHasBeenSet() const
Definition: StartJobRunRequest.h:417
Aws::Glue::Model::StartJobRunRequest::SetWorkerType
void SetWorkerType(const WorkerType &value)
Definition: StartJobRunRequest.h:521
Aws::Glue::Model::StartJobRunRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartJobRunRequest.h:33
Aws::Glue::Model::StartJobRunRequest::SetNotificationProperty
void SetNotificationProperty(const NotificationProperty &value)
Definition: StartJobRunRequest.h:469
Aws::Glue::Model::StartJobRunRequest::SetJobRunId
void SetJobRunId(Aws::String &&value)
Definition: StartJobRunRequest.h:99
Aws::Glue::Model::StartJobRunRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Glue::Model::StartJobRunRequest::GetSecurityConfiguration
const Aws::String & GetSecurityConfiguration() const
Definition: StartJobRunRequest.h:411
Aws::Glue::Model::StartJobRunRequest::GetNumberOfWorkers
int GetNumberOfWorkers() const
Definition: StartJobRunRequest.h:565
AWSString.h
Aws::Glue::Model::StartJobRunRequest::WithJobName
StartJobRunRequest & WithJobName(const char *value)
Definition: StartJobRunRequest.h:78
Aws::Glue::Model::StartJobRunRequest::AddArguments
StartJobRunRequest & AddArguments(const char *key, Aws::String &&value)
Definition: StartJobRunRequest.h:274
Aws::Glue::Model::StartJobRunRequest
Definition: StartJobRunRequest.h:25
Aws::Glue::Model::StartJobRunRequest::GetJobRunId
const Aws::String & GetJobRunId() const
Definition: StartJobRunRequest.h:84
Aws::Glue::Model::StartJobRunRequest::SetJobName
void SetJobName(const Aws::String &value)
Definition: StartJobRunRequest.h:53
Aws::Glue::Model::StartJobRunRequest::AddArguments
StartJobRunRequest & AddArguments(const Aws::String &key, const Aws::String &value)
Definition: StartJobRunRequest.h:218
Aws::Glue::Model::StartJobRunRequest::WithSecurityConfiguration
StartJobRunRequest & WithSecurityConfiguration(const char *value)
Definition: StartJobRunRequest.h:453
Aws::Glue::Model::StartJobRunRequest::SetSecurityConfiguration
void SetSecurityConfiguration(const char *value)
Definition: StartJobRunRequest.h:435
Aws::Glue::Model::StartJobRunRequest::SetNumberOfWorkers
void SetNumberOfWorkers(int value)
Definition: StartJobRunRequest.h:579
Aws::Glue::GlueRequest
Definition: GlueRequest.h:17
Aws::Glue::Model::StartJobRunRequest::GetJobName
const Aws::String & GetJobName() const
Definition: StartJobRunRequest.h:43
Aws::Glue::Model::StartJobRunRequest::GetWorkerType
const WorkerType & GetWorkerType() const
Definition: StartJobRunRequest.h:497
Aws::Glue::Model::StartJobRunRequest::WithArguments
StartJobRunRequest & WithArguments(const Aws::Map< Aws::String, Aws::String > &value)
Definition: StartJobRunRequest.h:190
Aws::Glue::Model::StartJobRunRequest::WithWorkerType
StartJobRunRequest & WithWorkerType(const WorkerType &value)
Definition: StartJobRunRequest.h:545
Aws
Definition: AccessManagementClient.h:15
Aws::Glue::Model::StartJobRunRequest::WithJobRunId
StartJobRunRequest & WithJobRunId(const char *value)
Definition: StartJobRunRequest.h:119
Aws::Glue::Model::StartJobRunRequest::GetTimeout
int GetTimeout() const
Definition: StartJobRunRequest.h:311
Aws::Glue::Model::StartJobRunRequest::MaxCapacityHasBeenSet
bool MaxCapacityHasBeenSet() const
Definition: StartJobRunRequest.h:370
Aws::Glue::Model::StartJobRunRequest::WithMaxCapacity
StartJobRunRequest & WithMaxCapacity(double value)
Definition: StartJobRunRequest.h:404
Aws::Glue::Model::StartJobRunRequest::WithJobRunId
StartJobRunRequest & WithJobRunId(Aws::String &&value)
Definition: StartJobRunRequest.h:114
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glue::Model::StartJobRunRequest::ArgumentsHasBeenSet
bool ArgumentsHasBeenSet() const
Definition: StartJobRunRequest.h:148
Aws::Glue::Model::StartJobRunRequest::GetArguments
const Aws::Map< Aws::String, Aws::String > & GetArguments() const
Definition: StartJobRunRequest.h:134
Aws::Glue::Model::StartJobRunRequest::JobNameHasBeenSet
bool JobNameHasBeenSet() const
Definition: StartJobRunRequest.h:48
Aws::Glue::Model::StartJobRunRequest::StartJobRunRequest
StartJobRunRequest()
Aws::Glue::Model::StartJobRunRequest::SetWorkerType
void SetWorkerType(WorkerType &&value)
Definition: StartJobRunRequest.h:533
Aws::Glue::Model::StartJobRunRequest::SetArguments
void SetArguments(Aws::Map< Aws::String, Aws::String > &&value)
Definition: StartJobRunRequest.h:176
Aws::Glue::Model::StartJobRunRequest::SetSecurityConfiguration
void SetSecurityConfiguration(Aws::String &&value)
Definition: StartJobRunRequest.h:429
Aws::Glue::Model::StartJobRunRequest::GetNotificationProperty
const NotificationProperty & GetNotificationProperty() const
Definition: StartJobRunRequest.h:459
Aws::Glue::Model::StartJobRunRequest::NumberOfWorkersHasBeenSet
bool NumberOfWorkersHasBeenSet() const
Definition: StartJobRunRequest.h:572
Aws::Glue::Model::StartJobRunRequest::WithWorkerType
StartJobRunRequest & WithWorkerType(WorkerType &&value)
Definition: StartJobRunRequest.h:557
Aws::Glue::Model::StartJobRunRequest::WithSecurityConfiguration
StartJobRunRequest & WithSecurityConfiguration(const Aws::String &value)
Definition: StartJobRunRequest.h:441
Aws::Glue::Model::StartJobRunRequest::SetTimeout
void SetTimeout(int value)
Definition: StartJobRunRequest.h:327
Aws::Glue::Model::StartJobRunRequest::NotificationPropertyHasBeenSet
bool NotificationPropertyHasBeenSet() const
Definition: StartJobRunRequest.h:464
AWSMap.h
Aws::Glue::Model::StartJobRunRequest::SetJobRunId
void SetJobRunId(const Aws::String &value)
Definition: StartJobRunRequest.h:94
GlueRequest.h
Aws::Glue::Model::StartJobRunRequest::JobRunIdHasBeenSet
bool JobRunIdHasBeenSet() const
Definition: StartJobRunRequest.h:89
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
WorkerType.h
Aws::Glue::Model::StartJobRunRequest::SetJobName
void SetJobName(const char *value)
Definition: StartJobRunRequest.h:63