AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JobDefinition.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/batch/model/RetryStrategy.h>
11#include <aws/batch/model/ContainerProperties.h>
12#include <aws/batch/model/JobTimeout.h>
13#include <aws/batch/model/NodeProperties.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/batch/model/EcsProperties.h>
16#include <aws/batch/model/EksProperties.h>
17#include <aws/batch/model/OrchestrationType.h>
18#include <aws/batch/model/PlatformCapability.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28 class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace Batch
32{
33namespace Model
34{
35
43 {
44 public:
45 AWS_BATCH_API JobDefinition();
46 AWS_BATCH_API JobDefinition(Aws::Utils::Json::JsonView jsonValue);
48 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
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); }
60 inline JobDefinition& WithJobDefinitionName(const Aws::String& value) { SetJobDefinitionName(value); return *this;}
61 inline JobDefinition& WithJobDefinitionName(Aws::String&& value) { SetJobDefinitionName(std::move(value)); return *this;}
62 inline JobDefinition& WithJobDefinitionName(const char* value) { SetJobDefinitionName(value); return *this;}
64
66
69 inline const Aws::String& GetJobDefinitionArn() const{ return m_jobDefinitionArn; }
70 inline bool JobDefinitionArnHasBeenSet() const { return m_jobDefinitionArnHasBeenSet; }
71 inline void SetJobDefinitionArn(const Aws::String& value) { m_jobDefinitionArnHasBeenSet = true; m_jobDefinitionArn = value; }
72 inline void SetJobDefinitionArn(Aws::String&& value) { m_jobDefinitionArnHasBeenSet = true; m_jobDefinitionArn = std::move(value); }
73 inline void SetJobDefinitionArn(const char* value) { m_jobDefinitionArnHasBeenSet = true; m_jobDefinitionArn.assign(value); }
74 inline JobDefinition& WithJobDefinitionArn(const Aws::String& value) { SetJobDefinitionArn(value); return *this;}
75 inline JobDefinition& WithJobDefinitionArn(Aws::String&& value) { SetJobDefinitionArn(std::move(value)); return *this;}
76 inline JobDefinition& WithJobDefinitionArn(const char* value) { SetJobDefinitionArn(value); return *this;}
78
80
83 inline int GetRevision() const{ return m_revision; }
84 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
85 inline void SetRevision(int value) { m_revisionHasBeenSet = true; m_revision = value; }
86 inline JobDefinition& WithRevision(int value) { SetRevision(value); return *this;}
88
90
93 inline const Aws::String& GetStatus() const{ return m_status; }
94 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
96 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
97 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
98 inline JobDefinition& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
99 inline JobDefinition& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
100 inline JobDefinition& WithStatus(const char* value) { SetStatus(value); return *this;}
102
104
112 inline const Aws::String& GetType() const{ return m_type; }
113 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
114 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
115 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
116 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
117 inline JobDefinition& WithType(const Aws::String& value) { SetType(value); return *this;}
118 inline JobDefinition& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
119 inline JobDefinition& WithType(const char* value) { SetType(value); return *this;}
121
123
128 inline int GetSchedulingPriority() const{ return m_schedulingPriority; }
129 inline bool SchedulingPriorityHasBeenSet() const { return m_schedulingPriorityHasBeenSet; }
130 inline void SetSchedulingPriority(int value) { m_schedulingPriorityHasBeenSet = true; m_schedulingPriority = value; }
131 inline JobDefinition& WithSchedulingPriority(int value) { SetSchedulingPriority(value); return *this;}
133
135
144 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
145 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
146 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
147 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
149 inline JobDefinition& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
150 inline JobDefinition& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
151 inline JobDefinition& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
152 inline JobDefinition& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
153 inline JobDefinition& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
154 inline JobDefinition& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
155 inline JobDefinition& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
156 inline JobDefinition& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
158
160
164 inline const RetryStrategy& GetRetryStrategy() const{ return m_retryStrategy; }
165 inline bool RetryStrategyHasBeenSet() const { return m_retryStrategyHasBeenSet; }
166 inline void SetRetryStrategy(const RetryStrategy& value) { m_retryStrategyHasBeenSet = true; m_retryStrategy = value; }
167 inline void SetRetryStrategy(RetryStrategy&& value) { m_retryStrategyHasBeenSet = true; m_retryStrategy = std::move(value); }
168 inline JobDefinition& WithRetryStrategy(const RetryStrategy& value) { SetRetryStrategy(value); return *this;}
169 inline JobDefinition& WithRetryStrategy(RetryStrategy&& value) { SetRetryStrategy(std::move(value)); return *this;}
171
173
179 inline const ContainerProperties& GetContainerProperties() const{ return m_containerProperties; }
180 inline bool ContainerPropertiesHasBeenSet() const { return m_containerPropertiesHasBeenSet; }
181 inline void SetContainerProperties(const ContainerProperties& value) { m_containerPropertiesHasBeenSet = true; m_containerProperties = value; }
182 inline void SetContainerProperties(ContainerProperties&& value) { m_containerPropertiesHasBeenSet = true; m_containerProperties = std::move(value); }
184 inline JobDefinition& WithContainerProperties(ContainerProperties&& value) { SetContainerProperties(std::move(value)); return *this;}
186
188
193 inline const JobTimeout& GetTimeout() const{ return m_timeout; }
194 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
195 inline void SetTimeout(const JobTimeout& value) { m_timeoutHasBeenSet = true; m_timeout = value; }
196 inline void SetTimeout(JobTimeout&& value) { m_timeoutHasBeenSet = true; m_timeout = std::move(value); }
197 inline JobDefinition& WithTimeout(const JobTimeout& value) { SetTimeout(value); return *this;}
198 inline JobDefinition& WithTimeout(JobTimeout&& value) { SetTimeout(std::move(value)); return *this;}
200
202
210 inline const NodeProperties& GetNodeProperties() const{ return m_nodeProperties; }
211 inline bool NodePropertiesHasBeenSet() const { return m_nodePropertiesHasBeenSet; }
212 inline void SetNodeProperties(const NodeProperties& value) { m_nodePropertiesHasBeenSet = true; m_nodeProperties = value; }
213 inline void SetNodeProperties(NodeProperties&& value) { m_nodePropertiesHasBeenSet = true; m_nodeProperties = std::move(value); }
214 inline JobDefinition& WithNodeProperties(const NodeProperties& value) { SetNodeProperties(value); return *this;}
215 inline JobDefinition& WithNodeProperties(NodeProperties&& value) { SetNodeProperties(std::move(value)); return *this;}
217
219
222 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
223 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
224 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
225 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
226 inline JobDefinition& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
227 inline JobDefinition& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
228 inline JobDefinition& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
229 inline JobDefinition& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
230 inline JobDefinition& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
231 inline JobDefinition& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
232 inline JobDefinition& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
233 inline JobDefinition& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
234 inline JobDefinition& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
236
238
246 inline bool GetPropagateTags() const{ return m_propagateTags; }
247 inline bool PropagateTagsHasBeenSet() const { return m_propagateTagsHasBeenSet; }
248 inline void SetPropagateTags(bool value) { m_propagateTagsHasBeenSet = true; m_propagateTags = value; }
249 inline JobDefinition& WithPropagateTags(bool value) { SetPropagateTags(value); return *this;}
251
253
258 inline const Aws::Vector<PlatformCapability>& GetPlatformCapabilities() const{ return m_platformCapabilities; }
259 inline bool PlatformCapabilitiesHasBeenSet() const { return m_platformCapabilitiesHasBeenSet; }
260 inline void SetPlatformCapabilities(const Aws::Vector<PlatformCapability>& value) { m_platformCapabilitiesHasBeenSet = true; m_platformCapabilities = value; }
261 inline void SetPlatformCapabilities(Aws::Vector<PlatformCapability>&& value) { m_platformCapabilitiesHasBeenSet = true; m_platformCapabilities = std::move(value); }
264 inline JobDefinition& AddPlatformCapabilities(const PlatformCapability& value) { m_platformCapabilitiesHasBeenSet = true; m_platformCapabilities.push_back(value); return *this; }
265 inline JobDefinition& AddPlatformCapabilities(PlatformCapability&& value) { m_platformCapabilitiesHasBeenSet = true; m_platformCapabilities.push_back(std::move(value)); return *this; }
267
269
275 inline const EcsProperties& GetEcsProperties() const{ return m_ecsProperties; }
276 inline bool EcsPropertiesHasBeenSet() const { return m_ecsPropertiesHasBeenSet; }
277 inline void SetEcsProperties(const EcsProperties& value) { m_ecsPropertiesHasBeenSet = true; m_ecsProperties = value; }
278 inline void SetEcsProperties(EcsProperties&& value) { m_ecsPropertiesHasBeenSet = true; m_ecsProperties = std::move(value); }
279 inline JobDefinition& WithEcsProperties(const EcsProperties& value) { SetEcsProperties(value); return *this;}
280 inline JobDefinition& WithEcsProperties(EcsProperties&& value) { SetEcsProperties(std::move(value)); return *this;}
282
284
290 inline const EksProperties& GetEksProperties() const{ return m_eksProperties; }
291 inline bool EksPropertiesHasBeenSet() const { return m_eksPropertiesHasBeenSet; }
292 inline void SetEksProperties(const EksProperties& value) { m_eksPropertiesHasBeenSet = true; m_eksProperties = value; }
293 inline void SetEksProperties(EksProperties&& value) { m_eksPropertiesHasBeenSet = true; m_eksProperties = std::move(value); }
294 inline JobDefinition& WithEksProperties(const EksProperties& value) { SetEksProperties(value); return *this;}
295 inline JobDefinition& WithEksProperties(EksProperties&& value) { SetEksProperties(std::move(value)); return *this;}
297
299
303 inline const OrchestrationType& GetContainerOrchestrationType() const{ return m_containerOrchestrationType; }
304 inline bool ContainerOrchestrationTypeHasBeenSet() const { return m_containerOrchestrationTypeHasBeenSet; }
305 inline void SetContainerOrchestrationType(const OrchestrationType& value) { m_containerOrchestrationTypeHasBeenSet = true; m_containerOrchestrationType = value; }
306 inline void SetContainerOrchestrationType(OrchestrationType&& value) { m_containerOrchestrationTypeHasBeenSet = true; m_containerOrchestrationType = std::move(value); }
310 private:
311
312 Aws::String m_jobDefinitionName;
313 bool m_jobDefinitionNameHasBeenSet = false;
314
315 Aws::String m_jobDefinitionArn;
316 bool m_jobDefinitionArnHasBeenSet = false;
317
318 int m_revision;
319 bool m_revisionHasBeenSet = false;
320
321 Aws::String m_status;
322 bool m_statusHasBeenSet = false;
323
324 Aws::String m_type;
325 bool m_typeHasBeenSet = false;
326
327 int m_schedulingPriority;
328 bool m_schedulingPriorityHasBeenSet = false;
329
331 bool m_parametersHasBeenSet = false;
332
333 RetryStrategy m_retryStrategy;
334 bool m_retryStrategyHasBeenSet = false;
335
336 ContainerProperties m_containerProperties;
337 bool m_containerPropertiesHasBeenSet = false;
338
339 JobTimeout m_timeout;
340 bool m_timeoutHasBeenSet = false;
341
342 NodeProperties m_nodeProperties;
343 bool m_nodePropertiesHasBeenSet = false;
344
346 bool m_tagsHasBeenSet = false;
347
348 bool m_propagateTags;
349 bool m_propagateTagsHasBeenSet = false;
350
351 Aws::Vector<PlatformCapability> m_platformCapabilities;
352 bool m_platformCapabilitiesHasBeenSet = false;
353
354 EcsProperties m_ecsProperties;
355 bool m_ecsPropertiesHasBeenSet = false;
356
357 EksProperties m_eksProperties;
358 bool m_eksPropertiesHasBeenSet = false;
359
360 OrchestrationType m_containerOrchestrationType;
361 bool m_containerOrchestrationTypeHasBeenSet = false;
362 };
363
364} // namespace Model
365} // namespace Batch
366} // namespace Aws
JobDefinition & WithType(const Aws::String &value)
JobDefinition & AddTags(Aws::String &&key, const char *value)
const NodeProperties & GetNodeProperties() const
JobDefinition & WithContainerOrchestrationType(OrchestrationType &&value)
JobDefinition & AddParameters(const char *key, Aws::String &&value)
void SetContainerOrchestrationType(OrchestrationType &&value)
void SetEksProperties(const EksProperties &value)
const Aws::String & GetJobDefinitionName() const
void SetPlatformCapabilities(const Aws::Vector< PlatformCapability > &value)
JobDefinition & WithTimeout(const JobTimeout &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
JobDefinition & WithPlatformCapabilities(const Aws::Vector< PlatformCapability > &value)
JobDefinition & WithNodeProperties(const NodeProperties &value)
JobDefinition & WithEcsProperties(const EcsProperties &value)
void SetJobDefinitionName(Aws::String &&value)
JobDefinition & AddPlatformCapabilities(const PlatformCapability &value)
void SetContainerProperties(ContainerProperties &&value)
AWS_BATCH_API JobDefinition(Aws::Utils::Json::JsonView jsonValue)
JobDefinition & WithType(Aws::String &&value)
JobDefinition & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
void SetRetryStrategy(RetryStrategy &&value)
JobDefinition & WithRetryStrategy(const RetryStrategy &value)
void SetType(const Aws::String &value)
JobDefinition & WithRetryStrategy(RetryStrategy &&value)
void SetEcsProperties(const EcsProperties &value)
void SetJobDefinitionArn(const char *value)
void SetTimeout(const JobTimeout &value)
JobDefinition & AddTags(const Aws::String &key, const Aws::String &value)
JobDefinition & WithNodeProperties(NodeProperties &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
JobDefinition & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const EksProperties & GetEksProperties() const
JobDefinition & WithTimeout(JobTimeout &&value)
JobDefinition & AddTags(const char *key, Aws::String &&value)
void SetEcsProperties(EcsProperties &&value)
JobDefinition & WithStatus(Aws::String &&value)
JobDefinition & WithContainerProperties(ContainerProperties &&value)
AWS_BATCH_API JobDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetJobDefinitionArn(const Aws::String &value)
JobDefinition & WithContainerOrchestrationType(const OrchestrationType &value)
JobDefinition & AddParameters(Aws::String &&key, Aws::String &&value)
JobDefinition & AddTags(const char *key, const char *value)
JobDefinition & WithJobDefinitionArn(Aws::String &&value)
void SetStatus(Aws::String &&value)
void SetContainerOrchestrationType(const OrchestrationType &value)
const JobTimeout & GetTimeout() const
JobDefinition & WithEksProperties(const EksProperties &value)
JobDefinition & AddPlatformCapabilities(PlatformCapability &&value)
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
JobDefinition & WithJobDefinitionName(const char *value)
void SetType(Aws::String &&value)
JobDefinition & AddParameters(Aws::String &&key, const Aws::String &value)
void SetJobDefinitionName(const char *value)
void SetRetryStrategy(const RetryStrategy &value)
JobDefinition & WithSchedulingPriority(int value)
JobDefinition & AddParameters(Aws::String &&key, const char *value)
const Aws::Vector< PlatformCapability > & GetPlatformCapabilities() const
const Aws::String & GetJobDefinitionArn() const
void SetTimeout(JobTimeout &&value)
JobDefinition & WithRevision(int value)
void SetEksProperties(EksProperties &&value)
const EcsProperties & GetEcsProperties() const
const ContainerProperties & GetContainerProperties() const
JobDefinition & WithJobDefinitionArn(const Aws::String &value)
bool ContainerOrchestrationTypeHasBeenSet() const
JobDefinition & WithJobDefinitionName(Aws::String &&value)
const RetryStrategy & GetRetryStrategy() const
void SetNodeProperties(const NodeProperties &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
const Aws::String & GetType() const
void SetType(const char *value)
void SetJobDefinitionName(const Aws::String &value)
JobDefinition & WithJobDefinitionArn(const char *value)
JobDefinition & AddTags(const Aws::String &key, Aws::String &&value)
const Aws::String & GetStatus() const
void SetStatus(const Aws::String &value)
JobDefinition & AddTags(Aws::String &&key, const Aws::String &value)
JobDefinition & AddParameters(const char *key, const char *value)
JobDefinition & WithType(const char *value)
JobDefinition & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
JobDefinition & WithPlatformCapabilities(Aws::Vector< PlatformCapability > &&value)
JobDefinition & WithPropagateTags(bool value)
JobDefinition & WithStatus(const char *value)
JobDefinition & AddParameters(const Aws::String &key, Aws::String &&value)
JobDefinition & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
JobDefinition & WithContainerProperties(const ContainerProperties &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
const OrchestrationType & GetContainerOrchestrationType() const
JobDefinition & AddTags(Aws::String &&key, Aws::String &&value)
void SetContainerProperties(const ContainerProperties &value)
void SetNodeProperties(NodeProperties &&value)
JobDefinition & WithStatus(const Aws::String &value)
void SetJobDefinitionArn(Aws::String &&value)
JobDefinition & WithEksProperties(EksProperties &&value)
void SetStatus(const char *value)
JobDefinition & WithEcsProperties(EcsProperties &&value)
void SetPlatformCapabilities(Aws::Vector< PlatformCapability > &&value)
JobDefinition & AddParameters(const Aws::String &key, const Aws::String &value)
JobDefinition & WithJobDefinitionName(const Aws::String &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
Aws::Utils::Json::JsonValue JsonValue