AWS SDK for C++

AWS SDK for C++ Version 1.11.809

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
147 inline int GetTimeout() const { return m_timeout; }
148 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
149 inline void SetTimeout(int value) {
150 m_timeoutHasBeenSet = true;
151 m_timeout = value;
152 }
153 inline StartJobRunRequest& WithTimeout(int value) {
154 SetTimeout(value);
155 return *this;
156 }
158
160
180 inline double GetMaxCapacity() const { return m_maxCapacity; }
181 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
182 inline void SetMaxCapacity(double value) {
183 m_maxCapacityHasBeenSet = true;
184 m_maxCapacity = value;
185 }
186 inline StartJobRunRequest& WithMaxCapacity(double value) {
187 SetMaxCapacity(value);
188 return *this;
189 }
191
193
197 inline const Aws::String& GetSecurityConfiguration() const { return m_securityConfiguration; }
198 inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
199 template <typename SecurityConfigurationT = Aws::String>
200 void SetSecurityConfiguration(SecurityConfigurationT&& value) {
201 m_securityConfigurationHasBeenSet = true;
202 m_securityConfiguration = std::forward<SecurityConfigurationT>(value);
203 }
204 template <typename SecurityConfigurationT = Aws::String>
205 StartJobRunRequest& WithSecurityConfiguration(SecurityConfigurationT&& value) {
206 SetSecurityConfiguration(std::forward<SecurityConfigurationT>(value));
207 return *this;
208 }
210
212
215 inline const NotificationProperty& GetNotificationProperty() const { return m_notificationProperty; }
216 inline bool NotificationPropertyHasBeenSet() const { return m_notificationPropertyHasBeenSet; }
217 template <typename NotificationPropertyT = NotificationProperty>
218 void SetNotificationProperty(NotificationPropertyT&& value) {
219 m_notificationPropertyHasBeenSet = true;
220 m_notificationProperty = std::forward<NotificationPropertyT>(value);
221 }
222 template <typename NotificationPropertyT = NotificationProperty>
223 StartJobRunRequest& WithNotificationProperty(NotificationPropertyT&& value) {
224 SetNotificationProperty(std::forward<NotificationPropertyT>(value));
225 return *this;
226 }
228
230
263 inline WorkerType GetWorkerType() const { return m_workerType; }
264 inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
265 inline void SetWorkerType(WorkerType value) {
266 m_workerTypeHasBeenSet = true;
267 m_workerType = value;
268 }
270 SetWorkerType(value);
271 return *this;
272 }
274
276
280 inline int GetNumberOfWorkers() const { return m_numberOfWorkers; }
281 inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; }
282 inline void SetNumberOfWorkers(int value) {
283 m_numberOfWorkersHasBeenSet = true;
284 m_numberOfWorkers = value;
285 }
287 SetNumberOfWorkers(value);
288 return *this;
289 }
291
293
302 inline ExecutionClass GetExecutionClass() const { return m_executionClass; }
303 inline bool ExecutionClassHasBeenSet() const { return m_executionClassHasBeenSet; }
305 m_executionClassHasBeenSet = true;
306 m_executionClass = value;
307 }
309 SetExecutionClass(value);
310 return *this;
311 }
313
315
320 inline const Aws::String& GetExecutionRoleSessionPolicy() const { return m_executionRoleSessionPolicy; }
321 inline bool ExecutionRoleSessionPolicyHasBeenSet() const { return m_executionRoleSessionPolicyHasBeenSet; }
322 template <typename ExecutionRoleSessionPolicyT = Aws::String>
323 void SetExecutionRoleSessionPolicy(ExecutionRoleSessionPolicyT&& value) {
324 m_executionRoleSessionPolicyHasBeenSet = true;
325 m_executionRoleSessionPolicy = std::forward<ExecutionRoleSessionPolicyT>(value);
326 }
327 template <typename ExecutionRoleSessionPolicyT = Aws::String>
328 StartJobRunRequest& WithExecutionRoleSessionPolicy(ExecutionRoleSessionPolicyT&& value) {
329 SetExecutionRoleSessionPolicy(std::forward<ExecutionRoleSessionPolicyT>(value));
330 return *this;
331 }
333 private:
334 Aws::String m_jobName;
335
336 bool m_jobRunQueuingEnabled{false};
337
338 Aws::String m_jobRunId;
339
341
342 int m_timeout{0};
343
344 double m_maxCapacity{0.0};
345
346 Aws::String m_securityConfiguration;
347
348 NotificationProperty m_notificationProperty;
349
350 WorkerType m_workerType{WorkerType::NOT_SET};
351
352 int m_numberOfWorkers{0};
353
354 ExecutionClass m_executionClass{ExecutionClass::NOT_SET};
355
356 Aws::String m_executionRoleSessionPolicy;
357 bool m_jobNameHasBeenSet = false;
358 bool m_jobRunQueuingEnabledHasBeenSet = false;
359 bool m_jobRunIdHasBeenSet = false;
360 bool m_argumentsHasBeenSet = false;
361 bool m_timeoutHasBeenSet = false;
362 bool m_maxCapacityHasBeenSet = false;
363 bool m_securityConfigurationHasBeenSet = false;
364 bool m_notificationPropertyHasBeenSet = false;
365 bool m_workerTypeHasBeenSet = false;
366 bool m_numberOfWorkersHasBeenSet = false;
367 bool m_executionClassHasBeenSet = false;
368 bool m_executionRoleSessionPolicyHasBeenSet = false;
369};
370
371} // namespace Model
372} // namespace Glue
373} // 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