AWS SDK for C++

AWS SDK for C++ Version 1.11.875

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
297 inline const Aws::Vector<PlatformCapability>& GetPlatformCapabilities() const { return m_platformCapabilities; }
298 inline bool PlatformCapabilitiesHasBeenSet() const { return m_platformCapabilitiesHasBeenSet; }
299 template <typename PlatformCapabilitiesT = Aws::Vector<PlatformCapability>>
300 void SetPlatformCapabilities(PlatformCapabilitiesT&& value) {
301 m_platformCapabilitiesHasBeenSet = true;
302 m_platformCapabilities = std::forward<PlatformCapabilitiesT>(value);
303 }
304 template <typename PlatformCapabilitiesT = Aws::Vector<PlatformCapability>>
306 SetPlatformCapabilities(std::forward<PlatformCapabilitiesT>(value));
307 return *this;
308 }
310 m_platformCapabilitiesHasBeenSet = true;
311 m_platformCapabilities.push_back(value);
312 return *this;
313 }
315
317
321 inline const EksProperties& GetEksProperties() const { return m_eksProperties; }
322 inline bool EksPropertiesHasBeenSet() const { return m_eksPropertiesHasBeenSet; }
323 template <typename EksPropertiesT = EksProperties>
324 void SetEksProperties(EksPropertiesT&& value) {
325 m_eksPropertiesHasBeenSet = true;
326 m_eksProperties = std::forward<EksPropertiesT>(value);
327 }
328 template <typename EksPropertiesT = EksProperties>
330 SetEksProperties(std::forward<EksPropertiesT>(value));
331 return *this;
332 }
334
336
340 inline const EcsProperties& GetEcsProperties() const { return m_ecsProperties; }
341 inline bool EcsPropertiesHasBeenSet() const { return m_ecsPropertiesHasBeenSet; }
342 template <typename EcsPropertiesT = EcsProperties>
343 void SetEcsProperties(EcsPropertiesT&& value) {
344 m_ecsPropertiesHasBeenSet = true;
345 m_ecsProperties = std::forward<EcsPropertiesT>(value);
346 }
347 template <typename EcsPropertiesT = EcsProperties>
349 SetEcsProperties(std::forward<EcsPropertiesT>(value));
350 return *this;
351 }
353
355
358 inline const ConsumableResourceProperties& GetConsumableResourceProperties() const { return m_consumableResourceProperties; }
359 inline bool ConsumableResourcePropertiesHasBeenSet() const { return m_consumableResourcePropertiesHasBeenSet; }
360 template <typename ConsumableResourcePropertiesT = ConsumableResourceProperties>
361 void SetConsumableResourceProperties(ConsumableResourcePropertiesT&& value) {
362 m_consumableResourcePropertiesHasBeenSet = true;
363 m_consumableResourceProperties = std::forward<ConsumableResourcePropertiesT>(value);
364 }
365 template <typename ConsumableResourcePropertiesT = ConsumableResourceProperties>
366 RegisterJobDefinitionRequest& WithConsumableResourceProperties(ConsumableResourcePropertiesT&& value) {
367 SetConsumableResourceProperties(std::forward<ConsumableResourcePropertiesT>(value));
368 return *this;
369 }
371 private:
372 Aws::String m_jobDefinitionName;
373
375
377
378 int m_schedulingPriority{0};
379
380 ContainerProperties m_containerProperties;
381
382 NodeProperties m_nodeProperties;
383
384 RetryStrategy m_retryStrategy;
385
386 bool m_propagateTags{false};
387
388 JobTimeout m_timeout;
389
391
392 Aws::Vector<PlatformCapability> m_platformCapabilities;
393
394 EksProperties m_eksProperties;
395
396 EcsProperties m_ecsProperties;
397
398 ConsumableResourceProperties m_consumableResourceProperties;
399 bool m_jobDefinitionNameHasBeenSet = false;
400 bool m_typeHasBeenSet = false;
401 bool m_parametersHasBeenSet = false;
402 bool m_schedulingPriorityHasBeenSet = false;
403 bool m_containerPropertiesHasBeenSet = false;
404 bool m_nodePropertiesHasBeenSet = false;
405 bool m_retryStrategyHasBeenSet = false;
406 bool m_propagateTagsHasBeenSet = false;
407 bool m_timeoutHasBeenSet = false;
408 bool m_tagsHasBeenSet = false;
409 bool m_platformCapabilitiesHasBeenSet = false;
410 bool m_eksPropertiesHasBeenSet = false;
411 bool m_ecsPropertiesHasBeenSet = false;
412 bool m_consumableResourcePropertiesHasBeenSet = false;
413};
414
415} // namespace Model
416} // namespace Batch
417} // 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