AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartJobRunRequest.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/core/utils/memory/stl/AWSMap.h>
11#include <aws/glue/model/NotificationProperty.h>
12#include <aws/glue/model/WorkerType.h>
13#include <aws/glue/model/ExecutionClass.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Glue
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_GLUE_API StartJobRunRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "StartJobRun"; }
35
36 AWS_GLUE_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetJobName() const{ return m_jobName; }
46 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
47 inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
48 inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
49 inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
50 inline StartJobRunRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
51 inline StartJobRunRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
52 inline StartJobRunRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
54
56
61 inline bool GetJobRunQueuingEnabled() const{ return m_jobRunQueuingEnabled; }
62 inline bool JobRunQueuingEnabledHasBeenSet() const { return m_jobRunQueuingEnabledHasBeenSet; }
63 inline void SetJobRunQueuingEnabled(bool value) { m_jobRunQueuingEnabledHasBeenSet = true; m_jobRunQueuingEnabled = value; }
64 inline StartJobRunRequest& WithJobRunQueuingEnabled(bool value) { SetJobRunQueuingEnabled(value); return *this;}
66
68
71 inline const Aws::String& GetJobRunId() const{ return m_jobRunId; }
72 inline bool JobRunIdHasBeenSet() const { return m_jobRunIdHasBeenSet; }
73 inline void SetJobRunId(const Aws::String& value) { m_jobRunIdHasBeenSet = true; m_jobRunId = value; }
74 inline void SetJobRunId(Aws::String&& value) { m_jobRunIdHasBeenSet = true; m_jobRunId = std::move(value); }
75 inline void SetJobRunId(const char* value) { m_jobRunIdHasBeenSet = true; m_jobRunId.assign(value); }
76 inline StartJobRunRequest& WithJobRunId(const Aws::String& value) { SetJobRunId(value); return *this;}
77 inline StartJobRunRequest& WithJobRunId(Aws::String&& value) { SetJobRunId(std::move(value)); return *this;}
78 inline StartJobRunRequest& WithJobRunId(const char* value) { SetJobRunId(value); return *this;}
80
82
102 inline const Aws::Map<Aws::String, Aws::String>& GetArguments() const{ return m_arguments; }
103 inline bool ArgumentsHasBeenSet() const { return m_argumentsHasBeenSet; }
104 inline void SetArguments(const Aws::Map<Aws::String, Aws::String>& value) { m_argumentsHasBeenSet = true; m_arguments = value; }
105 inline void SetArguments(Aws::Map<Aws::String, Aws::String>&& value) { m_argumentsHasBeenSet = true; m_arguments = std::move(value); }
107 inline StartJobRunRequest& WithArguments(Aws::Map<Aws::String, Aws::String>&& value) { SetArguments(std::move(value)); return *this;}
108 inline StartJobRunRequest& AddArguments(const Aws::String& key, const Aws::String& value) { m_argumentsHasBeenSet = true; m_arguments.emplace(key, value); return *this; }
109 inline StartJobRunRequest& AddArguments(Aws::String&& key, const Aws::String& value) { m_argumentsHasBeenSet = true; m_arguments.emplace(std::move(key), value); return *this; }
110 inline StartJobRunRequest& AddArguments(const Aws::String& key, Aws::String&& value) { m_argumentsHasBeenSet = true; m_arguments.emplace(key, std::move(value)); return *this; }
111 inline StartJobRunRequest& AddArguments(Aws::String&& key, Aws::String&& value) { m_argumentsHasBeenSet = true; m_arguments.emplace(std::move(key), std::move(value)); return *this; }
112 inline StartJobRunRequest& AddArguments(const char* key, Aws::String&& value) { m_argumentsHasBeenSet = true; m_arguments.emplace(key, std::move(value)); return *this; }
113 inline StartJobRunRequest& AddArguments(Aws::String&& key, const char* value) { m_argumentsHasBeenSet = true; m_arguments.emplace(std::move(key), value); return *this; }
114 inline StartJobRunRequest& AddArguments(const char* key, const char* value) { m_argumentsHasBeenSet = true; m_arguments.emplace(key, value); return *this; }
116
118
128 inline int GetTimeout() const{ return m_timeout; }
129 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
130 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
131 inline StartJobRunRequest& WithTimeout(int value) { SetTimeout(value); return *this;}
133
135
155 inline double GetMaxCapacity() const{ return m_maxCapacity; }
156 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
157 inline void SetMaxCapacity(double value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
158 inline StartJobRunRequest& WithMaxCapacity(double value) { SetMaxCapacity(value); return *this;}
160
162
166 inline const Aws::String& GetSecurityConfiguration() const{ return m_securityConfiguration; }
167 inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
168 inline void SetSecurityConfiguration(const Aws::String& value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration = value; }
169 inline void SetSecurityConfiguration(Aws::String&& value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration = std::move(value); }
170 inline void SetSecurityConfiguration(const char* value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration.assign(value); }
172 inline StartJobRunRequest& WithSecurityConfiguration(Aws::String&& value) { SetSecurityConfiguration(std::move(value)); return *this;}
173 inline StartJobRunRequest& WithSecurityConfiguration(const char* value) { SetSecurityConfiguration(value); return *this;}
175
177
180 inline const NotificationProperty& GetNotificationProperty() const{ return m_notificationProperty; }
181 inline bool NotificationPropertyHasBeenSet() const { return m_notificationPropertyHasBeenSet; }
182 inline void SetNotificationProperty(const NotificationProperty& value) { m_notificationPropertyHasBeenSet = true; m_notificationProperty = value; }
183 inline void SetNotificationProperty(NotificationProperty&& value) { m_notificationPropertyHasBeenSet = true; m_notificationProperty = std::move(value); }
187
189
224 inline const WorkerType& GetWorkerType() const{ return m_workerType; }
225 inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
226 inline void SetWorkerType(const WorkerType& value) { m_workerTypeHasBeenSet = true; m_workerType = value; }
227 inline void SetWorkerType(WorkerType&& value) { m_workerTypeHasBeenSet = true; m_workerType = std::move(value); }
228 inline StartJobRunRequest& WithWorkerType(const WorkerType& value) { SetWorkerType(value); return *this;}
229 inline StartJobRunRequest& WithWorkerType(WorkerType&& value) { SetWorkerType(std::move(value)); return *this;}
231
233
237 inline int GetNumberOfWorkers() const{ return m_numberOfWorkers; }
238 inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; }
239 inline void SetNumberOfWorkers(int value) { m_numberOfWorkersHasBeenSet = true; m_numberOfWorkers = value; }
240 inline StartJobRunRequest& WithNumberOfWorkers(int value) { SetNumberOfWorkers(value); return *this;}
242
244
253 inline const ExecutionClass& GetExecutionClass() const{ return m_executionClass; }
254 inline bool ExecutionClassHasBeenSet() const { return m_executionClassHasBeenSet; }
255 inline void SetExecutionClass(const ExecutionClass& value) { m_executionClassHasBeenSet = true; m_executionClass = value; }
256 inline void SetExecutionClass(ExecutionClass&& value) { m_executionClassHasBeenSet = true; m_executionClass = std::move(value); }
257 inline StartJobRunRequest& WithExecutionClass(const ExecutionClass& value) { SetExecutionClass(value); return *this;}
258 inline StartJobRunRequest& WithExecutionClass(ExecutionClass&& value) { SetExecutionClass(std::move(value)); return *this;}
260 private:
261
262 Aws::String m_jobName;
263 bool m_jobNameHasBeenSet = false;
264
265 bool m_jobRunQueuingEnabled;
266 bool m_jobRunQueuingEnabledHasBeenSet = false;
267
268 Aws::String m_jobRunId;
269 bool m_jobRunIdHasBeenSet = false;
270
272 bool m_argumentsHasBeenSet = false;
273
274 int m_timeout;
275 bool m_timeoutHasBeenSet = false;
276
277 double m_maxCapacity;
278 bool m_maxCapacityHasBeenSet = false;
279
280 Aws::String m_securityConfiguration;
281 bool m_securityConfigurationHasBeenSet = false;
282
283 NotificationProperty m_notificationProperty;
284 bool m_notificationPropertyHasBeenSet = false;
285
286 WorkerType m_workerType;
287 bool m_workerTypeHasBeenSet = false;
288
289 int m_numberOfWorkers;
290 bool m_numberOfWorkersHasBeenSet = false;
291
292 ExecutionClass m_executionClass;
293 bool m_executionClassHasBeenSet = false;
294 };
295
296} // namespace Model
297} // namespace Glue
298} // namespace Aws
AWS_GLUE_API Aws::String SerializePayload() const override
void SetExecutionClass(const ExecutionClass &value)
StartJobRunRequest & AddArguments(Aws::String &&key, Aws::String &&value)
StartJobRunRequest & AddArguments(const char *key, Aws::String &&value)
const Aws::String & GetSecurityConfiguration() const
void SetWorkerType(const WorkerType &value)
const Aws::Map< Aws::String, Aws::String > & GetArguments() const
void SetExecutionClass(ExecutionClass &&value)
StartJobRunRequest & WithMaxCapacity(double value)
StartJobRunRequest & WithJobRunQueuingEnabled(bool value)
const NotificationProperty & GetNotificationProperty() const
StartJobRunRequest & WithSecurityConfiguration(const Aws::String &value)
void SetJobRunId(const Aws::String &value)
StartJobRunRequest & WithJobRunId(Aws::String &&value)
StartJobRunRequest & WithNotificationProperty(NotificationProperty &&value)
StartJobRunRequest & WithSecurityConfiguration(const char *value)
StartJobRunRequest & WithJobName(const char *value)
StartJobRunRequest & AddArguments(const char *key, const char *value)
StartJobRunRequest & AddArguments(const Aws::String &key, Aws::String &&value)
StartJobRunRequest & WithJobName(const Aws::String &value)
StartJobRunRequest & WithWorkerType(WorkerType &&value)
void SetNotificationProperty(NotificationProperty &&value)
void SetJobRunId(Aws::String &&value)
StartJobRunRequest & WithNotificationProperty(const NotificationProperty &value)
void SetSecurityConfiguration(Aws::String &&value)
void SetArguments(Aws::Map< Aws::String, Aws::String > &&value)
StartJobRunRequest & WithJobRunId(const Aws::String &value)
void SetJobName(const Aws::String &value)
void SetSecurityConfiguration(const char *value)
void SetNotificationProperty(const NotificationProperty &value)
StartJobRunRequest & WithExecutionClass(ExecutionClass &&value)
StartJobRunRequest & WithJobName(Aws::String &&value)
const Aws::String & GetJobName() const
StartJobRunRequest & AddArguments(Aws::String &&key, const Aws::String &value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartJobRunRequest & WithArguments(Aws::Map< Aws::String, Aws::String > &&value)
StartJobRunRequest & WithExecutionClass(const ExecutionClass &value)
const WorkerType & GetWorkerType() const
const ExecutionClass & GetExecutionClass() const
virtual const char * GetServiceRequestName() const override
StartJobRunRequest & WithJobRunId(const char *value)
StartJobRunRequest & WithTimeout(int value)
StartJobRunRequest & WithArguments(const Aws::Map< Aws::String, Aws::String > &value)
void SetSecurityConfiguration(const Aws::String &value)
StartJobRunRequest & WithWorkerType(const WorkerType &value)
StartJobRunRequest & AddArguments(const Aws::String &key, const Aws::String &value)
const Aws::String & GetJobRunId() const
StartJobRunRequest & WithSecurityConfiguration(Aws::String &&value)
StartJobRunRequest & WithNumberOfWorkers(int value)
void SetArguments(const Aws::Map< Aws::String, Aws::String > &value)
StartJobRunRequest & AddArguments(Aws::String &&key, const char *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