AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RegisterJobDefinitionRequest.h
1
6#pragma once
7#include <aws/batch/BatchRequest.h>
8#include <aws/batch/Batch_EXPORTS.h>
9#include <aws/batch/model/ConsumableResourceProperties.h>
10#include <aws/batch/model/ContainerProperties.h>
11#include <aws/batch/model/EcsProperties.h>
12#include <aws/batch/model/EksProperties.h>
13#include <aws/batch/model/JobDefinitionType.h>
14#include <aws/batch/model/JobTimeout.h>
15#include <aws/batch/model/NodeProperties.h>
16#include <aws/batch/model/PlatformCapability.h>
17#include <aws/batch/model/RetryStrategy.h>
18#include <aws/core/utils/memory/stl/AWSMap.h>
19#include <aws/core/utils/memory/stl/AWSString.h>
20#include <aws/core/utils/memory/stl/AWSVector.h>
21
22#include <utility>
23
24namespace Aws {
25namespace Batch {
26namespace Model {
27
35 public:
36 AWS_BATCH_API RegisterJobDefinitionRequest() = default;
37
38 // Service request name is the Operation name which will send this request out,
39 // each operation should has unique request name, so that we can get operation's name from this request.
40 // Note: this is not true for response, multiple operations may have the same response name,
41 // so we can not get operation's name from response.
42 inline virtual const char* GetServiceRequestName() const override { return "RegisterJobDefinition"; }
43
44 AWS_BATCH_API Aws::String SerializePayload() const override;
45
47
52 inline const Aws::String& GetJobDefinitionName() const { return m_jobDefinitionName; }
53 inline bool JobDefinitionNameHasBeenSet() const { return m_jobDefinitionNameHasBeenSet; }
54 template <typename JobDefinitionNameT = Aws::String>
55 void SetJobDefinitionName(JobDefinitionNameT&& value) {
56 m_jobDefinitionNameHasBeenSet = true;
57 m_jobDefinitionName = std::forward<JobDefinitionNameT>(value);
58 }
59 template <typename JobDefinitionNameT = Aws::String>
61 SetJobDefinitionName(std::forward<JobDefinitionNameT>(value));
62 return *this;
63 }
65
67
79 inline JobDefinitionType GetType() const { return m_type; }
80 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
81 inline void SetType(JobDefinitionType value) {
82 m_typeHasBeenSet = true;
83 m_type = value;
84 }
86 SetType(value);
87 return *this;
88 }
90
92
98 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
99 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
100 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
101 void SetParameters(ParametersT&& value) {
102 m_parametersHasBeenSet = true;
103 m_parameters = std::forward<ParametersT>(value);
104 }
105 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
107 SetParameters(std::forward<ParametersT>(value));
108 return *this;
109 }
110 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
111 RegisterJobDefinitionRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
112 m_parametersHasBeenSet = true;
113 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
114 return *this;
115 }
117
119
126 inline int GetSchedulingPriority() const { return m_schedulingPriority; }
127 inline bool SchedulingPriorityHasBeenSet() const { return m_schedulingPriorityHasBeenSet; }
128 inline void SetSchedulingPriority(int value) {
129 m_schedulingPriorityHasBeenSet = true;
130 m_schedulingPriority = value;
131 }
134 return *this;
135 }
137
139
148 inline const ContainerProperties& GetContainerProperties() const { return m_containerProperties; }
149 inline bool ContainerPropertiesHasBeenSet() const { return m_containerPropertiesHasBeenSet; }
150 template <typename ContainerPropertiesT = ContainerProperties>
151 void SetContainerProperties(ContainerPropertiesT&& value) {
152 m_containerPropertiesHasBeenSet = true;
153 m_containerProperties = std::forward<ContainerPropertiesT>(value);
154 }
155 template <typename ContainerPropertiesT = ContainerProperties>
157 SetContainerProperties(std::forward<ContainerPropertiesT>(value));
158 return *this;
159 }
161
163
174 inline const NodeProperties& GetNodeProperties() const { return m_nodeProperties; }
175 inline bool NodePropertiesHasBeenSet() const { return m_nodePropertiesHasBeenSet; }
176 template <typename NodePropertiesT = NodeProperties>
177 void SetNodeProperties(NodePropertiesT&& value) {
178 m_nodePropertiesHasBeenSet = true;
179 m_nodeProperties = std::forward<NodePropertiesT>(value);
180 }
181 template <typename NodePropertiesT = NodeProperties>
183 SetNodeProperties(std::forward<NodePropertiesT>(value));
184 return *this;
185 }
187
189
195 inline const RetryStrategy& GetRetryStrategy() const { return m_retryStrategy; }
196 inline bool RetryStrategyHasBeenSet() const { return m_retryStrategyHasBeenSet; }
197 template <typename RetryStrategyT = RetryStrategy>
198 void SetRetryStrategy(RetryStrategyT&& value) {
199 m_retryStrategyHasBeenSet = true;
200 m_retryStrategy = std::forward<RetryStrategyT>(value);
201 }
202 template <typename RetryStrategyT = RetryStrategy>
204 SetRetryStrategy(std::forward<RetryStrategyT>(value));
205 return *this;
206 }
208
210
220 inline bool GetPropagateTags() const { return m_propagateTags; }
221 inline bool PropagateTagsHasBeenSet() const { return m_propagateTagsHasBeenSet; }
222 inline void SetPropagateTags(bool value) {
223 m_propagateTagsHasBeenSet = true;
224 m_propagateTags = value;
225 }
227 SetPropagateTags(value);
228 return *this;
229 }
231
233
243 inline const JobTimeout& GetTimeout() const { return m_timeout; }
244 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
245 template <typename TimeoutT = JobTimeout>
246 void SetTimeout(TimeoutT&& value) {
247 m_timeoutHasBeenSet = true;
248 m_timeout = std::forward<TimeoutT>(value);
249 }
250 template <typename TimeoutT = JobTimeout>
252 SetTimeout(std::forward<TimeoutT>(value));
253 return *this;
254 }
256
258
265 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
266 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
267 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
268 void SetTags(TagsT&& value) {
269 m_tagsHasBeenSet = true;
270 m_tags = std::forward<TagsT>(value);
271 }
272 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
274 SetTags(std::forward<TagsT>(value));
275 return *this;
276 }
277 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
278 RegisterJobDefinitionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
279 m_tagsHasBeenSet = true;
280 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
281 return *this;
282 }
284
286
293 inline const Aws::Vector<PlatformCapability>& GetPlatformCapabilities() const { return m_platformCapabilities; }
294 inline bool PlatformCapabilitiesHasBeenSet() const { return m_platformCapabilitiesHasBeenSet; }
295 template <typename PlatformCapabilitiesT = Aws::Vector<PlatformCapability>>
296 void SetPlatformCapabilities(PlatformCapabilitiesT&& value) {
297 m_platformCapabilitiesHasBeenSet = true;
298 m_platformCapabilities = std::forward<PlatformCapabilitiesT>(value);
299 }
300 template <typename PlatformCapabilitiesT = Aws::Vector<PlatformCapability>>
302 SetPlatformCapabilities(std::forward<PlatformCapabilitiesT>(value));
303 return *this;
304 }
306 m_platformCapabilitiesHasBeenSet = true;
307 m_platformCapabilities.push_back(value);
308 return *this;
309 }
311
313
317 inline const EksProperties& GetEksProperties() const { return m_eksProperties; }
318 inline bool EksPropertiesHasBeenSet() const { return m_eksPropertiesHasBeenSet; }
319 template <typename EksPropertiesT = EksProperties>
320 void SetEksProperties(EksPropertiesT&& value) {
321 m_eksPropertiesHasBeenSet = true;
322 m_eksProperties = std::forward<EksPropertiesT>(value);
323 }
324 template <typename EksPropertiesT = EksProperties>
326 SetEksProperties(std::forward<EksPropertiesT>(value));
327 return *this;
328 }
330
332
336 inline const EcsProperties& GetEcsProperties() const { return m_ecsProperties; }
337 inline bool EcsPropertiesHasBeenSet() const { return m_ecsPropertiesHasBeenSet; }
338 template <typename EcsPropertiesT = EcsProperties>
339 void SetEcsProperties(EcsPropertiesT&& value) {
340 m_ecsPropertiesHasBeenSet = true;
341 m_ecsProperties = std::forward<EcsPropertiesT>(value);
342 }
343 template <typename EcsPropertiesT = EcsProperties>
345 SetEcsProperties(std::forward<EcsPropertiesT>(value));
346 return *this;
347 }
349
351
354 inline const ConsumableResourceProperties& GetConsumableResourceProperties() const { return m_consumableResourceProperties; }
355 inline bool ConsumableResourcePropertiesHasBeenSet() const { return m_consumableResourcePropertiesHasBeenSet; }
356 template <typename ConsumableResourcePropertiesT = ConsumableResourceProperties>
357 void SetConsumableResourceProperties(ConsumableResourcePropertiesT&& value) {
358 m_consumableResourcePropertiesHasBeenSet = true;
359 m_consumableResourceProperties = std::forward<ConsumableResourcePropertiesT>(value);
360 }
361 template <typename ConsumableResourcePropertiesT = ConsumableResourceProperties>
362 RegisterJobDefinitionRequest& WithConsumableResourceProperties(ConsumableResourcePropertiesT&& value) {
363 SetConsumableResourceProperties(std::forward<ConsumableResourcePropertiesT>(value));
364 return *this;
365 }
367 private:
368 Aws::String m_jobDefinitionName;
369
371
373
374 int m_schedulingPriority{0};
375
376 ContainerProperties m_containerProperties;
377
378 NodeProperties m_nodeProperties;
379
380 RetryStrategy m_retryStrategy;
381
382 bool m_propagateTags{false};
383
384 JobTimeout m_timeout;
385
387
388 Aws::Vector<PlatformCapability> m_platformCapabilities;
389
390 EksProperties m_eksProperties;
391
392 EcsProperties m_ecsProperties;
393
394 ConsumableResourceProperties m_consumableResourceProperties;
395 bool m_jobDefinitionNameHasBeenSet = false;
396 bool m_typeHasBeenSet = false;
397 bool m_parametersHasBeenSet = false;
398 bool m_schedulingPriorityHasBeenSet = false;
399 bool m_containerPropertiesHasBeenSet = false;
400 bool m_nodePropertiesHasBeenSet = false;
401 bool m_retryStrategyHasBeenSet = false;
402 bool m_propagateTagsHasBeenSet = false;
403 bool m_timeoutHasBeenSet = false;
404 bool m_tagsHasBeenSet = false;
405 bool m_platformCapabilitiesHasBeenSet = false;
406 bool m_eksPropertiesHasBeenSet = false;
407 bool m_ecsPropertiesHasBeenSet = false;
408 bool m_consumableResourcePropertiesHasBeenSet = false;
409};
410
411} // namespace Model
412} // namespace Batch
413} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RegisterJobDefinitionRequest & WithContainerProperties(ContainerPropertiesT &&value)
RegisterJobDefinitionRequest & WithEksProperties(EksPropertiesT &&value)
RegisterJobDefinitionRequest & WithTags(TagsT &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
const Aws::Vector< PlatformCapability > & GetPlatformCapabilities() const
RegisterJobDefinitionRequest & WithJobDefinitionName(JobDefinitionNameT &&value)
RegisterJobDefinitionRequest & WithType(JobDefinitionType value)
RegisterJobDefinitionRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
RegisterJobDefinitionRequest & WithNodeProperties(NodePropertiesT &&value)
RegisterJobDefinitionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetConsumableResourceProperties(ConsumableResourcePropertiesT &&value)
RegisterJobDefinitionRequest & WithParameters(ParametersT &&value)
RegisterJobDefinitionRequest & WithEcsProperties(EcsPropertiesT &&value)
RegisterJobDefinitionRequest & WithTimeout(TimeoutT &&value)
AWS_BATCH_API RegisterJobDefinitionRequest()=default
RegisterJobDefinitionRequest & WithPropagateTags(bool value)
const ConsumableResourceProperties & GetConsumableResourceProperties() const
RegisterJobDefinitionRequest & WithPlatformCapabilities(PlatformCapabilitiesT &&value)
RegisterJobDefinitionRequest & WithSchedulingPriority(int value)
RegisterJobDefinitionRequest & AddPlatformCapabilities(PlatformCapability value)
RegisterJobDefinitionRequest & WithRetryStrategy(RetryStrategyT &&value)
RegisterJobDefinitionRequest & WithConsumableResourceProperties(ConsumableResourcePropertiesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
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
std::vector< T, Aws::Allocator< T > > Vector