AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Task.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ecs/model/Connectivity.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ecs/model/HealthStatus.h>
13#include <aws/ecs/model/LaunchType.h>
14#include <aws/ecs/model/TaskOverride.h>
15#include <aws/ecs/model/TaskStopCode.h>
16#include <aws/ecs/model/EphemeralStorage.h>
17#include <aws/ecs/model/TaskEphemeralStorage.h>
18#include <aws/ecs/model/Attachment.h>
19#include <aws/ecs/model/Attribute.h>
20#include <aws/ecs/model/Container.h>
21#include <aws/ecs/model/InferenceAccelerator.h>
22#include <aws/ecs/model/Tag.h>
23#include <utility>
24
25namespace Aws
26{
27namespace Utils
28{
29namespace Json
30{
31 class JsonValue;
32 class JsonView;
33} // namespace Json
34} // namespace Utils
35namespace ECS
36{
37namespace Model
38{
39
45 class Task
46 {
47 public:
48 AWS_ECS_API Task() = default;
49 AWS_ECS_API Task(Aws::Utils::Json::JsonView jsonValue);
50 AWS_ECS_API Task& operator=(Aws::Utils::Json::JsonView jsonValue);
52
53
55
59 inline const Aws::Vector<Attachment>& GetAttachments() const { return m_attachments; }
60 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
61 template<typename AttachmentsT = Aws::Vector<Attachment>>
62 void SetAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::forward<AttachmentsT>(value); }
63 template<typename AttachmentsT = Aws::Vector<Attachment>>
64 Task& WithAttachments(AttachmentsT&& value) { SetAttachments(std::forward<AttachmentsT>(value)); return *this;}
65 template<typename AttachmentsT = Attachment>
66 Task& AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments.emplace_back(std::forward<AttachmentsT>(value)); return *this; }
68
70
73 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
74 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
75 template<typename AttributesT = Aws::Vector<Attribute>>
76 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
77 template<typename AttributesT = Aws::Vector<Attribute>>
78 Task& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
79 template<typename AttributesT = Attribute>
80 Task& AddAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes.emplace_back(std::forward<AttributesT>(value)); return *this; }
82
84
87 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
88 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
89 template<typename AvailabilityZoneT = Aws::String>
90 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
91 template<typename AvailabilityZoneT = Aws::String>
92 Task& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
94
96
99 inline const Aws::String& GetCapacityProviderName() const { return m_capacityProviderName; }
100 inline bool CapacityProviderNameHasBeenSet() const { return m_capacityProviderNameHasBeenSet; }
101 template<typename CapacityProviderNameT = Aws::String>
102 void SetCapacityProviderName(CapacityProviderNameT&& value) { m_capacityProviderNameHasBeenSet = true; m_capacityProviderName = std::forward<CapacityProviderNameT>(value); }
103 template<typename CapacityProviderNameT = Aws::String>
104 Task& WithCapacityProviderName(CapacityProviderNameT&& value) { SetCapacityProviderName(std::forward<CapacityProviderNameT>(value)); return *this;}
106
108
111 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
112 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
113 template<typename ClusterArnT = Aws::String>
114 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
115 template<typename ClusterArnT = Aws::String>
116 Task& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
118
120
123 inline Connectivity GetConnectivity() const { return m_connectivity; }
124 inline bool ConnectivityHasBeenSet() const { return m_connectivityHasBeenSet; }
125 inline void SetConnectivity(Connectivity value) { m_connectivityHasBeenSet = true; m_connectivity = value; }
126 inline Task& WithConnectivity(Connectivity value) { SetConnectivity(value); return *this;}
128
130
134 inline const Aws::Utils::DateTime& GetConnectivityAt() const { return m_connectivityAt; }
135 inline bool ConnectivityAtHasBeenSet() const { return m_connectivityAtHasBeenSet; }
136 template<typename ConnectivityAtT = Aws::Utils::DateTime>
137 void SetConnectivityAt(ConnectivityAtT&& value) { m_connectivityAtHasBeenSet = true; m_connectivityAt = std::forward<ConnectivityAtT>(value); }
138 template<typename ConnectivityAtT = Aws::Utils::DateTime>
139 Task& WithConnectivityAt(ConnectivityAtT&& value) { SetConnectivityAt(std::forward<ConnectivityAtT>(value)); return *this;}
141
143
146 inline const Aws::String& GetContainerInstanceArn() const { return m_containerInstanceArn; }
147 inline bool ContainerInstanceArnHasBeenSet() const { return m_containerInstanceArnHasBeenSet; }
148 template<typename ContainerInstanceArnT = Aws::String>
149 void SetContainerInstanceArn(ContainerInstanceArnT&& value) { m_containerInstanceArnHasBeenSet = true; m_containerInstanceArn = std::forward<ContainerInstanceArnT>(value); }
150 template<typename ContainerInstanceArnT = Aws::String>
151 Task& WithContainerInstanceArn(ContainerInstanceArnT&& value) { SetContainerInstanceArn(std::forward<ContainerInstanceArnT>(value)); return *this;}
153
155
158 inline const Aws::Vector<Container>& GetContainers() const { return m_containers; }
159 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
160 template<typename ContainersT = Aws::Vector<Container>>
161 void SetContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers = std::forward<ContainersT>(value); }
162 template<typename ContainersT = Aws::Vector<Container>>
163 Task& WithContainers(ContainersT&& value) { SetContainers(std::forward<ContainersT>(value)); return *this;}
164 template<typename ContainersT = Container>
165 Task& AddContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers.emplace_back(std::forward<ContainersT>(value)); return *this; }
167
169
184 inline const Aws::String& GetCpu() const { return m_cpu; }
185 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
186 template<typename CpuT = Aws::String>
187 void SetCpu(CpuT&& value) { m_cpuHasBeenSet = true; m_cpu = std::forward<CpuT>(value); }
188 template<typename CpuT = Aws::String>
189 Task& WithCpu(CpuT&& value) { SetCpu(std::forward<CpuT>(value)); return *this;}
191
193
197 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
198 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
199 template<typename CreatedAtT = Aws::Utils::DateTime>
200 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
201 template<typename CreatedAtT = Aws::Utils::DateTime>
202 Task& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
204
206
211 inline const Aws::String& GetDesiredStatus() const { return m_desiredStatus; }
212 inline bool DesiredStatusHasBeenSet() const { return m_desiredStatusHasBeenSet; }
213 template<typename DesiredStatusT = Aws::String>
214 void SetDesiredStatus(DesiredStatusT&& value) { m_desiredStatusHasBeenSet = true; m_desiredStatus = std::forward<DesiredStatusT>(value); }
215 template<typename DesiredStatusT = Aws::String>
216 Task& WithDesiredStatus(DesiredStatusT&& value) { SetDesiredStatus(std::forward<DesiredStatusT>(value)); return *this;}
218
220
225 inline bool GetEnableExecuteCommand() const { return m_enableExecuteCommand; }
226 inline bool EnableExecuteCommandHasBeenSet() const { return m_enableExecuteCommandHasBeenSet; }
227 inline void SetEnableExecuteCommand(bool value) { m_enableExecuteCommandHasBeenSet = true; m_enableExecuteCommand = value; }
228 inline Task& WithEnableExecuteCommand(bool value) { SetEnableExecuteCommand(value); return *this;}
230
232
235 inline const Aws::Utils::DateTime& GetExecutionStoppedAt() const { return m_executionStoppedAt; }
236 inline bool ExecutionStoppedAtHasBeenSet() const { return m_executionStoppedAtHasBeenSet; }
237 template<typename ExecutionStoppedAtT = Aws::Utils::DateTime>
238 void SetExecutionStoppedAt(ExecutionStoppedAtT&& value) { m_executionStoppedAtHasBeenSet = true; m_executionStoppedAt = std::forward<ExecutionStoppedAtT>(value); }
239 template<typename ExecutionStoppedAtT = Aws::Utils::DateTime>
240 Task& WithExecutionStoppedAt(ExecutionStoppedAtT&& value) { SetExecutionStoppedAt(std::forward<ExecutionStoppedAtT>(value)); return *this;}
242
244
247 inline const Aws::String& GetGroup() const { return m_group; }
248 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
249 template<typename GroupT = Aws::String>
250 void SetGroup(GroupT&& value) { m_groupHasBeenSet = true; m_group = std::forward<GroupT>(value); }
251 template<typename GroupT = Aws::String>
252 Task& WithGroup(GroupT&& value) { SetGroup(std::forward<GroupT>(value)); return *this;}
254
256
270 inline HealthStatus GetHealthStatus() const { return m_healthStatus; }
271 inline bool HealthStatusHasBeenSet() const { return m_healthStatusHasBeenSet; }
272 inline void SetHealthStatus(HealthStatus value) { m_healthStatusHasBeenSet = true; m_healthStatus = value; }
273 inline Task& WithHealthStatus(HealthStatus value) { SetHealthStatus(value); return *this;}
275
277
280 inline const Aws::Vector<InferenceAccelerator>& GetInferenceAccelerators() const { return m_inferenceAccelerators; }
281 inline bool InferenceAcceleratorsHasBeenSet() const { return m_inferenceAcceleratorsHasBeenSet; }
282 template<typename InferenceAcceleratorsT = Aws::Vector<InferenceAccelerator>>
283 void SetInferenceAccelerators(InferenceAcceleratorsT&& value) { m_inferenceAcceleratorsHasBeenSet = true; m_inferenceAccelerators = std::forward<InferenceAcceleratorsT>(value); }
284 template<typename InferenceAcceleratorsT = Aws::Vector<InferenceAccelerator>>
285 Task& WithInferenceAccelerators(InferenceAcceleratorsT&& value) { SetInferenceAccelerators(std::forward<InferenceAcceleratorsT>(value)); return *this;}
286 template<typename InferenceAcceleratorsT = InferenceAccelerator>
287 Task& AddInferenceAccelerators(InferenceAcceleratorsT&& value) { m_inferenceAcceleratorsHasBeenSet = true; m_inferenceAccelerators.emplace_back(std::forward<InferenceAcceleratorsT>(value)); return *this; }
289
291
296 inline const Aws::String& GetLastStatus() const { return m_lastStatus; }
297 inline bool LastStatusHasBeenSet() const { return m_lastStatusHasBeenSet; }
298 template<typename LastStatusT = Aws::String>
299 void SetLastStatus(LastStatusT&& value) { m_lastStatusHasBeenSet = true; m_lastStatus = std::forward<LastStatusT>(value); }
300 template<typename LastStatusT = Aws::String>
301 Task& WithLastStatus(LastStatusT&& value) { SetLastStatus(std::forward<LastStatusT>(value)); return *this;}
303
305
311 inline LaunchType GetLaunchType() const { return m_launchType; }
312 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
313 inline void SetLaunchType(LaunchType value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
314 inline Task& WithLaunchType(LaunchType value) { SetLaunchType(value); return *this;}
316
318
342 inline const Aws::String& GetMemory() const { return m_memory; }
343 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
344 template<typename MemoryT = Aws::String>
345 void SetMemory(MemoryT&& value) { m_memoryHasBeenSet = true; m_memory = std::forward<MemoryT>(value); }
346 template<typename MemoryT = Aws::String>
347 Task& WithMemory(MemoryT&& value) { SetMemory(std::forward<MemoryT>(value)); return *this;}
349
351
354 inline const TaskOverride& GetOverrides() const { return m_overrides; }
355 inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
356 template<typename OverridesT = TaskOverride>
357 void SetOverrides(OverridesT&& value) { m_overridesHasBeenSet = true; m_overrides = std::forward<OverridesT>(value); }
358 template<typename OverridesT = TaskOverride>
359 Task& WithOverrides(OverridesT&& value) { SetOverrides(std::forward<OverridesT>(value)); return *this;}
361
363
371 inline const Aws::String& GetPlatformVersion() const { return m_platformVersion; }
372 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
373 template<typename PlatformVersionT = Aws::String>
374 void SetPlatformVersion(PlatformVersionT&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::forward<PlatformVersionT>(value); }
375 template<typename PlatformVersionT = Aws::String>
376 Task& WithPlatformVersion(PlatformVersionT&& value) { SetPlatformVersion(std::forward<PlatformVersionT>(value)); return *this;}
378
380
386 inline const Aws::String& GetPlatformFamily() const { return m_platformFamily; }
387 inline bool PlatformFamilyHasBeenSet() const { return m_platformFamilyHasBeenSet; }
388 template<typename PlatformFamilyT = Aws::String>
389 void SetPlatformFamily(PlatformFamilyT&& value) { m_platformFamilyHasBeenSet = true; m_platformFamily = std::forward<PlatformFamilyT>(value); }
390 template<typename PlatformFamilyT = Aws::String>
391 Task& WithPlatformFamily(PlatformFamilyT&& value) { SetPlatformFamily(std::forward<PlatformFamilyT>(value)); return *this;}
393
395
398 inline const Aws::Utils::DateTime& GetPullStartedAt() const { return m_pullStartedAt; }
399 inline bool PullStartedAtHasBeenSet() const { return m_pullStartedAtHasBeenSet; }
400 template<typename PullStartedAtT = Aws::Utils::DateTime>
401 void SetPullStartedAt(PullStartedAtT&& value) { m_pullStartedAtHasBeenSet = true; m_pullStartedAt = std::forward<PullStartedAtT>(value); }
402 template<typename PullStartedAtT = Aws::Utils::DateTime>
403 Task& WithPullStartedAt(PullStartedAtT&& value) { SetPullStartedAt(std::forward<PullStartedAtT>(value)); return *this;}
405
407
410 inline const Aws::Utils::DateTime& GetPullStoppedAt() const { return m_pullStoppedAt; }
411 inline bool PullStoppedAtHasBeenSet() const { return m_pullStoppedAtHasBeenSet; }
412 template<typename PullStoppedAtT = Aws::Utils::DateTime>
413 void SetPullStoppedAt(PullStoppedAtT&& value) { m_pullStoppedAtHasBeenSet = true; m_pullStoppedAt = std::forward<PullStoppedAtT>(value); }
414 template<typename PullStoppedAtT = Aws::Utils::DateTime>
415 Task& WithPullStoppedAt(PullStoppedAtT&& value) { SetPullStoppedAt(std::forward<PullStoppedAtT>(value)); return *this;}
417
419
424 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
425 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
426 template<typename StartedAtT = Aws::Utils::DateTime>
427 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
428 template<typename StartedAtT = Aws::Utils::DateTime>
429 Task& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
431
433
438 inline const Aws::String& GetStartedBy() const { return m_startedBy; }
439 inline bool StartedByHasBeenSet() const { return m_startedByHasBeenSet; }
440 template<typename StartedByT = Aws::String>
441 void SetStartedBy(StartedByT&& value) { m_startedByHasBeenSet = true; m_startedBy = std::forward<StartedByT>(value); }
442 template<typename StartedByT = Aws::String>
443 Task& WithStartedBy(StartedByT&& value) { SetStartedBy(std::forward<StartedByT>(value)); return *this;}
445
447
454 inline TaskStopCode GetStopCode() const { return m_stopCode; }
455 inline bool StopCodeHasBeenSet() const { return m_stopCodeHasBeenSet; }
456 inline void SetStopCode(TaskStopCode value) { m_stopCodeHasBeenSet = true; m_stopCode = value; }
457 inline Task& WithStopCode(TaskStopCode value) { SetStopCode(value); return *this;}
459
461
466 inline const Aws::Utils::DateTime& GetStoppedAt() const { return m_stoppedAt; }
467 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
468 template<typename StoppedAtT = Aws::Utils::DateTime>
469 void SetStoppedAt(StoppedAtT&& value) { m_stoppedAtHasBeenSet = true; m_stoppedAt = std::forward<StoppedAtT>(value); }
470 template<typename StoppedAtT = Aws::Utils::DateTime>
471 Task& WithStoppedAt(StoppedAtT&& value) { SetStoppedAt(std::forward<StoppedAtT>(value)); return *this;}
473
475
478 inline const Aws::String& GetStoppedReason() const { return m_stoppedReason; }
479 inline bool StoppedReasonHasBeenSet() const { return m_stoppedReasonHasBeenSet; }
480 template<typename StoppedReasonT = Aws::String>
481 void SetStoppedReason(StoppedReasonT&& value) { m_stoppedReasonHasBeenSet = true; m_stoppedReason = std::forward<StoppedReasonT>(value); }
482 template<typename StoppedReasonT = Aws::String>
483 Task& WithStoppedReason(StoppedReasonT&& value) { SetStoppedReason(std::forward<StoppedReasonT>(value)); return *this;}
485
487
492 inline const Aws::Utils::DateTime& GetStoppingAt() const { return m_stoppingAt; }
493 inline bool StoppingAtHasBeenSet() const { return m_stoppingAtHasBeenSet; }
494 template<typename StoppingAtT = Aws::Utils::DateTime>
495 void SetStoppingAt(StoppingAtT&& value) { m_stoppingAtHasBeenSet = true; m_stoppingAt = std::forward<StoppingAtT>(value); }
496 template<typename StoppingAtT = Aws::Utils::DateTime>
497 Task& WithStoppingAt(StoppingAtT&& value) { SetStoppingAt(std::forward<StoppingAtT>(value)); return *this;}
499
501
520 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
521 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
522 template<typename TagsT = Aws::Vector<Tag>>
523 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
524 template<typename TagsT = Aws::Vector<Tag>>
525 Task& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
526 template<typename TagsT = Tag>
527 Task& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
529
531
534 inline const Aws::String& GetTaskArn() const { return m_taskArn; }
535 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
536 template<typename TaskArnT = Aws::String>
537 void SetTaskArn(TaskArnT&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::forward<TaskArnT>(value); }
538 template<typename TaskArnT = Aws::String>
539 Task& WithTaskArn(TaskArnT&& value) { SetTaskArn(std::forward<TaskArnT>(value)); return *this;}
541
543
546 inline const Aws::String& GetTaskDefinitionArn() const { return m_taskDefinitionArn; }
547 inline bool TaskDefinitionArnHasBeenSet() const { return m_taskDefinitionArnHasBeenSet; }
548 template<typename TaskDefinitionArnT = Aws::String>
549 void SetTaskDefinitionArn(TaskDefinitionArnT&& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = std::forward<TaskDefinitionArnT>(value); }
550 template<typename TaskDefinitionArnT = Aws::String>
551 Task& WithTaskDefinitionArn(TaskDefinitionArnT&& value) { SetTaskDefinitionArn(std::forward<TaskDefinitionArnT>(value)); return *this;}
553
555
563 inline long long GetVersion() const { return m_version; }
564 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
565 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
566 inline Task& WithVersion(long long value) { SetVersion(value); return *this;}
568
570
573 inline const EphemeralStorage& GetEphemeralStorage() const { return m_ephemeralStorage; }
574 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
575 template<typename EphemeralStorageT = EphemeralStorage>
576 void SetEphemeralStorage(EphemeralStorageT&& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = std::forward<EphemeralStorageT>(value); }
577 template<typename EphemeralStorageT = EphemeralStorage>
578 Task& WithEphemeralStorage(EphemeralStorageT&& value) { SetEphemeralStorage(std::forward<EphemeralStorageT>(value)); return *this;}
580
582
585 inline const TaskEphemeralStorage& GetFargateEphemeralStorage() const { return m_fargateEphemeralStorage; }
586 inline bool FargateEphemeralStorageHasBeenSet() const { return m_fargateEphemeralStorageHasBeenSet; }
587 template<typename FargateEphemeralStorageT = TaskEphemeralStorage>
588 void SetFargateEphemeralStorage(FargateEphemeralStorageT&& value) { m_fargateEphemeralStorageHasBeenSet = true; m_fargateEphemeralStorage = std::forward<FargateEphemeralStorageT>(value); }
589 template<typename FargateEphemeralStorageT = TaskEphemeralStorage>
590 Task& WithFargateEphemeralStorage(FargateEphemeralStorageT&& value) { SetFargateEphemeralStorage(std::forward<FargateEphemeralStorageT>(value)); return *this;}
592 private:
593
594 Aws::Vector<Attachment> m_attachments;
595 bool m_attachmentsHasBeenSet = false;
596
597 Aws::Vector<Attribute> m_attributes;
598 bool m_attributesHasBeenSet = false;
599
600 Aws::String m_availabilityZone;
601 bool m_availabilityZoneHasBeenSet = false;
602
603 Aws::String m_capacityProviderName;
604 bool m_capacityProviderNameHasBeenSet = false;
605
606 Aws::String m_clusterArn;
607 bool m_clusterArnHasBeenSet = false;
608
609 Connectivity m_connectivity{Connectivity::NOT_SET};
610 bool m_connectivityHasBeenSet = false;
611
612 Aws::Utils::DateTime m_connectivityAt{};
613 bool m_connectivityAtHasBeenSet = false;
614
615 Aws::String m_containerInstanceArn;
616 bool m_containerInstanceArnHasBeenSet = false;
617
618 Aws::Vector<Container> m_containers;
619 bool m_containersHasBeenSet = false;
620
621 Aws::String m_cpu;
622 bool m_cpuHasBeenSet = false;
623
624 Aws::Utils::DateTime m_createdAt{};
625 bool m_createdAtHasBeenSet = false;
626
627 Aws::String m_desiredStatus;
628 bool m_desiredStatusHasBeenSet = false;
629
630 bool m_enableExecuteCommand{false};
631 bool m_enableExecuteCommandHasBeenSet = false;
632
633 Aws::Utils::DateTime m_executionStoppedAt{};
634 bool m_executionStoppedAtHasBeenSet = false;
635
636 Aws::String m_group;
637 bool m_groupHasBeenSet = false;
638
639 HealthStatus m_healthStatus{HealthStatus::NOT_SET};
640 bool m_healthStatusHasBeenSet = false;
641
642 Aws::Vector<InferenceAccelerator> m_inferenceAccelerators;
643 bool m_inferenceAcceleratorsHasBeenSet = false;
644
645 Aws::String m_lastStatus;
646 bool m_lastStatusHasBeenSet = false;
647
648 LaunchType m_launchType{LaunchType::NOT_SET};
649 bool m_launchTypeHasBeenSet = false;
650
651 Aws::String m_memory;
652 bool m_memoryHasBeenSet = false;
653
654 TaskOverride m_overrides;
655 bool m_overridesHasBeenSet = false;
656
657 Aws::String m_platformVersion;
658 bool m_platformVersionHasBeenSet = false;
659
660 Aws::String m_platformFamily;
661 bool m_platformFamilyHasBeenSet = false;
662
663 Aws::Utils::DateTime m_pullStartedAt{};
664 bool m_pullStartedAtHasBeenSet = false;
665
666 Aws::Utils::DateTime m_pullStoppedAt{};
667 bool m_pullStoppedAtHasBeenSet = false;
668
669 Aws::Utils::DateTime m_startedAt{};
670 bool m_startedAtHasBeenSet = false;
671
672 Aws::String m_startedBy;
673 bool m_startedByHasBeenSet = false;
674
676 bool m_stopCodeHasBeenSet = false;
677
678 Aws::Utils::DateTime m_stoppedAt{};
679 bool m_stoppedAtHasBeenSet = false;
680
681 Aws::String m_stoppedReason;
682 bool m_stoppedReasonHasBeenSet = false;
683
684 Aws::Utils::DateTime m_stoppingAt{};
685 bool m_stoppingAtHasBeenSet = false;
686
687 Aws::Vector<Tag> m_tags;
688 bool m_tagsHasBeenSet = false;
689
690 Aws::String m_taskArn;
691 bool m_taskArnHasBeenSet = false;
692
693 Aws::String m_taskDefinitionArn;
694 bool m_taskDefinitionArnHasBeenSet = false;
695
696 long long m_version{0};
697 bool m_versionHasBeenSet = false;
698
699 EphemeralStorage m_ephemeralStorage;
700 bool m_ephemeralStorageHasBeenSet = false;
701
702 TaskEphemeralStorage m_fargateEphemeralStorage;
703 bool m_fargateEphemeralStorageHasBeenSet = false;
704 };
705
706} // namespace Model
707} // namespace ECS
708} // namespace Aws
void SetLaunchType(LaunchType value)
Definition Task.h:313
Task & AddInferenceAccelerators(InferenceAcceleratorsT &&value)
Definition Task.h:287
bool EphemeralStorageHasBeenSet() const
Definition Task.h:574
void SetEphemeralStorage(EphemeralStorageT &&value)
Definition Task.h:576
void SetStopCode(TaskStopCode value)
Definition Task.h:456
void SetLastStatus(LastStatusT &&value)
Definition Task.h:299
Task & WithGroup(GroupT &&value)
Definition Task.h:252
Task & WithCpu(CpuT &&value)
Definition Task.h:189
TaskStopCode GetStopCode() const
Definition Task.h:454
void SetConnectivityAt(ConnectivityAtT &&value)
Definition Task.h:137
long long GetVersion() const
Definition Task.h:563
Task & AddContainers(ContainersT &&value)
Definition Task.h:165
Task & WithContainers(ContainersT &&value)
Definition Task.h:163
void SetTags(TagsT &&value)
Definition Task.h:523
Task & AddAttributes(AttributesT &&value)
Definition Task.h:80
bool VersionHasBeenSet() const
Definition Task.h:564
Task & WithCreatedAt(CreatedAtT &&value)
Definition Task.h:202
bool DesiredStatusHasBeenSet() const
Definition Task.h:212
void SetExecutionStoppedAt(ExecutionStoppedAtT &&value)
Definition Task.h:238
bool HealthStatusHasBeenSet() const
Definition Task.h:271
bool CapacityProviderNameHasBeenSet() const
Definition Task.h:100
const Aws::Vector< Attachment > & GetAttachments() const
Definition Task.h:59
void SetCapacityProviderName(CapacityProviderNameT &&value)
Definition Task.h:102
bool OverridesHasBeenSet() const
Definition Task.h:355
void SetPlatformVersion(PlatformVersionT &&value)
Definition Task.h:374
Task & WithAttributes(AttributesT &&value)
Definition Task.h:78
const Aws::String & GetAvailabilityZone() const
Definition Task.h:87
Task & WithFargateEphemeralStorage(FargateEphemeralStorageT &&value)
Definition Task.h:590
Task & WithInferenceAccelerators(InferenceAcceleratorsT &&value)
Definition Task.h:285
Task & WithDesiredStatus(DesiredStatusT &&value)
Definition Task.h:216
void SetCreatedAt(CreatedAtT &&value)
Definition Task.h:200
Task & WithCapacityProviderName(CapacityProviderNameT &&value)
Definition Task.h:104
Task & WithExecutionStoppedAt(ExecutionStoppedAtT &&value)
Definition Task.h:240
bool AttachmentsHasBeenSet() const
Definition Task.h:60
bool StartedAtHasBeenSet() const
Definition Task.h:425
const TaskOverride & GetOverrides() const
Definition Task.h:354
Task & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition Task.h:92
Task & WithLastStatus(LastStatusT &&value)
Definition Task.h:301
void SetContainerInstanceArn(ContainerInstanceArnT &&value)
Definition Task.h:149
Task & WithStoppedReason(StoppedReasonT &&value)
Definition Task.h:483
Task & WithLaunchType(LaunchType value)
Definition Task.h:314
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Task.h:197
Task & WithStopCode(TaskStopCode value)
Definition Task.h:457
void SetHealthStatus(HealthStatus value)
Definition Task.h:272
bool TaskArnHasBeenSet() const
Definition Task.h:535
bool LastStatusHasBeenSet() const
Definition Task.h:297
bool FargateEphemeralStorageHasBeenSet() const
Definition Task.h:586
void SetVersion(long long value)
Definition Task.h:565
Task & WithConnectivityAt(ConnectivityAtT &&value)
Definition Task.h:139
HealthStatus GetHealthStatus() const
Definition Task.h:270
bool EnableExecuteCommandHasBeenSet() const
Definition Task.h:226
Task & WithPullStoppedAt(PullStoppedAtT &&value)
Definition Task.h:415
Task & WithHealthStatus(HealthStatus value)
Definition Task.h:273
void SetFargateEphemeralStorage(FargateEphemeralStorageT &&value)
Definition Task.h:588
bool PlatformVersionHasBeenSet() const
Definition Task.h:372
bool StopCodeHasBeenSet() const
Definition Task.h:455
Task & WithEnableExecuteCommand(bool value)
Definition Task.h:228
const Aws::Utils::DateTime & GetStartedAt() const
Definition Task.h:424
Connectivity GetConnectivity() const
Definition Task.h:123
void SetAttachments(AttachmentsT &&value)
Definition Task.h:62
AWS_ECS_API Task & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStoppedReason() const
Definition Task.h:478
bool TaskDefinitionArnHasBeenSet() const
Definition Task.h:547
bool ExecutionStoppedAtHasBeenSet() const
Definition Task.h:236
bool AvailabilityZoneHasBeenSet() const
Definition Task.h:88
const Aws::String & GetContainerInstanceArn() const
Definition Task.h:146
const Aws::String & GetTaskArn() const
Definition Task.h:534
Task & WithStartedBy(StartedByT &&value)
Definition Task.h:443
void SetStoppingAt(StoppingAtT &&value)
Definition Task.h:495
Task & WithStoppingAt(StoppingAtT &&value)
Definition Task.h:497
bool PlatformFamilyHasBeenSet() const
Definition Task.h:387
void SetOverrides(OverridesT &&value)
Definition Task.h:357
bool ConnectivityHasBeenSet() const
Definition Task.h:124
Task & AddAttachments(AttachmentsT &&value)
Definition Task.h:66
bool ContainersHasBeenSet() const
Definition Task.h:159
bool CreatedAtHasBeenSet() const
Definition Task.h:198
Task & WithVersion(long long value)
Definition Task.h:566
const Aws::Utils::DateTime & GetConnectivityAt() const
Definition Task.h:134
AWS_ECS_API Task()=default
bool StoppingAtHasBeenSet() const
Definition Task.h:493
const Aws::String & GetClusterArn() const
Definition Task.h:111
const Aws::String & GetLastStatus() const
Definition Task.h:296
const Aws::String & GetMemory() const
Definition Task.h:342
void SetPullStartedAt(PullStartedAtT &&value)
Definition Task.h:401
const Aws::Utils::DateTime & GetStoppedAt() const
Definition Task.h:466
const Aws::String & GetCapacityProviderName() const
Definition Task.h:99
void SetPlatformFamily(PlatformFamilyT &&value)
Definition Task.h:389
Task & WithPullStartedAt(PullStartedAtT &&value)
Definition Task.h:403
Task & WithStoppedAt(StoppedAtT &&value)
Definition Task.h:471
const Aws::Utils::DateTime & GetPullStoppedAt() const
Definition Task.h:410
Task & WithAttachments(AttachmentsT &&value)
Definition Task.h:64
const Aws::Vector< Tag > & GetTags() const
Definition Task.h:520
bool MemoryHasBeenSet() const
Definition Task.h:343
bool TagsHasBeenSet() const
Definition Task.h:521
void SetStartedBy(StartedByT &&value)
Definition Task.h:441
const EphemeralStorage & GetEphemeralStorage() const
Definition Task.h:573
const Aws::String & GetCpu() const
Definition Task.h:184
Task & WithContainerInstanceArn(ContainerInstanceArnT &&value)
Definition Task.h:151
Task & WithClusterArn(ClusterArnT &&value)
Definition Task.h:116
void SetEnableExecuteCommand(bool value)
Definition Task.h:227
void SetTaskDefinitionArn(TaskDefinitionArnT &&value)
Definition Task.h:549
const Aws::String & GetGroup() const
Definition Task.h:247
const Aws::Vector< Container > & GetContainers() const
Definition Task.h:158
bool GroupHasBeenSet() const
Definition Task.h:248
void SetConnectivity(Connectivity value)
Definition Task.h:125
const Aws::String & GetDesiredStatus() const
Definition Task.h:211
bool StartedByHasBeenSet() const
Definition Task.h:439
void SetGroup(GroupT &&value)
Definition Task.h:250
const Aws::Utils::DateTime & GetStoppingAt() const
Definition Task.h:492
bool ClusterArnHasBeenSet() const
Definition Task.h:112
void SetAttributes(AttributesT &&value)
Definition Task.h:76
void SetStoppedAt(StoppedAtT &&value)
Definition Task.h:469
void SetTaskArn(TaskArnT &&value)
Definition Task.h:537
LaunchType GetLaunchType() const
Definition Task.h:311
Task & WithTags(TagsT &&value)
Definition Task.h:525
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition Task.h:90
bool PullStartedAtHasBeenSet() const
Definition Task.h:399
void SetClusterArn(ClusterArnT &&value)
Definition Task.h:114
bool AttributesHasBeenSet() const
Definition Task.h:74
const Aws::String & GetStartedBy() const
Definition Task.h:438
void SetStartedAt(StartedAtT &&value)
Definition Task.h:427
void SetContainers(ContainersT &&value)
Definition Task.h:161
bool InferenceAcceleratorsHasBeenSet() const
Definition Task.h:281
const Aws::String & GetPlatformVersion() const
Definition Task.h:371
void SetCpu(CpuT &&value)
Definition Task.h:187
void SetMemory(MemoryT &&value)
Definition Task.h:345
bool PullStoppedAtHasBeenSet() const
Definition Task.h:411
Task & WithEphemeralStorage(EphemeralStorageT &&value)
Definition Task.h:578
Task & WithTaskDefinitionArn(TaskDefinitionArnT &&value)
Definition Task.h:551
const Aws::Utils::DateTime & GetPullStartedAt() const
Definition Task.h:398
bool LaunchTypeHasBeenSet() const
Definition Task.h:312
Task & WithConnectivity(Connectivity value)
Definition Task.h:126
bool GetEnableExecuteCommand() const
Definition Task.h:225
bool StoppedAtHasBeenSet() const
Definition Task.h:467
Task & WithTaskArn(TaskArnT &&value)
Definition Task.h:539
void SetInferenceAccelerators(InferenceAcceleratorsT &&value)
Definition Task.h:283
bool CpuHasBeenSet() const
Definition Task.h:185
const TaskEphemeralStorage & GetFargateEphemeralStorage() const
Definition Task.h:585
bool StoppedReasonHasBeenSet() const
Definition Task.h:479
bool ConnectivityAtHasBeenSet() const
Definition Task.h:135
void SetDesiredStatus(DesiredStatusT &&value)
Definition Task.h:214
const Aws::Vector< Attribute > & GetAttributes() const
Definition Task.h:73
void SetStoppedReason(StoppedReasonT &&value)
Definition Task.h:481
AWS_ECS_API Task(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPlatformFamily() const
Definition Task.h:386
const Aws::String & GetTaskDefinitionArn() const
Definition Task.h:546
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
Task & WithPlatformFamily(PlatformFamilyT &&value)
Definition Task.h:391
const Aws::Vector< InferenceAccelerator > & GetInferenceAccelerators() const
Definition Task.h:280
Task & WithOverrides(OverridesT &&value)
Definition Task.h:359
const Aws::Utils::DateTime & GetExecutionStoppedAt() const
Definition Task.h:235
Task & WithPlatformVersion(PlatformVersionT &&value)
Definition Task.h:376
Task & AddTags(TagsT &&value)
Definition Task.h:527
void SetPullStoppedAt(PullStoppedAtT &&value)
Definition Task.h:413
Task & WithStartedAt(StartedAtT &&value)
Definition Task.h:429
bool ContainerInstanceArnHasBeenSet() const
Definition Task.h:147
Task & WithMemory(MemoryT &&value)
Definition Task.h:347
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue