AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
StartJobRunRequest.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/ExecutionClass.h>
12#include <aws/glue/model/NotificationProperty.h>
13#include <aws/glue/model/WorkerType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Glue {
19namespace Model {
20
24 public:
25 AWS_GLUE_API StartJobRunRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StartJobRun"; }
32
33 AWS_GLUE_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetJobName() const { return m_jobName; }
42 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
43 template <typename JobNameT = Aws::String>
44 void SetJobName(JobNameT&& value) {
45 m_jobNameHasBeenSet = true;
46 m_jobName = std::forward<JobNameT>(value);
47 }
48 template <typename JobNameT = Aws::String>
49 StartJobRunRequest& WithJobName(JobNameT&& value) {
50 SetJobName(std::forward<JobNameT>(value));
51 return *this;
52 }
54
56
61 inline bool GetJobRunQueuingEnabled() const { return m_jobRunQueuingEnabled; }
62 inline bool JobRunQueuingEnabledHasBeenSet() const { return m_jobRunQueuingEnabledHasBeenSet; }
63 inline void SetJobRunQueuingEnabled(bool value) {
64 m_jobRunQueuingEnabledHasBeenSet = true;
65 m_jobRunQueuingEnabled = value;
66 }
69 return *this;
70 }
72
74
77 inline const Aws::String& GetJobRunId() const { return m_jobRunId; }
78 inline bool JobRunIdHasBeenSet() const { return m_jobRunIdHasBeenSet; }
79 template <typename JobRunIdT = Aws::String>
80 void SetJobRunId(JobRunIdT&& value) {
81 m_jobRunIdHasBeenSet = true;
82 m_jobRunId = std::forward<JobRunIdT>(value);
83 }
84 template <typename JobRunIdT = Aws::String>
85 StartJobRunRequest& WithJobRunId(JobRunIdT&& value) {
86 SetJobRunId(std::forward<JobRunIdT>(value));
87 return *this;
88 }
90
92
112 inline const Aws::Map<Aws::String, Aws::String>& GetArguments() const { return m_arguments; }
113 inline bool ArgumentsHasBeenSet() const { return m_argumentsHasBeenSet; }
114 template <typename ArgumentsT = Aws::Map<Aws::String, Aws::String>>
115 void SetArguments(ArgumentsT&& value) {
116 m_argumentsHasBeenSet = true;
117 m_arguments = std::forward<ArgumentsT>(value);
118 }
119 template <typename ArgumentsT = Aws::Map<Aws::String, Aws::String>>
120 StartJobRunRequest& WithArguments(ArgumentsT&& value) {
121 SetArguments(std::forward<ArgumentsT>(value));
122 return *this;
123 }
124 template <typename ArgumentsKeyT = Aws::String, typename ArgumentsValueT = Aws::String>
125 StartJobRunRequest& AddArguments(ArgumentsKeyT&& key, ArgumentsValueT&& value) {
126 m_argumentsHasBeenSet = true;
127 m_arguments.emplace(std::forward<ArgumentsKeyT>(key), std::forward<ArgumentsValueT>(value));
128 return *this;
129 }
131
133
146 inline int GetTimeout() const { return m_timeout; }
147 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
148 inline void SetTimeout(int value) {
149 m_timeoutHasBeenSet = true;
150 m_timeout = value;
151 }
152 inline StartJobRunRequest& WithTimeout(int value) {
153 SetTimeout(value);
154 return *this;
155 }
157
159
179 inline double GetMaxCapacity() const { return m_maxCapacity; }
180 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
181 inline void SetMaxCapacity(double value) {
182 m_maxCapacityHasBeenSet = true;
183 m_maxCapacity = value;
184 }
185 inline StartJobRunRequest& WithMaxCapacity(double value) {
186 SetMaxCapacity(value);
187 return *this;
188 }
190
192
196 inline const Aws::String& GetSecurityConfiguration() const { return m_securityConfiguration; }
197 inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
198 template <typename SecurityConfigurationT = Aws::String>
199 void SetSecurityConfiguration(SecurityConfigurationT&& value) {
200 m_securityConfigurationHasBeenSet = true;
201 m_securityConfiguration = std::forward<SecurityConfigurationT>(value);
202 }
203 template <typename SecurityConfigurationT = Aws::String>
204 StartJobRunRequest& WithSecurityConfiguration(SecurityConfigurationT&& value) {
205 SetSecurityConfiguration(std::forward<SecurityConfigurationT>(value));
206 return *this;
207 }
209
211
214 inline const NotificationProperty& GetNotificationProperty() const { return m_notificationProperty; }
215 inline bool NotificationPropertyHasBeenSet() const { return m_notificationPropertyHasBeenSet; }
216 template <typename NotificationPropertyT = NotificationProperty>
217 void SetNotificationProperty(NotificationPropertyT&& value) {
218 m_notificationPropertyHasBeenSet = true;
219 m_notificationProperty = std::forward<NotificationPropertyT>(value);
220 }
221 template <typename NotificationPropertyT = NotificationProperty>
222 StartJobRunRequest& WithNotificationProperty(NotificationPropertyT&& value) {
223 SetNotificationProperty(std::forward<NotificationPropertyT>(value));
224 return *this;
225 }
227
229
262 inline WorkerType GetWorkerType() const { return m_workerType; }
263 inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
264 inline void SetWorkerType(WorkerType value) {
265 m_workerTypeHasBeenSet = true;
266 m_workerType = value;
267 }
269 SetWorkerType(value);
270 return *this;
271 }
273
275
279 inline int GetNumberOfWorkers() const { return m_numberOfWorkers; }
280 inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; }
281 inline void SetNumberOfWorkers(int value) {
282 m_numberOfWorkersHasBeenSet = true;
283 m_numberOfWorkers = value;
284 }
286 SetNumberOfWorkers(value);
287 return *this;
288 }
290
292
301 inline ExecutionClass GetExecutionClass() const { return m_executionClass; }
302 inline bool ExecutionClassHasBeenSet() const { return m_executionClassHasBeenSet; }
304 m_executionClassHasBeenSet = true;
305 m_executionClass = value;
306 }
308 SetExecutionClass(value);
309 return *this;
310 }
312
314
319 inline const Aws::String& GetExecutionRoleSessionPolicy() const { return m_executionRoleSessionPolicy; }
320 inline bool ExecutionRoleSessionPolicyHasBeenSet() const { return m_executionRoleSessionPolicyHasBeenSet; }
321 template <typename ExecutionRoleSessionPolicyT = Aws::String>
322 void SetExecutionRoleSessionPolicy(ExecutionRoleSessionPolicyT&& value) {
323 m_executionRoleSessionPolicyHasBeenSet = true;
324 m_executionRoleSessionPolicy = std::forward<ExecutionRoleSessionPolicyT>(value);
325 }
326 template <typename ExecutionRoleSessionPolicyT = Aws::String>
327 StartJobRunRequest& WithExecutionRoleSessionPolicy(ExecutionRoleSessionPolicyT&& value) {
328 SetExecutionRoleSessionPolicy(std::forward<ExecutionRoleSessionPolicyT>(value));
329 return *this;
330 }
332 private:
333 Aws::String m_jobName;
334 bool m_jobNameHasBeenSet = false;
335
336 bool m_jobRunQueuingEnabled{false};
337 bool m_jobRunQueuingEnabledHasBeenSet = false;
338
339 Aws::String m_jobRunId;
340 bool m_jobRunIdHasBeenSet = false;
341
343 bool m_argumentsHasBeenSet = false;
344
345 int m_timeout{0};
346 bool m_timeoutHasBeenSet = false;
347
348 double m_maxCapacity{0.0};
349 bool m_maxCapacityHasBeenSet = false;
350
351 Aws::String m_securityConfiguration;
352 bool m_securityConfigurationHasBeenSet = false;
353
354 NotificationProperty m_notificationProperty;
355 bool m_notificationPropertyHasBeenSet = false;
356
357 WorkerType m_workerType{WorkerType::NOT_SET};
358 bool m_workerTypeHasBeenSet = false;
359
360 int m_numberOfWorkers{0};
361 bool m_numberOfWorkersHasBeenSet = false;
362
363 ExecutionClass m_executionClass{ExecutionClass::NOT_SET};
364 bool m_executionClassHasBeenSet = false;
365
366 Aws::String m_executionRoleSessionPolicy;
367 bool m_executionRoleSessionPolicyHasBeenSet = false;
368};
369
370} // namespace Model
371} // namespace Glue
372} // namespace Aws
void SetNotificationProperty(NotificationPropertyT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
const Aws::String & GetExecutionRoleSessionPolicy() const
const Aws::String & GetSecurityConfiguration() const
StartJobRunRequest & WithJobRunId(JobRunIdT &&value)
void SetSecurityConfiguration(SecurityConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetArguments() const
StartJobRunRequest & WithMaxCapacity(double value)
StartJobRunRequest & WithJobRunQueuingEnabled(bool value)
StartJobRunRequest & WithSecurityConfiguration(SecurityConfigurationT &&value)
const NotificationProperty & GetNotificationProperty() const
StartJobRunRequest & AddArguments(ArgumentsKeyT &&key, ArgumentsValueT &&value)
StartJobRunRequest & WithExecutionRoleSessionPolicy(ExecutionRoleSessionPolicyT &&value)
void SetExecutionClass(ExecutionClass value)
StartJobRunRequest & WithWorkerType(WorkerType value)
StartJobRunRequest & WithNotificationProperty(NotificationPropertyT &&value)
const Aws::String & GetJobName() const
StartJobRunRequest & WithExecutionClass(ExecutionClass value)
StartJobRunRequest & WithJobName(JobNameT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
StartJobRunRequest & WithTimeout(int value)
AWS_GLUE_API StartJobRunRequest()=default
void SetExecutionRoleSessionPolicy(ExecutionRoleSessionPolicyT &&value)
const Aws::String & GetJobRunId() const
StartJobRunRequest & WithArguments(ArgumentsT &&value)
StartJobRunRequest & WithNumberOfWorkers(int 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