AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TaskDefinition.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/model/NetworkMode.h>
11#include <aws/ecs/model/TaskDefinitionStatus.h>
12#include <aws/ecs/model/RuntimePlatform.h>
13#include <aws/ecs/model/PidMode.h>
14#include <aws/ecs/model/IpcMode.h>
15#include <aws/ecs/model/ProxyConfiguration.h>
16#include <aws/core/utils/DateTime.h>
17#include <aws/ecs/model/EphemeralStorage.h>
18#include <aws/ecs/model/ContainerDefinition.h>
19#include <aws/ecs/model/Volume.h>
20#include <aws/ecs/model/Attribute.h>
21#include <aws/ecs/model/TaskDefinitionPlacementConstraint.h>
22#include <aws/ecs/model/Compatibility.h>
23#include <aws/ecs/model/InferenceAccelerator.h>
24#include <utility>
25
26namespace Aws
27{
28namespace Utils
29{
30namespace Json
31{
32 class JsonValue;
33 class JsonView;
34} // namespace Json
35} // namespace Utils
36namespace ECS
37{
38namespace Model
39{
40
51 {
52 public:
53 AWS_ECS_API TaskDefinition();
57
58
60
63 inline const Aws::String& GetTaskDefinitionArn() const{ return m_taskDefinitionArn; }
64 inline bool TaskDefinitionArnHasBeenSet() const { return m_taskDefinitionArnHasBeenSet; }
65 inline void SetTaskDefinitionArn(const Aws::String& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = value; }
66 inline void SetTaskDefinitionArn(Aws::String&& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = std::move(value); }
67 inline void SetTaskDefinitionArn(const char* value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn.assign(value); }
68 inline TaskDefinition& WithTaskDefinitionArn(const Aws::String& value) { SetTaskDefinitionArn(value); return *this;}
69 inline TaskDefinition& WithTaskDefinitionArn(Aws::String&& value) { SetTaskDefinitionArn(std::move(value)); return *this;}
70 inline TaskDefinition& WithTaskDefinitionArn(const char* value) { SetTaskDefinitionArn(value); return *this;}
72
74
82 inline const Aws::Vector<ContainerDefinition>& GetContainerDefinitions() const{ return m_containerDefinitions; }
83 inline bool ContainerDefinitionsHasBeenSet() const { return m_containerDefinitionsHasBeenSet; }
84 inline void SetContainerDefinitions(const Aws::Vector<ContainerDefinition>& value) { m_containerDefinitionsHasBeenSet = true; m_containerDefinitions = value; }
85 inline void SetContainerDefinitions(Aws::Vector<ContainerDefinition>&& value) { m_containerDefinitionsHasBeenSet = true; m_containerDefinitions = std::move(value); }
88 inline TaskDefinition& AddContainerDefinitions(const ContainerDefinition& value) { m_containerDefinitionsHasBeenSet = true; m_containerDefinitions.push_back(value); return *this; }
89 inline TaskDefinition& AddContainerDefinitions(ContainerDefinition&& value) { m_containerDefinitionsHasBeenSet = true; m_containerDefinitions.push_back(std::move(value)); return *this; }
91
93
101 inline const Aws::String& GetFamily() const{ return m_family; }
102 inline bool FamilyHasBeenSet() const { return m_familyHasBeenSet; }
103 inline void SetFamily(const Aws::String& value) { m_familyHasBeenSet = true; m_family = value; }
104 inline void SetFamily(Aws::String&& value) { m_familyHasBeenSet = true; m_family = std::move(value); }
105 inline void SetFamily(const char* value) { m_familyHasBeenSet = true; m_family.assign(value); }
106 inline TaskDefinition& WithFamily(const Aws::String& value) { SetFamily(value); return *this;}
107 inline TaskDefinition& WithFamily(Aws::String&& value) { SetFamily(std::move(value)); return *this;}
108 inline TaskDefinition& WithFamily(const char* value) { SetFamily(value); return *this;}
110
112
121 inline const Aws::String& GetTaskRoleArn() const{ return m_taskRoleArn; }
122 inline bool TaskRoleArnHasBeenSet() const { return m_taskRoleArnHasBeenSet; }
123 inline void SetTaskRoleArn(const Aws::String& value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn = value; }
124 inline void SetTaskRoleArn(Aws::String&& value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn = std::move(value); }
125 inline void SetTaskRoleArn(const char* value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn.assign(value); }
126 inline TaskDefinition& WithTaskRoleArn(const Aws::String& value) { SetTaskRoleArn(value); return *this;}
127 inline TaskDefinition& WithTaskRoleArn(Aws::String&& value) { SetTaskRoleArn(std::move(value)); return *this;}
128 inline TaskDefinition& WithTaskRoleArn(const char* value) { SetTaskRoleArn(value); return *this;}
130
132
140 inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
141 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
142 inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
143 inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
144 inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
145 inline TaskDefinition& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
146 inline TaskDefinition& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
147 inline TaskDefinition& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
149
151
183 inline const NetworkMode& GetNetworkMode() const{ return m_networkMode; }
184 inline bool NetworkModeHasBeenSet() const { return m_networkModeHasBeenSet; }
185 inline void SetNetworkMode(const NetworkMode& value) { m_networkModeHasBeenSet = true; m_networkMode = value; }
186 inline void SetNetworkMode(NetworkMode&& value) { m_networkModeHasBeenSet = true; m_networkMode = std::move(value); }
187 inline TaskDefinition& WithNetworkMode(const NetworkMode& value) { SetNetworkMode(value); return *this;}
188 inline TaskDefinition& WithNetworkMode(NetworkMode&& value) { SetNetworkMode(std::move(value)); return *this;}
190
192
200 inline int GetRevision() const{ return m_revision; }
201 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
202 inline void SetRevision(int value) { m_revisionHasBeenSet = true; m_revision = value; }
203 inline TaskDefinition& WithRevision(int value) { SetRevision(value); return *this;}
205
207
215 inline const Aws::Vector<Volume>& GetVolumes() const{ return m_volumes; }
216 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
217 inline void SetVolumes(const Aws::Vector<Volume>& value) { m_volumesHasBeenSet = true; m_volumes = value; }
218 inline void SetVolumes(Aws::Vector<Volume>&& value) { m_volumesHasBeenSet = true; m_volumes = std::move(value); }
219 inline TaskDefinition& WithVolumes(const Aws::Vector<Volume>& value) { SetVolumes(value); return *this;}
220 inline TaskDefinition& WithVolumes(Aws::Vector<Volume>&& value) { SetVolumes(std::move(value)); return *this;}
221 inline TaskDefinition& AddVolumes(const Volume& value) { m_volumesHasBeenSet = true; m_volumes.push_back(value); return *this; }
222 inline TaskDefinition& AddVolumes(Volume&& value) { m_volumesHasBeenSet = true; m_volumes.push_back(std::move(value)); return *this; }
224
226
229 inline const TaskDefinitionStatus& GetStatus() const{ return m_status; }
230 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
231 inline void SetStatus(const TaskDefinitionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
232 inline void SetStatus(TaskDefinitionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
233 inline TaskDefinition& WithStatus(const TaskDefinitionStatus& value) { SetStatus(value); return *this;}
234 inline TaskDefinition& WithStatus(TaskDefinitionStatus&& value) { SetStatus(std::move(value)); return *this;}
236
238
250 inline const Aws::Vector<Attribute>& GetRequiresAttributes() const{ return m_requiresAttributes; }
251 inline bool RequiresAttributesHasBeenSet() const { return m_requiresAttributesHasBeenSet; }
252 inline void SetRequiresAttributes(const Aws::Vector<Attribute>& value) { m_requiresAttributesHasBeenSet = true; m_requiresAttributes = value; }
253 inline void SetRequiresAttributes(Aws::Vector<Attribute>&& value) { m_requiresAttributesHasBeenSet = true; m_requiresAttributes = std::move(value); }
255 inline TaskDefinition& WithRequiresAttributes(Aws::Vector<Attribute>&& value) { SetRequiresAttributes(std::move(value)); return *this;}
256 inline TaskDefinition& AddRequiresAttributes(const Attribute& value) { m_requiresAttributesHasBeenSet = true; m_requiresAttributes.push_back(value); return *this; }
257 inline TaskDefinition& AddRequiresAttributes(Attribute&& value) { m_requiresAttributesHasBeenSet = true; m_requiresAttributes.push_back(std::move(value)); return *this; }
259
261
265 inline const Aws::Vector<TaskDefinitionPlacementConstraint>& GetPlacementConstraints() const{ return m_placementConstraints; }
266 inline bool PlacementConstraintsHasBeenSet() const { return m_placementConstraintsHasBeenSet; }
267 inline void SetPlacementConstraints(const Aws::Vector<TaskDefinitionPlacementConstraint>& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints = value; }
268 inline void SetPlacementConstraints(Aws::Vector<TaskDefinitionPlacementConstraint>&& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints = std::move(value); }
271 inline TaskDefinition& AddPlacementConstraints(const TaskDefinitionPlacementConstraint& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints.push_back(value); return *this; }
272 inline TaskDefinition& AddPlacementConstraints(TaskDefinitionPlacementConstraint&& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints.push_back(std::move(value)); return *this; }
274
276
283 inline const Aws::Vector<Compatibility>& GetCompatibilities() const{ return m_compatibilities; }
284 inline bool CompatibilitiesHasBeenSet() const { return m_compatibilitiesHasBeenSet; }
285 inline void SetCompatibilities(const Aws::Vector<Compatibility>& value) { m_compatibilitiesHasBeenSet = true; m_compatibilities = value; }
286 inline void SetCompatibilities(Aws::Vector<Compatibility>&& value) { m_compatibilitiesHasBeenSet = true; m_compatibilities = std::move(value); }
288 inline TaskDefinition& WithCompatibilities(Aws::Vector<Compatibility>&& value) { SetCompatibilities(std::move(value)); return *this;}
289 inline TaskDefinition& AddCompatibilities(const Compatibility& value) { m_compatibilitiesHasBeenSet = true; m_compatibilities.push_back(value); return *this; }
290 inline TaskDefinition& AddCompatibilities(Compatibility&& value) { m_compatibilitiesHasBeenSet = true; m_compatibilities.push_back(std::move(value)); return *this; }
292
294
300 inline const RuntimePlatform& GetRuntimePlatform() const{ return m_runtimePlatform; }
301 inline bool RuntimePlatformHasBeenSet() const { return m_runtimePlatformHasBeenSet; }
302 inline void SetRuntimePlatform(const RuntimePlatform& value) { m_runtimePlatformHasBeenSet = true; m_runtimePlatform = value; }
303 inline void SetRuntimePlatform(RuntimePlatform&& value) { m_runtimePlatformHasBeenSet = true; m_runtimePlatform = std::move(value); }
304 inline TaskDefinition& WithRuntimePlatform(const RuntimePlatform& value) { SetRuntimePlatform(value); return *this;}
305 inline TaskDefinition& WithRuntimePlatform(RuntimePlatform&& value) { SetRuntimePlatform(std::move(value)); return *this;}
307
309
317 inline const Aws::Vector<Compatibility>& GetRequiresCompatibilities() const{ return m_requiresCompatibilities; }
318 inline bool RequiresCompatibilitiesHasBeenSet() const { return m_requiresCompatibilitiesHasBeenSet; }
319 inline void SetRequiresCompatibilities(const Aws::Vector<Compatibility>& value) { m_requiresCompatibilitiesHasBeenSet = true; m_requiresCompatibilities = value; }
320 inline void SetRequiresCompatibilities(Aws::Vector<Compatibility>&& value) { m_requiresCompatibilitiesHasBeenSet = true; m_requiresCompatibilities = std::move(value); }
323 inline TaskDefinition& AddRequiresCompatibilities(const Compatibility& value) { m_requiresCompatibilitiesHasBeenSet = true; m_requiresCompatibilities.push_back(value); return *this; }
324 inline TaskDefinition& AddRequiresCompatibilities(Compatibility&& value) { m_requiresCompatibilitiesHasBeenSet = true; m_requiresCompatibilities.push_back(std::move(value)); return *this; }
326
328
352 inline const Aws::String& GetCpu() const{ return m_cpu; }
353 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
354 inline void SetCpu(const Aws::String& value) { m_cpuHasBeenSet = true; m_cpu = value; }
355 inline void SetCpu(Aws::String&& value) { m_cpuHasBeenSet = true; m_cpu = std::move(value); }
356 inline void SetCpu(const char* value) { m_cpuHasBeenSet = true; m_cpu.assign(value); }
357 inline TaskDefinition& WithCpu(const Aws::String& value) { SetCpu(value); return *this;}
358 inline TaskDefinition& WithCpu(Aws::String&& value) { SetCpu(std::move(value)); return *this;}
359 inline TaskDefinition& WithCpu(const char* value) { SetCpu(value); return *this;}
361
363
389 inline const Aws::String& GetMemory() const{ return m_memory; }
390 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
391 inline void SetMemory(const Aws::String& value) { m_memoryHasBeenSet = true; m_memory = value; }
392 inline void SetMemory(Aws::String&& value) { m_memoryHasBeenSet = true; m_memory = std::move(value); }
393 inline void SetMemory(const char* value) { m_memoryHasBeenSet = true; m_memory.assign(value); }
394 inline TaskDefinition& WithMemory(const Aws::String& value) { SetMemory(value); return *this;}
395 inline TaskDefinition& WithMemory(Aws::String&& value) { SetMemory(std::move(value)); return *this;}
396 inline TaskDefinition& WithMemory(const char* value) { SetMemory(value); return *this;}
398
400
403 inline const Aws::Vector<InferenceAccelerator>& GetInferenceAccelerators() const{ return m_inferenceAccelerators; }
404 inline bool InferenceAcceleratorsHasBeenSet() const { return m_inferenceAcceleratorsHasBeenSet; }
405 inline void SetInferenceAccelerators(const Aws::Vector<InferenceAccelerator>& value) { m_inferenceAcceleratorsHasBeenSet = true; m_inferenceAccelerators = value; }
406 inline void SetInferenceAccelerators(Aws::Vector<InferenceAccelerator>&& value) { m_inferenceAcceleratorsHasBeenSet = true; m_inferenceAccelerators = std::move(value); }
409 inline TaskDefinition& AddInferenceAccelerators(const InferenceAccelerator& value) { m_inferenceAcceleratorsHasBeenSet = true; m_inferenceAccelerators.push_back(value); return *this; }
410 inline TaskDefinition& AddInferenceAccelerators(InferenceAccelerator&& value) { m_inferenceAcceleratorsHasBeenSet = true; m_inferenceAccelerators.push_back(std::move(value)); return *this; }
412
414
437 inline const PidMode& GetPidMode() const{ return m_pidMode; }
438 inline bool PidModeHasBeenSet() const { return m_pidModeHasBeenSet; }
439 inline void SetPidMode(const PidMode& value) { m_pidModeHasBeenSet = true; m_pidMode = value; }
440 inline void SetPidMode(PidMode&& value) { m_pidModeHasBeenSet = true; m_pidMode = std::move(value); }
441 inline TaskDefinition& WithPidMode(const PidMode& value) { SetPidMode(value); return *this;}
442 inline TaskDefinition& WithPidMode(PidMode&& value) { SetPidMode(std::move(value)); return *this;}
444
446
475 inline const IpcMode& GetIpcMode() const{ return m_ipcMode; }
476 inline bool IpcModeHasBeenSet() const { return m_ipcModeHasBeenSet; }
477 inline void SetIpcMode(const IpcMode& value) { m_ipcModeHasBeenSet = true; m_ipcMode = value; }
478 inline void SetIpcMode(IpcMode&& value) { m_ipcModeHasBeenSet = true; m_ipcMode = std::move(value); }
479 inline TaskDefinition& WithIpcMode(const IpcMode& value) { SetIpcMode(value); return *this;}
480 inline TaskDefinition& WithIpcMode(IpcMode&& value) { SetIpcMode(std::move(value)); return *this;}
482
484
496 inline const ProxyConfiguration& GetProxyConfiguration() const{ return m_proxyConfiguration; }
497 inline bool ProxyConfigurationHasBeenSet() const { return m_proxyConfigurationHasBeenSet; }
498 inline void SetProxyConfiguration(const ProxyConfiguration& value) { m_proxyConfigurationHasBeenSet = true; m_proxyConfiguration = value; }
499 inline void SetProxyConfiguration(ProxyConfiguration&& value) { m_proxyConfigurationHasBeenSet = true; m_proxyConfiguration = std::move(value); }
501 inline TaskDefinition& WithProxyConfiguration(ProxyConfiguration&& value) { SetProxyConfiguration(std::move(value)); return *this;}
503
505
508 inline const Aws::Utils::DateTime& GetRegisteredAt() const{ return m_registeredAt; }
509 inline bool RegisteredAtHasBeenSet() const { return m_registeredAtHasBeenSet; }
510 inline void SetRegisteredAt(const Aws::Utils::DateTime& value) { m_registeredAtHasBeenSet = true; m_registeredAt = value; }
511 inline void SetRegisteredAt(Aws::Utils::DateTime&& value) { m_registeredAtHasBeenSet = true; m_registeredAt = std::move(value); }
512 inline TaskDefinition& WithRegisteredAt(const Aws::Utils::DateTime& value) { SetRegisteredAt(value); return *this;}
513 inline TaskDefinition& WithRegisteredAt(Aws::Utils::DateTime&& value) { SetRegisteredAt(std::move(value)); return *this;}
515
517
521 inline const Aws::Utils::DateTime& GetDeregisteredAt() const{ return m_deregisteredAt; }
522 inline bool DeregisteredAtHasBeenSet() const { return m_deregisteredAtHasBeenSet; }
523 inline void SetDeregisteredAt(const Aws::Utils::DateTime& value) { m_deregisteredAtHasBeenSet = true; m_deregisteredAt = value; }
524 inline void SetDeregisteredAt(Aws::Utils::DateTime&& value) { m_deregisteredAtHasBeenSet = true; m_deregisteredAt = std::move(value); }
525 inline TaskDefinition& WithDeregisteredAt(const Aws::Utils::DateTime& value) { SetDeregisteredAt(value); return *this;}
526 inline TaskDefinition& WithDeregisteredAt(Aws::Utils::DateTime&& value) { SetDeregisteredAt(std::move(value)); return *this;}
528
530
533 inline const Aws::String& GetRegisteredBy() const{ return m_registeredBy; }
534 inline bool RegisteredByHasBeenSet() const { return m_registeredByHasBeenSet; }
535 inline void SetRegisteredBy(const Aws::String& value) { m_registeredByHasBeenSet = true; m_registeredBy = value; }
536 inline void SetRegisteredBy(Aws::String&& value) { m_registeredByHasBeenSet = true; m_registeredBy = std::move(value); }
537 inline void SetRegisteredBy(const char* value) { m_registeredByHasBeenSet = true; m_registeredBy.assign(value); }
538 inline TaskDefinition& WithRegisteredBy(const Aws::String& value) { SetRegisteredBy(value); return *this;}
539 inline TaskDefinition& WithRegisteredBy(Aws::String&& value) { SetRegisteredBy(std::move(value)); return *this;}
540 inline TaskDefinition& WithRegisteredBy(const char* value) { SetRegisteredBy(value); return *this;}
542
544
548 inline const EphemeralStorage& GetEphemeralStorage() const{ return m_ephemeralStorage; }
549 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
550 inline void SetEphemeralStorage(const EphemeralStorage& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = value; }
551 inline void SetEphemeralStorage(EphemeralStorage&& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = std::move(value); }
552 inline TaskDefinition& WithEphemeralStorage(const EphemeralStorage& value) { SetEphemeralStorage(value); return *this;}
553 inline TaskDefinition& WithEphemeralStorage(EphemeralStorage&& value) { SetEphemeralStorage(std::move(value)); return *this;}
555 private:
556
557 Aws::String m_taskDefinitionArn;
558 bool m_taskDefinitionArnHasBeenSet = false;
559
560 Aws::Vector<ContainerDefinition> m_containerDefinitions;
561 bool m_containerDefinitionsHasBeenSet = false;
562
563 Aws::String m_family;
564 bool m_familyHasBeenSet = false;
565
566 Aws::String m_taskRoleArn;
567 bool m_taskRoleArnHasBeenSet = false;
568
569 Aws::String m_executionRoleArn;
570 bool m_executionRoleArnHasBeenSet = false;
571
572 NetworkMode m_networkMode;
573 bool m_networkModeHasBeenSet = false;
574
575 int m_revision;
576 bool m_revisionHasBeenSet = false;
577
578 Aws::Vector<Volume> m_volumes;
579 bool m_volumesHasBeenSet = false;
580
581 TaskDefinitionStatus m_status;
582 bool m_statusHasBeenSet = false;
583
584 Aws::Vector<Attribute> m_requiresAttributes;
585 bool m_requiresAttributesHasBeenSet = false;
586
588 bool m_placementConstraintsHasBeenSet = false;
589
590 Aws::Vector<Compatibility> m_compatibilities;
591 bool m_compatibilitiesHasBeenSet = false;
592
593 RuntimePlatform m_runtimePlatform;
594 bool m_runtimePlatformHasBeenSet = false;
595
596 Aws::Vector<Compatibility> m_requiresCompatibilities;
597 bool m_requiresCompatibilitiesHasBeenSet = false;
598
599 Aws::String m_cpu;
600 bool m_cpuHasBeenSet = false;
601
602 Aws::String m_memory;
603 bool m_memoryHasBeenSet = false;
604
605 Aws::Vector<InferenceAccelerator> m_inferenceAccelerators;
606 bool m_inferenceAcceleratorsHasBeenSet = false;
607
608 PidMode m_pidMode;
609 bool m_pidModeHasBeenSet = false;
610
611 IpcMode m_ipcMode;
612 bool m_ipcModeHasBeenSet = false;
613
614 ProxyConfiguration m_proxyConfiguration;
615 bool m_proxyConfigurationHasBeenSet = false;
616
617 Aws::Utils::DateTime m_registeredAt;
618 bool m_registeredAtHasBeenSet = false;
619
620 Aws::Utils::DateTime m_deregisteredAt;
621 bool m_deregisteredAtHasBeenSet = false;
622
623 Aws::String m_registeredBy;
624 bool m_registeredByHasBeenSet = false;
625
626 EphemeralStorage m_ephemeralStorage;
627 bool m_ephemeralStorageHasBeenSet = false;
628 };
629
630} // namespace Model
631} // namespace ECS
632} // namespace Aws
const Aws::String & GetRegisteredBy() const
TaskDefinition & AddVolumes(const Volume &value)
void SetDeregisteredAt(const Aws::Utils::DateTime &value)
const Aws::String & GetMemory() const
TaskDefinition & WithPidMode(const PidMode &value)
TaskDefinition & WithContainerDefinitions(const Aws::Vector< ContainerDefinition > &value)
const NetworkMode & GetNetworkMode() const
TaskDefinition & WithCpu(const Aws::String &value)
void SetProxyConfiguration(const ProxyConfiguration &value)
void SetIpcMode(const IpcMode &value)
const Aws::String & GetCpu() const
TaskDefinition & WithFamily(const Aws::String &value)
const Aws::Vector< Volume > & GetVolumes() const
TaskDefinition & WithExecutionRoleArn(const char *value)
void SetContainerDefinitions(const Aws::Vector< ContainerDefinition > &value)
TaskDefinition & WithMemory(const char *value)
TaskDefinition & AddRequiresAttributes(const Attribute &value)
void SetIpcMode(IpcMode &&value)
const ProxyConfiguration & GetProxyConfiguration() const
void SetRuntimePlatform(const RuntimePlatform &value)
void SetVolumes(Aws::Vector< Volume > &&value)
const Aws::Vector< Compatibility > & GetCompatibilities() const
TaskDefinition & WithCpu(Aws::String &&value)
const Aws::String & GetTaskDefinitionArn() const
void SetRegisteredBy(Aws::String &&value)
TaskDefinition & WithFamily(const char *value)
void SetRegisteredBy(const char *value)
TaskDefinition & WithTaskRoleArn(const Aws::String &value)
void SetEphemeralStorage(EphemeralStorage &&value)
TaskDefinition & WithEphemeralStorage(const EphemeralStorage &value)
void SetRequiresAttributes(const Aws::Vector< Attribute > &value)
TaskDefinition & WithMemory(Aws::String &&value)
TaskDefinition & WithTaskRoleArn(const char *value)
void SetTaskDefinitionArn(const char *value)
const Aws::String & GetTaskRoleArn() const
TaskDefinition & WithVolumes(const Aws::Vector< Volume > &value)
void SetMemory(const Aws::String &value)
AWS_ECS_API TaskDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVolumes(const Aws::Vector< Volume > &value)
void SetRegisteredAt(Aws::Utils::DateTime &&value)
void SetExecutionRoleArn(Aws::String &&value)
void SetMemory(Aws::String &&value)
void SetPlacementConstraints(const Aws::Vector< TaskDefinitionPlacementConstraint > &value)
TaskDefinition & WithPidMode(PidMode &&value)
TaskDefinition & AddPlacementConstraints(TaskDefinitionPlacementConstraint &&value)
void SetExecutionRoleArn(const char *value)
void SetTaskDefinitionArn(const Aws::String &value)
TaskDefinition & WithTaskRoleArn(Aws::String &&value)
void SetCpu(Aws::String &&value)
TaskDefinition & AddPlacementConstraints(const TaskDefinitionPlacementConstraint &value)
TaskDefinition & WithProxyConfiguration(const ProxyConfiguration &value)
TaskDefinition & WithNetworkMode(const NetworkMode &value)
TaskDefinition & WithRegisteredAt(Aws::Utils::DateTime &&value)
AWS_ECS_API TaskDefinition(Aws::Utils::Json::JsonView jsonValue)
TaskDefinition & AddContainerDefinitions(ContainerDefinition &&value)
void SetInferenceAccelerators(const Aws::Vector< InferenceAccelerator > &value)
void SetTaskRoleArn(const char *value)
const IpcMode & GetIpcMode() const
void SetRequiresCompatibilities(Aws::Vector< Compatibility > &&value)
TaskDefinition & WithInferenceAccelerators(Aws::Vector< InferenceAccelerator > &&value)
const RuntimePlatform & GetRuntimePlatform() const
void SetRegisteredAt(const Aws::Utils::DateTime &value)
TaskDefinition & WithNetworkMode(NetworkMode &&value)
TaskDefinition & WithTaskDefinitionArn(const char *value)
void SetFamily(const char *value)
void SetRuntimePlatform(RuntimePlatform &&value)
void SetTaskDefinitionArn(Aws::String &&value)
void SetStatus(TaskDefinitionStatus &&value)
void SetCompatibilities(Aws::Vector< Compatibility > &&value)
void SetNetworkMode(const NetworkMode &value)
TaskDefinition & WithCpu(const char *value)
void SetCompatibilities(const Aws::Vector< Compatibility > &value)
const Aws::Vector< InferenceAccelerator > & GetInferenceAccelerators() const
TaskDefinition & AddInferenceAccelerators(const InferenceAccelerator &value)
TaskDefinition & WithStatus(const TaskDefinitionStatus &value)
void SetTaskRoleArn(Aws::String &&value)
TaskDefinition & WithRegisteredAt(const Aws::Utils::DateTime &value)
TaskDefinition & WithEphemeralStorage(EphemeralStorage &&value)
void SetMemory(const char *value)
void SetRequiresCompatibilities(const Aws::Vector< Compatibility > &value)
TaskDefinition & WithCompatibilities(Aws::Vector< Compatibility > &&value)
TaskDefinition & WithRequiresCompatibilities(Aws::Vector< Compatibility > &&value)
const Aws::Vector< Compatibility > & GetRequiresCompatibilities() const
TaskDefinition & AddRequiresAttributes(Attribute &&value)
const Aws::Vector< Attribute > & GetRequiresAttributes() const
TaskDefinition & AddInferenceAccelerators(InferenceAccelerator &&value)
TaskDefinition & WithTaskDefinitionArn(Aws::String &&value)
void SetPlacementConstraints(Aws::Vector< TaskDefinitionPlacementConstraint > &&value)
TaskDefinition & WithFamily(Aws::String &&value)
TaskDefinition & WithRuntimePlatform(RuntimePlatform &&value)
const Aws::String & GetExecutionRoleArn() const
TaskDefinition & WithMemory(const Aws::String &value)
const EphemeralStorage & GetEphemeralStorage() const
void SetFamily(Aws::String &&value)
void SetRegisteredBy(const Aws::String &value)
TaskDefinition & WithRequiresAttributes(Aws::Vector< Attribute > &&value)
void SetExecutionRoleArn(const Aws::String &value)
TaskDefinition & WithRegisteredBy(Aws::String &&value)
const Aws::Vector< TaskDefinitionPlacementConstraint > & GetPlacementConstraints() const
TaskDefinition & WithVolumes(Aws::Vector< Volume > &&value)
TaskDefinition & WithDeregisteredAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetDeregisteredAt() const
TaskDefinition & WithRevision(int value)
TaskDefinition & WithRequiresCompatibilities(const Aws::Vector< Compatibility > &value)
TaskDefinition & AddCompatibilities(const Compatibility &value)
void SetFamily(const Aws::String &value)
TaskDefinition & WithPlacementConstraints(const Aws::Vector< TaskDefinitionPlacementConstraint > &value)
const Aws::String & GetFamily() const
TaskDefinition & AddVolumes(Volume &&value)
TaskDefinition & AddRequiresCompatibilities(const Compatibility &value)
TaskDefinition & WithRegisteredBy(const Aws::String &value)
void SetPidMode(PidMode &&value)
TaskDefinition & WithExecutionRoleArn(const Aws::String &value)
TaskDefinition & WithIpcMode(const IpcMode &value)
void SetTaskRoleArn(const Aws::String &value)
TaskDefinition & WithStatus(TaskDefinitionStatus &&value)
TaskDefinition & WithProxyConfiguration(ProxyConfiguration &&value)
TaskDefinition & AddCompatibilities(Compatibility &&value)
TaskDefinition & WithContainerDefinitions(Aws::Vector< ContainerDefinition > &&value)
void SetEphemeralStorage(const EphemeralStorage &value)
TaskDefinition & AddContainerDefinitions(const ContainerDefinition &value)
TaskDefinition & WithTaskDefinitionArn(const Aws::String &value)
void SetProxyConfiguration(ProxyConfiguration &&value)
void SetRequiresAttributes(Aws::Vector< Attribute > &&value)
const PidMode & GetPidMode() const
void SetDeregisteredAt(Aws::Utils::DateTime &&value)
TaskDefinition & WithRuntimePlatform(const RuntimePlatform &value)
void SetCpu(const char *value)
void SetPidMode(const PidMode &value)
void SetInferenceAccelerators(Aws::Vector< InferenceAccelerator > &&value)
void SetNetworkMode(NetworkMode &&value)
TaskDefinition & WithIpcMode(IpcMode &&value)
const Aws::Utils::DateTime & GetRegisteredAt() const
void SetStatus(const TaskDefinitionStatus &value)
TaskDefinition & WithPlacementConstraints(Aws::Vector< TaskDefinitionPlacementConstraint > &&value)
TaskDefinition & AddRequiresCompatibilities(Compatibility &&value)
TaskDefinition & WithCompatibilities(const Aws::Vector< Compatibility > &value)
const Aws::Vector< ContainerDefinition > & GetContainerDefinitions() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
TaskDefinition & WithRequiresAttributes(const Aws::Vector< Attribute > &value)
TaskDefinition & WithExecutionRoleArn(Aws::String &&value)
TaskDefinition & WithDeregisteredAt(Aws::Utils::DateTime &&value)
void SetCpu(const Aws::String &value)
void SetContainerDefinitions(Aws::Vector< ContainerDefinition > &&value)
TaskDefinition & WithInferenceAccelerators(const Aws::Vector< InferenceAccelerator > &value)
const TaskDefinitionStatus & GetStatus() const
TaskDefinition & WithRegisteredBy(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue