AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RegisterJobDefinitionRequest.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/BatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/batch/model/JobDefinitionType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/batch/model/ContainerProperties.h>
13#include <aws/batch/model/NodeProperties.h>
14#include <aws/batch/model/RetryStrategy.h>
15#include <aws/batch/model/JobTimeout.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17#include <aws/batch/model/EksProperties.h>
18#include <aws/batch/model/EcsProperties.h>
19#include <aws/batch/model/ConsumableResourceProperties.h>
20#include <aws/batch/model/PlatformCapability.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Batch
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_BATCH_API RegisterJobDefinitionRequest() = default;
40
41 // Service request name is the Operation name which will send this request out,
42 // each operation should has unique request name, so that we can get operation's name from this request.
43 // Note: this is not true for response, multiple operations may have the same response name,
44 // so we can not get operation's name from response.
45 inline virtual const char* GetServiceRequestName() const override { return "RegisterJobDefinition"; }
46
47 AWS_BATCH_API Aws::String SerializePayload() const override;
48
49
51
56 inline const Aws::String& GetJobDefinitionName() const { return m_jobDefinitionName; }
57 inline bool JobDefinitionNameHasBeenSet() const { return m_jobDefinitionNameHasBeenSet; }
58 template<typename JobDefinitionNameT = Aws::String>
59 void SetJobDefinitionName(JobDefinitionNameT&& value) { m_jobDefinitionNameHasBeenSet = true; m_jobDefinitionName = std::forward<JobDefinitionNameT>(value); }
60 template<typename JobDefinitionNameT = Aws::String>
61 RegisterJobDefinitionRequest& WithJobDefinitionName(JobDefinitionNameT&& value) { SetJobDefinitionName(std::forward<JobDefinitionNameT>(value)); return *this;}
63
65
77 inline JobDefinitionType GetType() const { return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(JobDefinitionType value) { m_typeHasBeenSet = true; m_type = value; }
80 inline RegisterJobDefinitionRequest& WithType(JobDefinitionType value) { SetType(value); return *this;}
82
84
90 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
91 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
92 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
93 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
94 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
95 RegisterJobDefinitionRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
96 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
97 RegisterJobDefinitionRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
98 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
99 }
101
103
110 inline int GetSchedulingPriority() const { return m_schedulingPriority; }
111 inline bool SchedulingPriorityHasBeenSet() const { return m_schedulingPriorityHasBeenSet; }
112 inline void SetSchedulingPriority(int value) { m_schedulingPriorityHasBeenSet = true; m_schedulingPriority = value; }
115
117
126 inline const ContainerProperties& GetContainerProperties() const { return m_containerProperties; }
127 inline bool ContainerPropertiesHasBeenSet() const { return m_containerPropertiesHasBeenSet; }
128 template<typename ContainerPropertiesT = ContainerProperties>
129 void SetContainerProperties(ContainerPropertiesT&& value) { m_containerPropertiesHasBeenSet = true; m_containerProperties = std::forward<ContainerPropertiesT>(value); }
130 template<typename ContainerPropertiesT = ContainerProperties>
131 RegisterJobDefinitionRequest& WithContainerProperties(ContainerPropertiesT&& value) { SetContainerProperties(std::forward<ContainerPropertiesT>(value)); return *this;}
133
135
146 inline const NodeProperties& GetNodeProperties() const { return m_nodeProperties; }
147 inline bool NodePropertiesHasBeenSet() const { return m_nodePropertiesHasBeenSet; }
148 template<typename NodePropertiesT = NodeProperties>
149 void SetNodeProperties(NodePropertiesT&& value) { m_nodePropertiesHasBeenSet = true; m_nodeProperties = std::forward<NodePropertiesT>(value); }
150 template<typename NodePropertiesT = NodeProperties>
151 RegisterJobDefinitionRequest& WithNodeProperties(NodePropertiesT&& value) { SetNodeProperties(std::forward<NodePropertiesT>(value)); return *this;}
153
155
161 inline const RetryStrategy& GetRetryStrategy() const { return m_retryStrategy; }
162 inline bool RetryStrategyHasBeenSet() const { return m_retryStrategyHasBeenSet; }
163 template<typename RetryStrategyT = RetryStrategy>
164 void SetRetryStrategy(RetryStrategyT&& value) { m_retryStrategyHasBeenSet = true; m_retryStrategy = std::forward<RetryStrategyT>(value); }
165 template<typename RetryStrategyT = RetryStrategy>
166 RegisterJobDefinitionRequest& WithRetryStrategy(RetryStrategyT&& value) { SetRetryStrategy(std::forward<RetryStrategyT>(value)); return *this;}
168
170
180 inline bool GetPropagateTags() const { return m_propagateTags; }
181 inline bool PropagateTagsHasBeenSet() const { return m_propagateTagsHasBeenSet; }
182 inline void SetPropagateTags(bool value) { m_propagateTagsHasBeenSet = true; m_propagateTags = value; }
183 inline RegisterJobDefinitionRequest& WithPropagateTags(bool value) { SetPropagateTags(value); return *this;}
185
187
197 inline const JobTimeout& GetTimeout() const { return m_timeout; }
198 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
199 template<typename TimeoutT = JobTimeout>
200 void SetTimeout(TimeoutT&& value) { m_timeoutHasBeenSet = true; m_timeout = std::forward<TimeoutT>(value); }
201 template<typename TimeoutT = JobTimeout>
202 RegisterJobDefinitionRequest& WithTimeout(TimeoutT&& value) { SetTimeout(std::forward<TimeoutT>(value)); return *this;}
204
206
213 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
214 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
215 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
216 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
217 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
218 RegisterJobDefinitionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
219 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
220 RegisterJobDefinitionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
221 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
222 }
224
226
233 inline const Aws::Vector<PlatformCapability>& GetPlatformCapabilities() const { return m_platformCapabilities; }
234 inline bool PlatformCapabilitiesHasBeenSet() const { return m_platformCapabilitiesHasBeenSet; }
235 template<typename PlatformCapabilitiesT = Aws::Vector<PlatformCapability>>
236 void SetPlatformCapabilities(PlatformCapabilitiesT&& value) { m_platformCapabilitiesHasBeenSet = true; m_platformCapabilities = std::forward<PlatformCapabilitiesT>(value); }
237 template<typename PlatformCapabilitiesT = Aws::Vector<PlatformCapability>>
238 RegisterJobDefinitionRequest& WithPlatformCapabilities(PlatformCapabilitiesT&& value) { SetPlatformCapabilities(std::forward<PlatformCapabilitiesT>(value)); return *this;}
239 inline RegisterJobDefinitionRequest& AddPlatformCapabilities(PlatformCapability value) { m_platformCapabilitiesHasBeenSet = true; m_platformCapabilities.push_back(value); return *this; }
241
243
247 inline const EksProperties& GetEksProperties() const { return m_eksProperties; }
248 inline bool EksPropertiesHasBeenSet() const { return m_eksPropertiesHasBeenSet; }
249 template<typename EksPropertiesT = EksProperties>
250 void SetEksProperties(EksPropertiesT&& value) { m_eksPropertiesHasBeenSet = true; m_eksProperties = std::forward<EksPropertiesT>(value); }
251 template<typename EksPropertiesT = EksProperties>
252 RegisterJobDefinitionRequest& WithEksProperties(EksPropertiesT&& value) { SetEksProperties(std::forward<EksPropertiesT>(value)); return *this;}
254
256
260 inline const EcsProperties& GetEcsProperties() const { return m_ecsProperties; }
261 inline bool EcsPropertiesHasBeenSet() const { return m_ecsPropertiesHasBeenSet; }
262 template<typename EcsPropertiesT = EcsProperties>
263 void SetEcsProperties(EcsPropertiesT&& value) { m_ecsPropertiesHasBeenSet = true; m_ecsProperties = std::forward<EcsPropertiesT>(value); }
264 template<typename EcsPropertiesT = EcsProperties>
265 RegisterJobDefinitionRequest& WithEcsProperties(EcsPropertiesT&& value) { SetEcsProperties(std::forward<EcsPropertiesT>(value)); return *this;}
267
269
272 inline const ConsumableResourceProperties& GetConsumableResourceProperties() const { return m_consumableResourceProperties; }
273 inline bool ConsumableResourcePropertiesHasBeenSet() const { return m_consumableResourcePropertiesHasBeenSet; }
274 template<typename ConsumableResourcePropertiesT = ConsumableResourceProperties>
275 void SetConsumableResourceProperties(ConsumableResourcePropertiesT&& value) { m_consumableResourcePropertiesHasBeenSet = true; m_consumableResourceProperties = std::forward<ConsumableResourcePropertiesT>(value); }
276 template<typename ConsumableResourcePropertiesT = ConsumableResourceProperties>
277 RegisterJobDefinitionRequest& WithConsumableResourceProperties(ConsumableResourcePropertiesT&& value) { SetConsumableResourceProperties(std::forward<ConsumableResourcePropertiesT>(value)); return *this;}
279 private:
280
281 Aws::String m_jobDefinitionName;
282 bool m_jobDefinitionNameHasBeenSet = false;
283
285 bool m_typeHasBeenSet = false;
286
288 bool m_parametersHasBeenSet = false;
289
290 int m_schedulingPriority{0};
291 bool m_schedulingPriorityHasBeenSet = false;
292
293 ContainerProperties m_containerProperties;
294 bool m_containerPropertiesHasBeenSet = false;
295
296 NodeProperties m_nodeProperties;
297 bool m_nodePropertiesHasBeenSet = false;
298
299 RetryStrategy m_retryStrategy;
300 bool m_retryStrategyHasBeenSet = false;
301
302 bool m_propagateTags{false};
303 bool m_propagateTagsHasBeenSet = false;
304
305 JobTimeout m_timeout;
306 bool m_timeoutHasBeenSet = false;
307
309 bool m_tagsHasBeenSet = false;
310
311 Aws::Vector<PlatformCapability> m_platformCapabilities;
312 bool m_platformCapabilitiesHasBeenSet = false;
313
314 EksProperties m_eksProperties;
315 bool m_eksPropertiesHasBeenSet = false;
316
317 EcsProperties m_ecsProperties;
318 bool m_ecsPropertiesHasBeenSet = false;
319
320 ConsumableResourceProperties m_consumableResourceProperties;
321 bool m_consumableResourcePropertiesHasBeenSet = false;
322 };
323
324} // namespace Model
325} // namespace Batch
326} // 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