AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
Task.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11#include <aws/ecs/model/Attachment.h>
12#include <aws/ecs/model/Attribute.h>
13#include <aws/ecs/model/Connectivity.h>
14#include <aws/ecs/model/Container.h>
15#include <aws/ecs/model/EphemeralStorage.h>
16#include <aws/ecs/model/HealthStatus.h>
17#include <aws/ecs/model/InferenceAccelerator.h>
18#include <aws/ecs/model/LaunchType.h>
19#include <aws/ecs/model/Tag.h>
20#include <aws/ecs/model/TaskEphemeralStorage.h>
21#include <aws/ecs/model/TaskOverride.h>
22#include <aws/ecs/model/TaskStopCode.h>
23#include <aws/ecs/model/TrustedExecutionSummary.h>
24
25#include <utility>
26
27namespace Aws {
28namespace Utils {
29namespace Json {
30class JsonValue;
31class JsonView;
32} // namespace Json
33} // namespace Utils
34namespace ECS {
35namespace Model {
36
42class Task {
43 public:
44 AWS_ECS_API Task() = default;
45 AWS_ECS_API Task(Aws::Utils::Json::JsonView jsonValue);
46 AWS_ECS_API Task& operator=(Aws::Utils::Json::JsonView jsonValue);
48
50
54 inline const Aws::Vector<Attachment>& GetAttachments() const { return m_attachments; }
55 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
56 template <typename AttachmentsT = Aws::Vector<Attachment>>
57 void SetAttachments(AttachmentsT&& value) {
58 m_attachmentsHasBeenSet = true;
59 m_attachments = std::forward<AttachmentsT>(value);
60 }
61 template <typename AttachmentsT = Aws::Vector<Attachment>>
62 Task& WithAttachments(AttachmentsT&& value) {
63 SetAttachments(std::forward<AttachmentsT>(value));
64 return *this;
65 }
66 template <typename AttachmentsT = Attachment>
67 Task& AddAttachments(AttachmentsT&& value) {
68 m_attachmentsHasBeenSet = true;
69 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
79 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
80 template <typename AttributesT = Aws::Vector<Attribute>>
81 void SetAttributes(AttributesT&& value) {
82 m_attributesHasBeenSet = true;
83 m_attributes = std::forward<AttributesT>(value);
84 }
85 template <typename AttributesT = Aws::Vector<Attribute>>
86 Task& WithAttributes(AttributesT&& value) {
87 SetAttributes(std::forward<AttributesT>(value));
88 return *this;
89 }
90 template <typename AttributesT = Attribute>
91 Task& AddAttributes(AttributesT&& value) {
92 m_attributesHasBeenSet = true;
93 m_attributes.emplace_back(std::forward<AttributesT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
103 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
104 template <typename AvailabilityZoneT = Aws::String>
105 void SetAvailabilityZone(AvailabilityZoneT&& value) {
106 m_availabilityZoneHasBeenSet = true;
107 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
108 }
109 template <typename AvailabilityZoneT = Aws::String>
110 Task& WithAvailabilityZone(AvailabilityZoneT&& value) {
111 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetCapacityProviderName() const { return m_capacityProviderName; }
121 inline bool CapacityProviderNameHasBeenSet() const { return m_capacityProviderNameHasBeenSet; }
122 template <typename CapacityProviderNameT = Aws::String>
123 void SetCapacityProviderName(CapacityProviderNameT&& value) {
124 m_capacityProviderNameHasBeenSet = true;
125 m_capacityProviderName = std::forward<CapacityProviderNameT>(value);
126 }
127 template <typename CapacityProviderNameT = Aws::String>
128 Task& WithCapacityProviderName(CapacityProviderNameT&& value) {
129 SetCapacityProviderName(std::forward<CapacityProviderNameT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
139 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
140 template <typename ClusterArnT = Aws::String>
141 void SetClusterArn(ClusterArnT&& value) {
142 m_clusterArnHasBeenSet = true;
143 m_clusterArn = std::forward<ClusterArnT>(value);
144 }
145 template <typename ClusterArnT = Aws::String>
146 Task& WithClusterArn(ClusterArnT&& value) {
147 SetClusterArn(std::forward<ClusterArnT>(value));
148 return *this;
149 }
151
153
156 inline Connectivity GetConnectivity() const { return m_connectivity; }
157 inline bool ConnectivityHasBeenSet() const { return m_connectivityHasBeenSet; }
158 inline void SetConnectivity(Connectivity value) {
159 m_connectivityHasBeenSet = true;
160 m_connectivity = value;
161 }
163 SetConnectivity(value);
164 return *this;
165 }
167
169
173 inline const Aws::Utils::DateTime& GetConnectivityAt() const { return m_connectivityAt; }
174 inline bool ConnectivityAtHasBeenSet() const { return m_connectivityAtHasBeenSet; }
175 template <typename ConnectivityAtT = Aws::Utils::DateTime>
176 void SetConnectivityAt(ConnectivityAtT&& value) {
177 m_connectivityAtHasBeenSet = true;
178 m_connectivityAt = std::forward<ConnectivityAtT>(value);
179 }
180 template <typename ConnectivityAtT = Aws::Utils::DateTime>
181 Task& WithConnectivityAt(ConnectivityAtT&& value) {
182 SetConnectivityAt(std::forward<ConnectivityAtT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::String& GetContainerInstanceArn() const { return m_containerInstanceArn; }
192 inline bool ContainerInstanceArnHasBeenSet() const { return m_containerInstanceArnHasBeenSet; }
193 template <typename ContainerInstanceArnT = Aws::String>
194 void SetContainerInstanceArn(ContainerInstanceArnT&& value) {
195 m_containerInstanceArnHasBeenSet = true;
196 m_containerInstanceArn = std::forward<ContainerInstanceArnT>(value);
197 }
198 template <typename ContainerInstanceArnT = Aws::String>
199 Task& WithContainerInstanceArn(ContainerInstanceArnT&& value) {
200 SetContainerInstanceArn(std::forward<ContainerInstanceArnT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::Vector<Container>& GetContainers() const { return m_containers; }
210 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
211 template <typename ContainersT = Aws::Vector<Container>>
212 void SetContainers(ContainersT&& value) {
213 m_containersHasBeenSet = true;
214 m_containers = std::forward<ContainersT>(value);
215 }
216 template <typename ContainersT = Aws::Vector<Container>>
217 Task& WithContainers(ContainersT&& value) {
218 SetContainers(std::forward<ContainersT>(value));
219 return *this;
220 }
221 template <typename ContainersT = Container>
222 Task& AddContainers(ContainersT&& value) {
223 m_containersHasBeenSet = true;
224 m_containers.emplace_back(std::forward<ContainersT>(value));
225 return *this;
226 }
228
230
245 inline const Aws::String& GetCpu() const { return m_cpu; }
246 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
247 template <typename CpuT = Aws::String>
248 void SetCpu(CpuT&& value) {
249 m_cpuHasBeenSet = true;
250 m_cpu = std::forward<CpuT>(value);
251 }
252 template <typename CpuT = Aws::String>
253 Task& WithCpu(CpuT&& value) {
254 SetCpu(std::forward<CpuT>(value));
255 return *this;
256 }
258
260
264 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
265 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
266 template <typename CreatedAtT = Aws::Utils::DateTime>
267 void SetCreatedAt(CreatedAtT&& value) {
268 m_createdAtHasBeenSet = true;
269 m_createdAt = std::forward<CreatedAtT>(value);
270 }
271 template <typename CreatedAtT = Aws::Utils::DateTime>
272 Task& WithCreatedAt(CreatedAtT&& value) {
273 SetCreatedAt(std::forward<CreatedAtT>(value));
274 return *this;
275 }
277
279
284 inline const Aws::String& GetDesiredStatus() const { return m_desiredStatus; }
285 inline bool DesiredStatusHasBeenSet() const { return m_desiredStatusHasBeenSet; }
286 template <typename DesiredStatusT = Aws::String>
287 void SetDesiredStatus(DesiredStatusT&& value) {
288 m_desiredStatusHasBeenSet = true;
289 m_desiredStatus = std::forward<DesiredStatusT>(value);
290 }
291 template <typename DesiredStatusT = Aws::String>
292 Task& WithDesiredStatus(DesiredStatusT&& value) {
293 SetDesiredStatus(std::forward<DesiredStatusT>(value));
294 return *this;
295 }
297
299
304 inline bool GetEnableExecuteCommand() const { return m_enableExecuteCommand; }
305 inline bool EnableExecuteCommandHasBeenSet() const { return m_enableExecuteCommandHasBeenSet; }
306 inline void SetEnableExecuteCommand(bool value) {
307 m_enableExecuteCommandHasBeenSet = true;
308 m_enableExecuteCommand = value;
309 }
310 inline Task& WithEnableExecuteCommand(bool value) {
312 return *this;
313 }
315
317
320 inline const Aws::Utils::DateTime& GetExecutionStoppedAt() const { return m_executionStoppedAt; }
321 inline bool ExecutionStoppedAtHasBeenSet() const { return m_executionStoppedAtHasBeenSet; }
322 template <typename ExecutionStoppedAtT = Aws::Utils::DateTime>
323 void SetExecutionStoppedAt(ExecutionStoppedAtT&& value) {
324 m_executionStoppedAtHasBeenSet = true;
325 m_executionStoppedAt = std::forward<ExecutionStoppedAtT>(value);
326 }
327 template <typename ExecutionStoppedAtT = Aws::Utils::DateTime>
328 Task& WithExecutionStoppedAt(ExecutionStoppedAtT&& value) {
329 SetExecutionStoppedAt(std::forward<ExecutionStoppedAtT>(value));
330 return *this;
331 }
333
335
338 inline const Aws::String& GetGroup() const { return m_group; }
339 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
340 template <typename GroupT = Aws::String>
341 void SetGroup(GroupT&& value) {
342 m_groupHasBeenSet = true;
343 m_group = std::forward<GroupT>(value);
344 }
345 template <typename GroupT = Aws::String>
346 Task& WithGroup(GroupT&& value) {
347 SetGroup(std::forward<GroupT>(value));
348 return *this;
349 }
351
353
367 inline HealthStatus GetHealthStatus() const { return m_healthStatus; }
368 inline bool HealthStatusHasBeenSet() const { return m_healthStatusHasBeenSet; }
369 inline void SetHealthStatus(HealthStatus value) {
370 m_healthStatusHasBeenSet = true;
371 m_healthStatus = value;
372 }
374 SetHealthStatus(value);
375 return *this;
376 }
378
380
383 inline const Aws::Vector<InferenceAccelerator>& GetInferenceAccelerators() const { return m_inferenceAccelerators; }
384 inline bool InferenceAcceleratorsHasBeenSet() const { return m_inferenceAcceleratorsHasBeenSet; }
385 template <typename InferenceAcceleratorsT = Aws::Vector<InferenceAccelerator>>
386 void SetInferenceAccelerators(InferenceAcceleratorsT&& value) {
387 m_inferenceAcceleratorsHasBeenSet = true;
388 m_inferenceAccelerators = std::forward<InferenceAcceleratorsT>(value);
389 }
390 template <typename InferenceAcceleratorsT = Aws::Vector<InferenceAccelerator>>
391 Task& WithInferenceAccelerators(InferenceAcceleratorsT&& value) {
392 SetInferenceAccelerators(std::forward<InferenceAcceleratorsT>(value));
393 return *this;
394 }
395 template <typename InferenceAcceleratorsT = InferenceAccelerator>
396 Task& AddInferenceAccelerators(InferenceAcceleratorsT&& value) {
397 m_inferenceAcceleratorsHasBeenSet = true;
398 m_inferenceAccelerators.emplace_back(std::forward<InferenceAcceleratorsT>(value));
399 return *this;
400 }
402
404
409 inline const Aws::String& GetLastStatus() const { return m_lastStatus; }
410 inline bool LastStatusHasBeenSet() const { return m_lastStatusHasBeenSet; }
411 template <typename LastStatusT = Aws::String>
412 void SetLastStatus(LastStatusT&& value) {
413 m_lastStatusHasBeenSet = true;
414 m_lastStatus = std::forward<LastStatusT>(value);
415 }
416 template <typename LastStatusT = Aws::String>
417 Task& WithLastStatus(LastStatusT&& value) {
418 SetLastStatus(std::forward<LastStatusT>(value));
419 return *this;
420 }
422
424
430 inline LaunchType GetLaunchType() const { return m_launchType; }
431 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
432 inline void SetLaunchType(LaunchType value) {
433 m_launchTypeHasBeenSet = true;
434 m_launchType = value;
435 }
437 SetLaunchType(value);
438 return *this;
439 }
441
443
467 inline const Aws::String& GetMemory() const { return m_memory; }
468 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
469 template <typename MemoryT = Aws::String>
470 void SetMemory(MemoryT&& value) {
471 m_memoryHasBeenSet = true;
472 m_memory = std::forward<MemoryT>(value);
473 }
474 template <typename MemoryT = Aws::String>
475 Task& WithMemory(MemoryT&& value) {
476 SetMemory(std::forward<MemoryT>(value));
477 return *this;
478 }
480
482
485 inline const TaskOverride& GetOverrides() const { return m_overrides; }
486 inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
487 template <typename OverridesT = TaskOverride>
488 void SetOverrides(OverridesT&& value) {
489 m_overridesHasBeenSet = true;
490 m_overrides = std::forward<OverridesT>(value);
491 }
492 template <typename OverridesT = TaskOverride>
493 Task& WithOverrides(OverridesT&& value) {
494 SetOverrides(std::forward<OverridesT>(value));
495 return *this;
496 }
498
500
508 inline const Aws::String& GetPlatformVersion() const { return m_platformVersion; }
509 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
510 template <typename PlatformVersionT = Aws::String>
511 void SetPlatformVersion(PlatformVersionT&& value) {
512 m_platformVersionHasBeenSet = true;
513 m_platformVersion = std::forward<PlatformVersionT>(value);
514 }
515 template <typename PlatformVersionT = Aws::String>
516 Task& WithPlatformVersion(PlatformVersionT&& value) {
517 SetPlatformVersion(std::forward<PlatformVersionT>(value));
518 return *this;
519 }
521
523
529 inline const Aws::String& GetPlatformFamily() const { return m_platformFamily; }
530 inline bool PlatformFamilyHasBeenSet() const { return m_platformFamilyHasBeenSet; }
531 template <typename PlatformFamilyT = Aws::String>
532 void SetPlatformFamily(PlatformFamilyT&& value) {
533 m_platformFamilyHasBeenSet = true;
534 m_platformFamily = std::forward<PlatformFamilyT>(value);
535 }
536 template <typename PlatformFamilyT = Aws::String>
537 Task& WithPlatformFamily(PlatformFamilyT&& value) {
538 SetPlatformFamily(std::forward<PlatformFamilyT>(value));
539 return *this;
540 }
542
544
547 inline const Aws::Utils::DateTime& GetPullStartedAt() const { return m_pullStartedAt; }
548 inline bool PullStartedAtHasBeenSet() const { return m_pullStartedAtHasBeenSet; }
549 template <typename PullStartedAtT = Aws::Utils::DateTime>
550 void SetPullStartedAt(PullStartedAtT&& value) {
551 m_pullStartedAtHasBeenSet = true;
552 m_pullStartedAt = std::forward<PullStartedAtT>(value);
553 }
554 template <typename PullStartedAtT = Aws::Utils::DateTime>
555 Task& WithPullStartedAt(PullStartedAtT&& value) {
556 SetPullStartedAt(std::forward<PullStartedAtT>(value));
557 return *this;
558 }
560
562
565 inline const Aws::Utils::DateTime& GetPullStoppedAt() const { return m_pullStoppedAt; }
566 inline bool PullStoppedAtHasBeenSet() const { return m_pullStoppedAtHasBeenSet; }
567 template <typename PullStoppedAtT = Aws::Utils::DateTime>
568 void SetPullStoppedAt(PullStoppedAtT&& value) {
569 m_pullStoppedAtHasBeenSet = true;
570 m_pullStoppedAt = std::forward<PullStoppedAtT>(value);
571 }
572 template <typename PullStoppedAtT = Aws::Utils::DateTime>
573 Task& WithPullStoppedAt(PullStoppedAtT&& value) {
574 SetPullStoppedAt(std::forward<PullStoppedAtT>(value));
575 return *this;
576 }
578
580
585 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
586 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
587 template <typename StartedAtT = Aws::Utils::DateTime>
588 void SetStartedAt(StartedAtT&& value) {
589 m_startedAtHasBeenSet = true;
590 m_startedAt = std::forward<StartedAtT>(value);
591 }
592 template <typename StartedAtT = Aws::Utils::DateTime>
593 Task& WithStartedAt(StartedAtT&& value) {
594 SetStartedAt(std::forward<StartedAtT>(value));
595 return *this;
596 }
598
600
605 inline const Aws::String& GetStartedBy() const { return m_startedBy; }
606 inline bool StartedByHasBeenSet() const { return m_startedByHasBeenSet; }
607 template <typename StartedByT = Aws::String>
608 void SetStartedBy(StartedByT&& value) {
609 m_startedByHasBeenSet = true;
610 m_startedBy = std::forward<StartedByT>(value);
611 }
612 template <typename StartedByT = Aws::String>
613 Task& WithStartedBy(StartedByT&& value) {
614 SetStartedBy(std::forward<StartedByT>(value));
615 return *this;
616 }
618
620
627 inline TaskStopCode GetStopCode() const { return m_stopCode; }
628 inline bool StopCodeHasBeenSet() const { return m_stopCodeHasBeenSet; }
629 inline void SetStopCode(TaskStopCode value) {
630 m_stopCodeHasBeenSet = true;
631 m_stopCode = value;
632 }
634 SetStopCode(value);
635 return *this;
636 }
638
640
645 inline const Aws::Utils::DateTime& GetStoppedAt() const { return m_stoppedAt; }
646 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
647 template <typename StoppedAtT = Aws::Utils::DateTime>
648 void SetStoppedAt(StoppedAtT&& value) {
649 m_stoppedAtHasBeenSet = true;
650 m_stoppedAt = std::forward<StoppedAtT>(value);
651 }
652 template <typename StoppedAtT = Aws::Utils::DateTime>
653 Task& WithStoppedAt(StoppedAtT&& value) {
654 SetStoppedAt(std::forward<StoppedAtT>(value));
655 return *this;
656 }
658
660
663 inline const Aws::String& GetStoppedReason() const { return m_stoppedReason; }
664 inline bool StoppedReasonHasBeenSet() const { return m_stoppedReasonHasBeenSet; }
665 template <typename StoppedReasonT = Aws::String>
666 void SetStoppedReason(StoppedReasonT&& value) {
667 m_stoppedReasonHasBeenSet = true;
668 m_stoppedReason = std::forward<StoppedReasonT>(value);
669 }
670 template <typename StoppedReasonT = Aws::String>
671 Task& WithStoppedReason(StoppedReasonT&& value) {
672 SetStoppedReason(std::forward<StoppedReasonT>(value));
673 return *this;
674 }
676
678
683 inline const Aws::Utils::DateTime& GetStoppingAt() const { return m_stoppingAt; }
684 inline bool StoppingAtHasBeenSet() const { return m_stoppingAtHasBeenSet; }
685 template <typename StoppingAtT = Aws::Utils::DateTime>
686 void SetStoppingAt(StoppingAtT&& value) {
687 m_stoppingAtHasBeenSet = true;
688 m_stoppingAt = std::forward<StoppingAtT>(value);
689 }
690 template <typename StoppingAtT = Aws::Utils::DateTime>
691 Task& WithStoppingAt(StoppingAtT&& value) {
692 SetStoppingAt(std::forward<StoppingAtT>(value));
693 return *this;
694 }
696
698
717 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
718 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
719 template <typename TagsT = Aws::Vector<Tag>>
720 void SetTags(TagsT&& value) {
721 m_tagsHasBeenSet = true;
722 m_tags = std::forward<TagsT>(value);
723 }
724 template <typename TagsT = Aws::Vector<Tag>>
725 Task& WithTags(TagsT&& value) {
726 SetTags(std::forward<TagsT>(value));
727 return *this;
728 }
729 template <typename TagsT = Tag>
730 Task& AddTags(TagsT&& value) {
731 m_tagsHasBeenSet = true;
732 m_tags.emplace_back(std::forward<TagsT>(value));
733 return *this;
734 }
736
738
741 inline const Aws::String& GetTaskArn() const { return m_taskArn; }
742 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
743 template <typename TaskArnT = Aws::String>
744 void SetTaskArn(TaskArnT&& value) {
745 m_taskArnHasBeenSet = true;
746 m_taskArn = std::forward<TaskArnT>(value);
747 }
748 template <typename TaskArnT = Aws::String>
749 Task& WithTaskArn(TaskArnT&& value) {
750 SetTaskArn(std::forward<TaskArnT>(value));
751 return *this;
752 }
754
756
759 inline const Aws::String& GetTaskDefinitionArn() const { return m_taskDefinitionArn; }
760 inline bool TaskDefinitionArnHasBeenSet() const { return m_taskDefinitionArnHasBeenSet; }
761 template <typename TaskDefinitionArnT = Aws::String>
762 void SetTaskDefinitionArn(TaskDefinitionArnT&& value) {
763 m_taskDefinitionArnHasBeenSet = true;
764 m_taskDefinitionArn = std::forward<TaskDefinitionArnT>(value);
765 }
766 template <typename TaskDefinitionArnT = Aws::String>
767 Task& WithTaskDefinitionArn(TaskDefinitionArnT&& value) {
768 SetTaskDefinitionArn(std::forward<TaskDefinitionArnT>(value));
769 return *this;
770 }
772
774
782 inline long long GetVersion() const { return m_version; }
783 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
784 inline void SetVersion(long long value) {
785 m_versionHasBeenSet = true;
786 m_version = value;
787 }
788 inline Task& WithVersion(long long value) {
789 SetVersion(value);
790 return *this;
791 }
793
795
798 inline const EphemeralStorage& GetEphemeralStorage() const { return m_ephemeralStorage; }
799 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
800 template <typename EphemeralStorageT = EphemeralStorage>
801 void SetEphemeralStorage(EphemeralStorageT&& value) {
802 m_ephemeralStorageHasBeenSet = true;
803 m_ephemeralStorage = std::forward<EphemeralStorageT>(value);
804 }
805 template <typename EphemeralStorageT = EphemeralStorage>
806 Task& WithEphemeralStorage(EphemeralStorageT&& value) {
807 SetEphemeralStorage(std::forward<EphemeralStorageT>(value));
808 return *this;
809 }
811
813
816 inline const TaskEphemeralStorage& GetFargateEphemeralStorage() const { return m_fargateEphemeralStorage; }
817 inline bool FargateEphemeralStorageHasBeenSet() const { return m_fargateEphemeralStorageHasBeenSet; }
818 template <typename FargateEphemeralStorageT = TaskEphemeralStorage>
819 void SetFargateEphemeralStorage(FargateEphemeralStorageT&& value) {
820 m_fargateEphemeralStorageHasBeenSet = true;
821 m_fargateEphemeralStorage = std::forward<FargateEphemeralStorageT>(value);
822 }
823 template <typename FargateEphemeralStorageT = TaskEphemeralStorage>
824 Task& WithFargateEphemeralStorage(FargateEphemeralStorageT&& value) {
825 SetFargateEphemeralStorage(std::forward<FargateEphemeralStorageT>(value));
826 return *this;
827 }
829
831
837 inline const TrustedExecutionSummary& GetTrustedExecutionSummary() const { return m_trustedExecutionSummary; }
838 inline bool TrustedExecutionSummaryHasBeenSet() const { return m_trustedExecutionSummaryHasBeenSet; }
839 template <typename TrustedExecutionSummaryT = TrustedExecutionSummary>
840 void SetTrustedExecutionSummary(TrustedExecutionSummaryT&& value) {
841 m_trustedExecutionSummaryHasBeenSet = true;
842 m_trustedExecutionSummary = std::forward<TrustedExecutionSummaryT>(value);
843 }
844 template <typename TrustedExecutionSummaryT = TrustedExecutionSummary>
845 Task& WithTrustedExecutionSummary(TrustedExecutionSummaryT&& value) {
846 SetTrustedExecutionSummary(std::forward<TrustedExecutionSummaryT>(value));
847 return *this;
848 }
850 private:
851 Aws::Vector<Attachment> m_attachments;
852
853 Aws::Vector<Attribute> m_attributes;
854
855 Aws::String m_availabilityZone;
856
857 Aws::String m_capacityProviderName;
858
859 Aws::String m_clusterArn;
860
861 Connectivity m_connectivity{Connectivity::NOT_SET};
862
863 Aws::Utils::DateTime m_connectivityAt{};
864
865 Aws::String m_containerInstanceArn;
866
867 Aws::Vector<Container> m_containers;
868
869 Aws::String m_cpu;
870
871 Aws::Utils::DateTime m_createdAt{};
872
873 Aws::String m_desiredStatus;
874
875 bool m_enableExecuteCommand{false};
876
877 Aws::Utils::DateTime m_executionStoppedAt{};
878
879 Aws::String m_group;
880
881 HealthStatus m_healthStatus{HealthStatus::NOT_SET};
882
883 Aws::Vector<InferenceAccelerator> m_inferenceAccelerators;
884
885 Aws::String m_lastStatus;
886
887 LaunchType m_launchType{LaunchType::NOT_SET};
888
889 Aws::String m_memory;
890
891 TaskOverride m_overrides;
892
893 Aws::String m_platformVersion;
894
895 Aws::String m_platformFamily;
896
897 Aws::Utils::DateTime m_pullStartedAt{};
898
899 Aws::Utils::DateTime m_pullStoppedAt{};
900
901 Aws::Utils::DateTime m_startedAt{};
902
903 Aws::String m_startedBy;
904
906
907 Aws::Utils::DateTime m_stoppedAt{};
908
909 Aws::String m_stoppedReason;
910
911 Aws::Utils::DateTime m_stoppingAt{};
912
913 Aws::Vector<Tag> m_tags;
914
915 Aws::String m_taskArn;
916
917 Aws::String m_taskDefinitionArn;
918
919 long long m_version{0};
920
921 EphemeralStorage m_ephemeralStorage;
922
923 TaskEphemeralStorage m_fargateEphemeralStorage;
924
925 TrustedExecutionSummary m_trustedExecutionSummary;
926 bool m_attachmentsHasBeenSet = false;
927 bool m_attributesHasBeenSet = false;
928 bool m_availabilityZoneHasBeenSet = false;
929 bool m_capacityProviderNameHasBeenSet = false;
930 bool m_clusterArnHasBeenSet = false;
931 bool m_connectivityHasBeenSet = false;
932 bool m_connectivityAtHasBeenSet = false;
933 bool m_containerInstanceArnHasBeenSet = false;
934 bool m_containersHasBeenSet = false;
935 bool m_cpuHasBeenSet = false;
936 bool m_createdAtHasBeenSet = false;
937 bool m_desiredStatusHasBeenSet = false;
938 bool m_enableExecuteCommandHasBeenSet = false;
939 bool m_executionStoppedAtHasBeenSet = false;
940 bool m_groupHasBeenSet = false;
941 bool m_healthStatusHasBeenSet = false;
942 bool m_inferenceAcceleratorsHasBeenSet = false;
943 bool m_lastStatusHasBeenSet = false;
944 bool m_launchTypeHasBeenSet = false;
945 bool m_memoryHasBeenSet = false;
946 bool m_overridesHasBeenSet = false;
947 bool m_platformVersionHasBeenSet = false;
948 bool m_platformFamilyHasBeenSet = false;
949 bool m_pullStartedAtHasBeenSet = false;
950 bool m_pullStoppedAtHasBeenSet = false;
951 bool m_startedAtHasBeenSet = false;
952 bool m_startedByHasBeenSet = false;
953 bool m_stopCodeHasBeenSet = false;
954 bool m_stoppedAtHasBeenSet = false;
955 bool m_stoppedReasonHasBeenSet = false;
956 bool m_stoppingAtHasBeenSet = false;
957 bool m_tagsHasBeenSet = false;
958 bool m_taskArnHasBeenSet = false;
959 bool m_taskDefinitionArnHasBeenSet = false;
960 bool m_versionHasBeenSet = false;
961 bool m_ephemeralStorageHasBeenSet = false;
962 bool m_fargateEphemeralStorageHasBeenSet = false;
963 bool m_trustedExecutionSummaryHasBeenSet = false;
964};
965
966} // namespace Model
967} // namespace ECS
968} // namespace Aws
void SetLaunchType(LaunchType value)
Definition Task.h:432
Task & AddInferenceAccelerators(InferenceAcceleratorsT &&value)
Definition Task.h:396
void SetTrustedExecutionSummary(TrustedExecutionSummaryT &&value)
Definition Task.h:840
bool EphemeralStorageHasBeenSet() const
Definition Task.h:799
void SetEphemeralStorage(EphemeralStorageT &&value)
Definition Task.h:801
void SetStopCode(TaskStopCode value)
Definition Task.h:629
void SetLastStatus(LastStatusT &&value)
Definition Task.h:412
Task & WithGroup(GroupT &&value)
Definition Task.h:346
Task & WithCpu(CpuT &&value)
Definition Task.h:253
TaskStopCode GetStopCode() const
Definition Task.h:627
void SetConnectivityAt(ConnectivityAtT &&value)
Definition Task.h:176
long long GetVersion() const
Definition Task.h:782
Task & AddContainers(ContainersT &&value)
Definition Task.h:222
Task & WithContainers(ContainersT &&value)
Definition Task.h:217
void SetTags(TagsT &&value)
Definition Task.h:720
Task & AddAttributes(AttributesT &&value)
Definition Task.h:91
bool VersionHasBeenSet() const
Definition Task.h:783
Task & WithCreatedAt(CreatedAtT &&value)
Definition Task.h:272
bool DesiredStatusHasBeenSet() const
Definition Task.h:285
void SetExecutionStoppedAt(ExecutionStoppedAtT &&value)
Definition Task.h:323
bool HealthStatusHasBeenSet() const
Definition Task.h:368
bool CapacityProviderNameHasBeenSet() const
Definition Task.h:121
const Aws::Vector< Attachment > & GetAttachments() const
Definition Task.h:54
void SetCapacityProviderName(CapacityProviderNameT &&value)
Definition Task.h:123
bool OverridesHasBeenSet() const
Definition Task.h:486
void SetPlatformVersion(PlatformVersionT &&value)
Definition Task.h:511
bool TrustedExecutionSummaryHasBeenSet() const
Definition Task.h:838
Task & WithAttributes(AttributesT &&value)
Definition Task.h:86
const Aws::String & GetAvailabilityZone() const
Definition Task.h:102
Task & WithFargateEphemeralStorage(FargateEphemeralStorageT &&value)
Definition Task.h:824
Task & WithInferenceAccelerators(InferenceAcceleratorsT &&value)
Definition Task.h:391
Task & WithDesiredStatus(DesiredStatusT &&value)
Definition Task.h:292
void SetCreatedAt(CreatedAtT &&value)
Definition Task.h:267
Task & WithCapacityProviderName(CapacityProviderNameT &&value)
Definition Task.h:128
Task & WithExecutionStoppedAt(ExecutionStoppedAtT &&value)
Definition Task.h:328
bool AttachmentsHasBeenSet() const
Definition Task.h:55
bool StartedAtHasBeenSet() const
Definition Task.h:586
const TaskOverride & GetOverrides() const
Definition Task.h:485
Task & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition Task.h:110
Task & WithLastStatus(LastStatusT &&value)
Definition Task.h:417
void SetContainerInstanceArn(ContainerInstanceArnT &&value)
Definition Task.h:194
Task & WithStoppedReason(StoppedReasonT &&value)
Definition Task.h:671
Task & WithLaunchType(LaunchType value)
Definition Task.h:436
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Task.h:264
Task & WithStopCode(TaskStopCode value)
Definition Task.h:633
void SetHealthStatus(HealthStatus value)
Definition Task.h:369
bool TaskArnHasBeenSet() const
Definition Task.h:742
bool LastStatusHasBeenSet() const
Definition Task.h:410
bool FargateEphemeralStorageHasBeenSet() const
Definition Task.h:817
void SetVersion(long long value)
Definition Task.h:784
Task & WithConnectivityAt(ConnectivityAtT &&value)
Definition Task.h:181
HealthStatus GetHealthStatus() const
Definition Task.h:367
bool EnableExecuteCommandHasBeenSet() const
Definition Task.h:305
Task & WithPullStoppedAt(PullStoppedAtT &&value)
Definition Task.h:573
Task & WithHealthStatus(HealthStatus value)
Definition Task.h:373
void SetFargateEphemeralStorage(FargateEphemeralStorageT &&value)
Definition Task.h:819
bool PlatformVersionHasBeenSet() const
Definition Task.h:509
bool StopCodeHasBeenSet() const
Definition Task.h:628
Task & WithEnableExecuteCommand(bool value)
Definition Task.h:310
const Aws::Utils::DateTime & GetStartedAt() const
Definition Task.h:585
Connectivity GetConnectivity() const
Definition Task.h:156
void SetAttachments(AttachmentsT &&value)
Definition Task.h:57
AWS_ECS_API Task & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStoppedReason() const
Definition Task.h:663
bool TaskDefinitionArnHasBeenSet() const
Definition Task.h:760
bool ExecutionStoppedAtHasBeenSet() const
Definition Task.h:321
bool AvailabilityZoneHasBeenSet() const
Definition Task.h:103
const Aws::String & GetContainerInstanceArn() const
Definition Task.h:191
const Aws::String & GetTaskArn() const
Definition Task.h:741
Task & WithStartedBy(StartedByT &&value)
Definition Task.h:613
void SetStoppingAt(StoppingAtT &&value)
Definition Task.h:686
Task & WithStoppingAt(StoppingAtT &&value)
Definition Task.h:691
bool PlatformFamilyHasBeenSet() const
Definition Task.h:530
void SetOverrides(OverridesT &&value)
Definition Task.h:488
bool ConnectivityHasBeenSet() const
Definition Task.h:157
Task & AddAttachments(AttachmentsT &&value)
Definition Task.h:67
bool ContainersHasBeenSet() const
Definition Task.h:210
bool CreatedAtHasBeenSet() const
Definition Task.h:265
Task & WithVersion(long long value)
Definition Task.h:788
const Aws::Utils::DateTime & GetConnectivityAt() const
Definition Task.h:173
AWS_ECS_API Task()=default
bool StoppingAtHasBeenSet() const
Definition Task.h:684
const Aws::String & GetClusterArn() const
Definition Task.h:138
const Aws::String & GetLastStatus() const
Definition Task.h:409
const Aws::String & GetMemory() const
Definition Task.h:467
void SetPullStartedAt(PullStartedAtT &&value)
Definition Task.h:550
const Aws::Utils::DateTime & GetStoppedAt() const
Definition Task.h:645
const Aws::String & GetCapacityProviderName() const
Definition Task.h:120
void SetPlatformFamily(PlatformFamilyT &&value)
Definition Task.h:532
Task & WithPullStartedAt(PullStartedAtT &&value)
Definition Task.h:555
Task & WithStoppedAt(StoppedAtT &&value)
Definition Task.h:653
const Aws::Utils::DateTime & GetPullStoppedAt() const
Definition Task.h:565
Task & WithAttachments(AttachmentsT &&value)
Definition Task.h:62
const Aws::Vector< Tag > & GetTags() const
Definition Task.h:717
bool MemoryHasBeenSet() const
Definition Task.h:468
bool TagsHasBeenSet() const
Definition Task.h:718
void SetStartedBy(StartedByT &&value)
Definition Task.h:608
const EphemeralStorage & GetEphemeralStorage() const
Definition Task.h:798
const Aws::String & GetCpu() const
Definition Task.h:245
Task & WithContainerInstanceArn(ContainerInstanceArnT &&value)
Definition Task.h:199
Task & WithClusterArn(ClusterArnT &&value)
Definition Task.h:146
void SetEnableExecuteCommand(bool value)
Definition Task.h:306
void SetTaskDefinitionArn(TaskDefinitionArnT &&value)
Definition Task.h:762
const Aws::String & GetGroup() const
Definition Task.h:338
const Aws::Vector< Container > & GetContainers() const
Definition Task.h:209
bool GroupHasBeenSet() const
Definition Task.h:339
void SetConnectivity(Connectivity value)
Definition Task.h:158
const Aws::String & GetDesiredStatus() const
Definition Task.h:284
bool StartedByHasBeenSet() const
Definition Task.h:606
void SetGroup(GroupT &&value)
Definition Task.h:341
const Aws::Utils::DateTime & GetStoppingAt() const
Definition Task.h:683
bool ClusterArnHasBeenSet() const
Definition Task.h:139
void SetAttributes(AttributesT &&value)
Definition Task.h:81
void SetStoppedAt(StoppedAtT &&value)
Definition Task.h:648
void SetTaskArn(TaskArnT &&value)
Definition Task.h:744
LaunchType GetLaunchType() const
Definition Task.h:430
Task & WithTags(TagsT &&value)
Definition Task.h:725
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition Task.h:105
bool PullStartedAtHasBeenSet() const
Definition Task.h:548
void SetClusterArn(ClusterArnT &&value)
Definition Task.h:141
bool AttributesHasBeenSet() const
Definition Task.h:79
const Aws::String & GetStartedBy() const
Definition Task.h:605
void SetStartedAt(StartedAtT &&value)
Definition Task.h:588
const TrustedExecutionSummary & GetTrustedExecutionSummary() const
Definition Task.h:837
void SetContainers(ContainersT &&value)
Definition Task.h:212
bool InferenceAcceleratorsHasBeenSet() const
Definition Task.h:384
const Aws::String & GetPlatformVersion() const
Definition Task.h:508
void SetCpu(CpuT &&value)
Definition Task.h:248
void SetMemory(MemoryT &&value)
Definition Task.h:470
bool PullStoppedAtHasBeenSet() const
Definition Task.h:566
Task & WithEphemeralStorage(EphemeralStorageT &&value)
Definition Task.h:806
Task & WithTrustedExecutionSummary(TrustedExecutionSummaryT &&value)
Definition Task.h:845
Task & WithTaskDefinitionArn(TaskDefinitionArnT &&value)
Definition Task.h:767
const Aws::Utils::DateTime & GetPullStartedAt() const
Definition Task.h:547
bool LaunchTypeHasBeenSet() const
Definition Task.h:431
Task & WithConnectivity(Connectivity value)
Definition Task.h:162
bool GetEnableExecuteCommand() const
Definition Task.h:304
bool StoppedAtHasBeenSet() const
Definition Task.h:646
Task & WithTaskArn(TaskArnT &&value)
Definition Task.h:749
void SetInferenceAccelerators(InferenceAcceleratorsT &&value)
Definition Task.h:386
bool CpuHasBeenSet() const
Definition Task.h:246
const TaskEphemeralStorage & GetFargateEphemeralStorage() const
Definition Task.h:816
bool StoppedReasonHasBeenSet() const
Definition Task.h:664
bool ConnectivityAtHasBeenSet() const
Definition Task.h:174
void SetDesiredStatus(DesiredStatusT &&value)
Definition Task.h:287
const Aws::Vector< Attribute > & GetAttributes() const
Definition Task.h:78
void SetStoppedReason(StoppedReasonT &&value)
Definition Task.h:666
AWS_ECS_API Task(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPlatformFamily() const
Definition Task.h:529
const Aws::String & GetTaskDefinitionArn() const
Definition Task.h:759
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
Task & WithPlatformFamily(PlatformFamilyT &&value)
Definition Task.h:537
const Aws::Vector< InferenceAccelerator > & GetInferenceAccelerators() const
Definition Task.h:383
Task & WithOverrides(OverridesT &&value)
Definition Task.h:493
const Aws::Utils::DateTime & GetExecutionStoppedAt() const
Definition Task.h:320
Task & WithPlatformVersion(PlatformVersionT &&value)
Definition Task.h:516
Task & AddTags(TagsT &&value)
Definition Task.h:730
void SetPullStoppedAt(PullStoppedAtT &&value)
Definition Task.h:568
Task & WithStartedAt(StartedAtT &&value)
Definition Task.h:593
bool ContainerInstanceArnHasBeenSet() const
Definition Task.h:192
Task & WithMemory(MemoryT &&value)
Definition Task.h:475
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue