AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/PlatformCapability.h>
20#include <utility>
21
22namespace Aws
23{
24namespace Batch
25{
26namespace Model
27{
28
36 {
37 public:
39
40 // Service request name is the Operation name which will send this request out,
41 // each operation should has unique request name, so that we can get operation's name from this request.
42 // Note: this is not true for response, multiple operations may have the same response name,
43 // so we can not get operation's name from response.
44 inline virtual const char* GetServiceRequestName() const override { return "RegisterJobDefinition"; }
45
46 AWS_BATCH_API Aws::String SerializePayload() const override;
47
48
50
55 inline const Aws::String& GetJobDefinitionName() const{ return m_jobDefinitionName; }
56 inline bool JobDefinitionNameHasBeenSet() const { return m_jobDefinitionNameHasBeenSet; }
57 inline void SetJobDefinitionName(const Aws::String& value) { m_jobDefinitionNameHasBeenSet = true; m_jobDefinitionName = value; }
58 inline void SetJobDefinitionName(Aws::String&& value) { m_jobDefinitionNameHasBeenSet = true; m_jobDefinitionName = std::move(value); }
59 inline void SetJobDefinitionName(const char* value) { m_jobDefinitionNameHasBeenSet = true; m_jobDefinitionName.assign(value); }
61 inline RegisterJobDefinitionRequest& WithJobDefinitionName(Aws::String&& value) { SetJobDefinitionName(std::move(value)); return *this;}
62 inline RegisterJobDefinitionRequest& WithJobDefinitionName(const char* value) { SetJobDefinitionName(value); return *this;}
64
66
78 inline const JobDefinitionType& GetType() const{ return m_type; }
79 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
80 inline void SetType(const JobDefinitionType& value) { m_typeHasBeenSet = true; m_type = value; }
81 inline void SetType(JobDefinitionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
82 inline RegisterJobDefinitionRequest& WithType(const JobDefinitionType& value) { SetType(value); return *this;}
83 inline RegisterJobDefinitionRequest& WithType(JobDefinitionType&& value) { SetType(std::move(value)); return *this;}
85
87
93 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
94 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
95 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
96 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
99 inline RegisterJobDefinitionRequest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
100 inline RegisterJobDefinitionRequest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
101 inline RegisterJobDefinitionRequest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
102 inline RegisterJobDefinitionRequest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
103 inline RegisterJobDefinitionRequest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
104 inline RegisterJobDefinitionRequest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
105 inline RegisterJobDefinitionRequest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
107
109
116 inline int GetSchedulingPriority() const{ return m_schedulingPriority; }
117 inline bool SchedulingPriorityHasBeenSet() const { return m_schedulingPriorityHasBeenSet; }
118 inline void SetSchedulingPriority(int value) { m_schedulingPriorityHasBeenSet = true; m_schedulingPriority = value; }
121
123
132 inline const ContainerProperties& GetContainerProperties() const{ return m_containerProperties; }
133 inline bool ContainerPropertiesHasBeenSet() const { return m_containerPropertiesHasBeenSet; }
134 inline void SetContainerProperties(const ContainerProperties& value) { m_containerPropertiesHasBeenSet = true; m_containerProperties = value; }
135 inline void SetContainerProperties(ContainerProperties&& value) { m_containerPropertiesHasBeenSet = true; m_containerProperties = std::move(value); }
139
141
152 inline const NodeProperties& GetNodeProperties() const{ return m_nodeProperties; }
153 inline bool NodePropertiesHasBeenSet() const { return m_nodePropertiesHasBeenSet; }
154 inline void SetNodeProperties(const NodeProperties& value) { m_nodePropertiesHasBeenSet = true; m_nodeProperties = value; }
155 inline void SetNodeProperties(NodeProperties&& value) { m_nodePropertiesHasBeenSet = true; m_nodeProperties = std::move(value); }
157 inline RegisterJobDefinitionRequest& WithNodeProperties(NodeProperties&& value) { SetNodeProperties(std::move(value)); return *this;}
159
161
167 inline const RetryStrategy& GetRetryStrategy() const{ return m_retryStrategy; }
168 inline bool RetryStrategyHasBeenSet() const { return m_retryStrategyHasBeenSet; }
169 inline void SetRetryStrategy(const RetryStrategy& value) { m_retryStrategyHasBeenSet = true; m_retryStrategy = value; }
170 inline void SetRetryStrategy(RetryStrategy&& value) { m_retryStrategyHasBeenSet = true; m_retryStrategy = std::move(value); }
172 inline RegisterJobDefinitionRequest& WithRetryStrategy(RetryStrategy&& value) { SetRetryStrategy(std::move(value)); return *this;}
174
176
186 inline bool GetPropagateTags() const{ return m_propagateTags; }
187 inline bool PropagateTagsHasBeenSet() const { return m_propagateTagsHasBeenSet; }
188 inline void SetPropagateTags(bool value) { m_propagateTagsHasBeenSet = true; m_propagateTags = value; }
189 inline RegisterJobDefinitionRequest& WithPropagateTags(bool value) { SetPropagateTags(value); return *this;}
191
193
203 inline const JobTimeout& GetTimeout() const{ return m_timeout; }
204 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
205 inline void SetTimeout(const JobTimeout& value) { m_timeoutHasBeenSet = true; m_timeout = value; }
206 inline void SetTimeout(JobTimeout&& value) { m_timeoutHasBeenSet = true; m_timeout = std::move(value); }
207 inline RegisterJobDefinitionRequest& WithTimeout(const JobTimeout& value) { SetTimeout(value); return *this;}
208 inline RegisterJobDefinitionRequest& WithTimeout(JobTimeout&& value) { SetTimeout(std::move(value)); return *this;}
210
212
219 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
220 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
221 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
222 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
224 inline RegisterJobDefinitionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
225 inline RegisterJobDefinitionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
226 inline RegisterJobDefinitionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
227 inline RegisterJobDefinitionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
228 inline RegisterJobDefinitionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
229 inline RegisterJobDefinitionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
230 inline RegisterJobDefinitionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
231 inline RegisterJobDefinitionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
233
235
242 inline const Aws::Vector<PlatformCapability>& GetPlatformCapabilities() const{ return m_platformCapabilities; }
243 inline bool PlatformCapabilitiesHasBeenSet() const { return m_platformCapabilitiesHasBeenSet; }
244 inline void SetPlatformCapabilities(const Aws::Vector<PlatformCapability>& value) { m_platformCapabilitiesHasBeenSet = true; m_platformCapabilities = value; }
245 inline void SetPlatformCapabilities(Aws::Vector<PlatformCapability>&& value) { m_platformCapabilitiesHasBeenSet = true; m_platformCapabilities = std::move(value); }
248 inline RegisterJobDefinitionRequest& AddPlatformCapabilities(const PlatformCapability& value) { m_platformCapabilitiesHasBeenSet = true; m_platformCapabilities.push_back(value); return *this; }
249 inline RegisterJobDefinitionRequest& AddPlatformCapabilities(PlatformCapability&& value) { m_platformCapabilitiesHasBeenSet = true; m_platformCapabilities.push_back(std::move(value)); return *this; }
251
253
257 inline const EksProperties& GetEksProperties() const{ return m_eksProperties; }
258 inline bool EksPropertiesHasBeenSet() const { return m_eksPropertiesHasBeenSet; }
259 inline void SetEksProperties(const EksProperties& value) { m_eksPropertiesHasBeenSet = true; m_eksProperties = value; }
260 inline void SetEksProperties(EksProperties&& value) { m_eksPropertiesHasBeenSet = true; m_eksProperties = std::move(value); }
262 inline RegisterJobDefinitionRequest& WithEksProperties(EksProperties&& value) { SetEksProperties(std::move(value)); return *this;}
264
266
270 inline const EcsProperties& GetEcsProperties() const{ return m_ecsProperties; }
271 inline bool EcsPropertiesHasBeenSet() const { return m_ecsPropertiesHasBeenSet; }
272 inline void SetEcsProperties(const EcsProperties& value) { m_ecsPropertiesHasBeenSet = true; m_ecsProperties = value; }
273 inline void SetEcsProperties(EcsProperties&& value) { m_ecsPropertiesHasBeenSet = true; m_ecsProperties = std::move(value); }
275 inline RegisterJobDefinitionRequest& WithEcsProperties(EcsProperties&& value) { SetEcsProperties(std::move(value)); return *this;}
277 private:
278
279 Aws::String m_jobDefinitionName;
280 bool m_jobDefinitionNameHasBeenSet = false;
281
282 JobDefinitionType m_type;
283 bool m_typeHasBeenSet = false;
284
286 bool m_parametersHasBeenSet = false;
287
288 int m_schedulingPriority;
289 bool m_schedulingPriorityHasBeenSet = false;
290
291 ContainerProperties m_containerProperties;
292 bool m_containerPropertiesHasBeenSet = false;
293
294 NodeProperties m_nodeProperties;
295 bool m_nodePropertiesHasBeenSet = false;
296
297 RetryStrategy m_retryStrategy;
298 bool m_retryStrategyHasBeenSet = false;
299
300 bool m_propagateTags;
301 bool m_propagateTagsHasBeenSet = false;
302
303 JobTimeout m_timeout;
304 bool m_timeoutHasBeenSet = false;
305
307 bool m_tagsHasBeenSet = false;
308
309 Aws::Vector<PlatformCapability> m_platformCapabilities;
310 bool m_platformCapabilitiesHasBeenSet = false;
311
312 EksProperties m_eksProperties;
313 bool m_eksPropertiesHasBeenSet = false;
314
315 EcsProperties m_ecsProperties;
316 bool m_ecsPropertiesHasBeenSet = false;
317 };
318
319} // namespace Model
320} // namespace Batch
321} // namespace Aws
RegisterJobDefinitionRequest & WithTimeout(JobTimeout &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RegisterJobDefinitionRequest & WithRetryStrategy(const RetryStrategy &value)
RegisterJobDefinitionRequest & AddParameters(Aws::String &&key, Aws::String &&value)
RegisterJobDefinitionRequest & WithTimeout(const JobTimeout &value)
RegisterJobDefinitionRequest & WithJobDefinitionName(const Aws::String &value)
RegisterJobDefinitionRequest & AddTags(Aws::String &&key, const char *value)
RegisterJobDefinitionRequest & AddPlatformCapabilities(const PlatformCapability &value)
RegisterJobDefinitionRequest & WithNodeProperties(NodeProperties &&value)
void SetPlatformCapabilities(Aws::Vector< PlatformCapability > &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
RegisterJobDefinitionRequest & AddTags(const char *key, Aws::String &&value)
RegisterJobDefinitionRequest & WithNodeProperties(const NodeProperties &value)
const Aws::Vector< PlatformCapability > & GetPlatformCapabilities() const
RegisterJobDefinitionRequest & WithContainerProperties(const ContainerProperties &value)
RegisterJobDefinitionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
RegisterJobDefinitionRequest & AddParameters(const Aws::String &key, const Aws::String &value)
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
RegisterJobDefinitionRequest & AddParameters(const Aws::String &key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
RegisterJobDefinitionRequest & WithJobDefinitionName(Aws::String &&value)
RegisterJobDefinitionRequest & AddParameters(Aws::String &&key, const Aws::String &value)
RegisterJobDefinitionRequest & WithType(const JobDefinitionType &value)
void SetPlatformCapabilities(const Aws::Vector< PlatformCapability > &value)
RegisterJobDefinitionRequest & WithType(JobDefinitionType &&value)
RegisterJobDefinitionRequest & WithJobDefinitionName(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
RegisterJobDefinitionRequest & AddPlatformCapabilities(PlatformCapability &&value)
RegisterJobDefinitionRequest & WithEksProperties(const EksProperties &value)
RegisterJobDefinitionRequest & AddTags(const Aws::String &key, const Aws::String &value)
RegisterJobDefinitionRequest & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
RegisterJobDefinitionRequest & WithEksProperties(EksProperties &&value)
RegisterJobDefinitionRequest & AddTags(Aws::String &&key, const Aws::String &value)
RegisterJobDefinitionRequest & AddParameters(const char *key, Aws::String &&value)
RegisterJobDefinitionRequest & WithPropagateTags(bool value)
RegisterJobDefinitionRequest & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
RegisterJobDefinitionRequest & WithEcsProperties(const EcsProperties &value)
RegisterJobDefinitionRequest & WithContainerProperties(ContainerProperties &&value)
RegisterJobDefinitionRequest & WithEcsProperties(EcsProperties &&value)
RegisterJobDefinitionRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetContainerProperties(const ContainerProperties &value)
RegisterJobDefinitionRequest & AddTags(const char *key, const char *value)
RegisterJobDefinitionRequest & WithRetryStrategy(RetryStrategy &&value)
RegisterJobDefinitionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
RegisterJobDefinitionRequest & WithPlatformCapabilities(Aws::Vector< PlatformCapability > &&value)
RegisterJobDefinitionRequest & WithSchedulingPriority(int value)
RegisterJobDefinitionRequest & AddParameters(Aws::String &&key, const char *value)
RegisterJobDefinitionRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
RegisterJobDefinitionRequest & WithPlatformCapabilities(const Aws::Vector< PlatformCapability > &value)
RegisterJobDefinitionRequest & AddParameters(const char *key, const char *value)
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