AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename JobNameT = Aws::String>
48 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
49 template<typename JobNameT = Aws::String>
50 StartJobRunRequest& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
52
54
59 inline bool GetJobRunQueuingEnabled() const { return m_jobRunQueuingEnabled; }
60 inline bool JobRunQueuingEnabledHasBeenSet() const { return m_jobRunQueuingEnabledHasBeenSet; }
61 inline void SetJobRunQueuingEnabled(bool value) { m_jobRunQueuingEnabledHasBeenSet = true; m_jobRunQueuingEnabled = value; }
62 inline StartJobRunRequest& WithJobRunQueuingEnabled(bool value) { SetJobRunQueuingEnabled(value); return *this;}
64
66
69 inline const Aws::String& GetJobRunId() const { return m_jobRunId; }
70 inline bool JobRunIdHasBeenSet() const { return m_jobRunIdHasBeenSet; }
71 template<typename JobRunIdT = Aws::String>
72 void SetJobRunId(JobRunIdT&& value) { m_jobRunIdHasBeenSet = true; m_jobRunId = std::forward<JobRunIdT>(value); }
73 template<typename JobRunIdT = Aws::String>
74 StartJobRunRequest& WithJobRunId(JobRunIdT&& value) { SetJobRunId(std::forward<JobRunIdT>(value)); return *this;}
76
78
98 inline const Aws::Map<Aws::String, Aws::String>& GetArguments() const { return m_arguments; }
99 inline bool ArgumentsHasBeenSet() const { return m_argumentsHasBeenSet; }
100 template<typename ArgumentsT = Aws::Map<Aws::String, Aws::String>>
101 void SetArguments(ArgumentsT&& value) { m_argumentsHasBeenSet = true; m_arguments = std::forward<ArgumentsT>(value); }
102 template<typename ArgumentsT = Aws::Map<Aws::String, Aws::String>>
103 StartJobRunRequest& WithArguments(ArgumentsT&& value) { SetArguments(std::forward<ArgumentsT>(value)); return *this;}
104 template<typename ArgumentsKeyT = Aws::String, typename ArgumentsValueT = Aws::String>
105 StartJobRunRequest& AddArguments(ArgumentsKeyT&& key, ArgumentsValueT&& value) {
106 m_argumentsHasBeenSet = true; m_arguments.emplace(std::forward<ArgumentsKeyT>(key), std::forward<ArgumentsValueT>(value)); return *this;
107 }
109
111
124 inline int GetTimeout() const { return m_timeout; }
125 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
126 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
127 inline StartJobRunRequest& WithTimeout(int value) { SetTimeout(value); return *this;}
129
131
151 inline double GetMaxCapacity() const { return m_maxCapacity; }
152 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
153 inline void SetMaxCapacity(double value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
154 inline StartJobRunRequest& WithMaxCapacity(double value) { SetMaxCapacity(value); return *this;}
156
158
162 inline const Aws::String& GetSecurityConfiguration() const { return m_securityConfiguration; }
163 inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
164 template<typename SecurityConfigurationT = Aws::String>
165 void SetSecurityConfiguration(SecurityConfigurationT&& value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration = std::forward<SecurityConfigurationT>(value); }
166 template<typename SecurityConfigurationT = Aws::String>
167 StartJobRunRequest& WithSecurityConfiguration(SecurityConfigurationT&& value) { SetSecurityConfiguration(std::forward<SecurityConfigurationT>(value)); return *this;}
169
171
174 inline const NotificationProperty& GetNotificationProperty() const { return m_notificationProperty; }
175 inline bool NotificationPropertyHasBeenSet() const { return m_notificationPropertyHasBeenSet; }
176 template<typename NotificationPropertyT = NotificationProperty>
177 void SetNotificationProperty(NotificationPropertyT&& value) { m_notificationPropertyHasBeenSet = true; m_notificationProperty = std::forward<NotificationPropertyT>(value); }
178 template<typename NotificationPropertyT = NotificationProperty>
179 StartJobRunRequest& WithNotificationProperty(NotificationPropertyT&& value) { SetNotificationProperty(std::forward<NotificationPropertyT>(value)); return *this;}
181
183
216 inline WorkerType GetWorkerType() const { return m_workerType; }
217 inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
218 inline void SetWorkerType(WorkerType value) { m_workerTypeHasBeenSet = true; m_workerType = value; }
219 inline StartJobRunRequest& WithWorkerType(WorkerType value) { SetWorkerType(value); return *this;}
221
223
227 inline int GetNumberOfWorkers() const { return m_numberOfWorkers; }
228 inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; }
229 inline void SetNumberOfWorkers(int value) { m_numberOfWorkersHasBeenSet = true; m_numberOfWorkers = value; }
230 inline StartJobRunRequest& WithNumberOfWorkers(int value) { SetNumberOfWorkers(value); return *this;}
232
234
243 inline ExecutionClass GetExecutionClass() const { return m_executionClass; }
244 inline bool ExecutionClassHasBeenSet() const { return m_executionClassHasBeenSet; }
245 inline void SetExecutionClass(ExecutionClass value) { m_executionClassHasBeenSet = true; m_executionClass = value; }
248 private:
249
250 Aws::String m_jobName;
251 bool m_jobNameHasBeenSet = false;
252
253 bool m_jobRunQueuingEnabled{false};
254 bool m_jobRunQueuingEnabledHasBeenSet = false;
255
256 Aws::String m_jobRunId;
257 bool m_jobRunIdHasBeenSet = false;
258
260 bool m_argumentsHasBeenSet = false;
261
262 int m_timeout{0};
263 bool m_timeoutHasBeenSet = false;
264
265 double m_maxCapacity{0.0};
266 bool m_maxCapacityHasBeenSet = false;
267
268 Aws::String m_securityConfiguration;
269 bool m_securityConfigurationHasBeenSet = false;
270
271 NotificationProperty m_notificationProperty;
272 bool m_notificationPropertyHasBeenSet = false;
273
274 WorkerType m_workerType{WorkerType::NOT_SET};
275 bool m_workerTypeHasBeenSet = false;
276
277 int m_numberOfWorkers{0};
278 bool m_numberOfWorkersHasBeenSet = false;
279
280 ExecutionClass m_executionClass{ExecutionClass::NOT_SET};
281 bool m_executionClassHasBeenSet = false;
282 };
283
284} // namespace Model
285} // namespace Glue
286} // namespace Aws
void SetNotificationProperty(NotificationPropertyT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
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)
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
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