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>
43 AWS_ECS_API
Task() =
default;
55 template <
typename AttachmentsT = Aws::Vector<Attachment>>
57 m_attachmentsHasBeenSet =
true;
58 m_attachments = std::forward<AttachmentsT>(value);
60 template <
typename AttachmentsT = Aws::Vector<Attachment>>
65 template <
typename AttachmentsT = Attachment>
67 m_attachmentsHasBeenSet =
true;
68 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
79 template <
typename AttributesT = Aws::Vector<Attribute>>
81 m_attributesHasBeenSet =
true;
82 m_attributes = std::forward<AttributesT>(value);
84 template <
typename AttributesT = Aws::Vector<Attribute>>
89 template <
typename AttributesT = Attribute>
91 m_attributesHasBeenSet =
true;
92 m_attributes.emplace_back(std::forward<AttributesT>(value));
103 template <
typename AvailabilityZoneT = Aws::String>
105 m_availabilityZoneHasBeenSet =
true;
106 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
108 template <
typename AvailabilityZoneT = Aws::String>
121 template <
typename CapacityProv
iderNameT = Aws::String>
123 m_capacityProviderNameHasBeenSet =
true;
124 m_capacityProviderName = std::forward<CapacityProviderNameT>(value);
126 template <
typename CapacityProv
iderNameT = Aws::String>
139 template <
typename ClusterArnT = Aws::String>
141 m_clusterArnHasBeenSet =
true;
142 m_clusterArn = std::forward<ClusterArnT>(value);
144 template <
typename ClusterArnT = Aws::String>
158 m_connectivityHasBeenSet =
true;
159 m_connectivity = value;
174 template <
typename ConnectivityAtT = Aws::Utils::DateTime>
176 m_connectivityAtHasBeenSet =
true;
177 m_connectivityAt = std::forward<ConnectivityAtT>(value);
179 template <
typename ConnectivityAtT = Aws::Utils::DateTime>
192 template <
typename ContainerInstanceArnT = Aws::String>
194 m_containerInstanceArnHasBeenSet =
true;
195 m_containerInstanceArn = std::forward<ContainerInstanceArnT>(value);
197 template <
typename ContainerInstanceArnT = Aws::String>
210 template <
typename ContainersT = Aws::Vector<Container>>
212 m_containersHasBeenSet =
true;
213 m_containers = std::forward<ContainersT>(value);
215 template <
typename ContainersT = Aws::Vector<Container>>
220 template <
typename ContainersT = Container>
222 m_containersHasBeenSet =
true;
223 m_containers.emplace_back(std::forward<ContainersT>(value));
246 template <
typename CpuT = Aws::String>
248 m_cpuHasBeenSet =
true;
249 m_cpu = std::forward<CpuT>(value);
251 template <
typename CpuT = Aws::String>
253 SetCpu(std::forward<CpuT>(value));
265 template <
typename CreatedAtT = Aws::Utils::DateTime>
267 m_createdAtHasBeenSet =
true;
268 m_createdAt = std::forward<CreatedAtT>(value);
270 template <
typename CreatedAtT = Aws::Utils::DateTime>
285 template <
typename DesiredStatusT = Aws::String>
287 m_desiredStatusHasBeenSet =
true;
288 m_desiredStatus = std::forward<DesiredStatusT>(value);
290 template <
typename DesiredStatusT = Aws::String>
306 m_enableExecuteCommandHasBeenSet =
true;
307 m_enableExecuteCommand = value;
321 template <
typename ExecutionStoppedAtT = Aws::Utils::DateTime>
323 m_executionStoppedAtHasBeenSet =
true;
324 m_executionStoppedAt = std::forward<ExecutionStoppedAtT>(value);
326 template <
typename ExecutionStoppedAtT = Aws::Utils::DateTime>
339 template <
typename GroupT = Aws::String>
341 m_groupHasBeenSet =
true;
342 m_group = std::forward<GroupT>(value);
344 template <
typename GroupT = Aws::String>
346 SetGroup(std::forward<GroupT>(value));
369 m_healthStatusHasBeenSet =
true;
370 m_healthStatus = value;
384 template <
typename InferenceAcceleratorsT = Aws::Vector<InferenceAccelerator>>
386 m_inferenceAcceleratorsHasBeenSet =
true;
387 m_inferenceAccelerators = std::forward<InferenceAcceleratorsT>(value);
389 template <
typename InferenceAcceleratorsT = Aws::Vector<InferenceAccelerator>>
394 template <
typename InferenceAcceleratorsT = InferenceAccelerator>
396 m_inferenceAcceleratorsHasBeenSet =
true;
397 m_inferenceAccelerators.emplace_back(std::forward<InferenceAcceleratorsT>(value));
410 template <
typename LastStatusT = Aws::String>
412 m_lastStatusHasBeenSet =
true;
413 m_lastStatus = std::forward<LastStatusT>(value);
415 template <
typename LastStatusT = Aws::String>
432 m_launchTypeHasBeenSet =
true;
433 m_launchType = value;
468 template <
typename MemoryT = Aws::String>
470 m_memoryHasBeenSet =
true;
471 m_memory = std::forward<MemoryT>(value);
473 template <
typename MemoryT = Aws::String>
486 template <
typename Overr
idesT = TaskOverr
ide>
488 m_overridesHasBeenSet =
true;
489 m_overrides = std::forward<OverridesT>(value);
491 template <
typename Overr
idesT = TaskOverr
ide>
509 template <
typename PlatformVersionT = Aws::String>
511 m_platformVersionHasBeenSet =
true;
512 m_platformVersion = std::forward<PlatformVersionT>(value);
514 template <
typename PlatformVersionT = Aws::String>
530 template <
typename PlatformFamilyT = Aws::String>
532 m_platformFamilyHasBeenSet =
true;
533 m_platformFamily = std::forward<PlatformFamilyT>(value);
535 template <
typename PlatformFamilyT = Aws::String>
548 template <
typename PullStartedAtT = Aws::Utils::DateTime>
550 m_pullStartedAtHasBeenSet =
true;
551 m_pullStartedAt = std::forward<PullStartedAtT>(value);
553 template <
typename PullStartedAtT = Aws::Utils::DateTime>
566 template <
typename PullStoppedAtT = Aws::Utils::DateTime>
568 m_pullStoppedAtHasBeenSet =
true;
569 m_pullStoppedAt = std::forward<PullStoppedAtT>(value);
571 template <
typename PullStoppedAtT = Aws::Utils::DateTime>
586 template <
typename StartedAtT = Aws::Utils::DateTime>
588 m_startedAtHasBeenSet =
true;
589 m_startedAt = std::forward<StartedAtT>(value);
591 template <
typename StartedAtT = Aws::Utils::DateTime>
606 template <
typename StartedByT = Aws::String>
608 m_startedByHasBeenSet =
true;
609 m_startedBy = std::forward<StartedByT>(value);
611 template <
typename StartedByT = Aws::String>
629 m_stopCodeHasBeenSet =
true;
646 template <
typename StoppedAtT = Aws::Utils::DateTime>
648 m_stoppedAtHasBeenSet =
true;
649 m_stoppedAt = std::forward<StoppedAtT>(value);
651 template <
typename StoppedAtT = Aws::Utils::DateTime>
664 template <
typename StoppedReasonT = Aws::String>
666 m_stoppedReasonHasBeenSet =
true;
667 m_stoppedReason = std::forward<StoppedReasonT>(value);
669 template <
typename StoppedReasonT = Aws::String>
684 template <
typename StoppingAtT = Aws::Utils::DateTime>
686 m_stoppingAtHasBeenSet =
true;
687 m_stoppingAt = std::forward<StoppingAtT>(value);
689 template <
typename StoppingAtT = Aws::Utils::DateTime>
718 template <
typename TagsT = Aws::Vector<Tag>>
720 m_tagsHasBeenSet =
true;
721 m_tags = std::forward<TagsT>(value);
723 template <
typename TagsT = Aws::Vector<Tag>>
725 SetTags(std::forward<TagsT>(value));
728 template <
typename TagsT = Tag>
730 m_tagsHasBeenSet =
true;
731 m_tags.emplace_back(std::forward<TagsT>(value));
742 template <
typename TaskArnT = Aws::String>
744 m_taskArnHasBeenSet =
true;
745 m_taskArn = std::forward<TaskArnT>(value);
747 template <
typename TaskArnT = Aws::String>
760 template <
typename TaskDefinitionArnT = Aws::String>
762 m_taskDefinitionArnHasBeenSet =
true;
763 m_taskDefinitionArn = std::forward<TaskDefinitionArnT>(value);
765 template <
typename TaskDefinitionArnT = Aws::String>
784 m_versionHasBeenSet =
true;
799 template <
typename EphemeralStorageT = EphemeralStorage>
801 m_ephemeralStorageHasBeenSet =
true;
802 m_ephemeralStorage = std::forward<EphemeralStorageT>(value);
804 template <
typename EphemeralStorageT = EphemeralStorage>
817 template <
typename FargateEphemeralStorageT = TaskEphemeralStorage>
819 m_fargateEphemeralStorageHasBeenSet =
true;
820 m_fargateEphemeralStorage = std::forward<FargateEphemeralStorageT>(value);
822 template <
typename FargateEphemeralStorageT = TaskEphemeralStorage>
853 bool m_enableExecuteCommand{
false};
869 TaskOverride m_overrides;
897 long long m_version{0};
899 EphemeralStorage m_ephemeralStorage;
901 TaskEphemeralStorage m_fargateEphemeralStorage;
902 bool m_attachmentsHasBeenSet =
false;
903 bool m_attributesHasBeenSet =
false;
904 bool m_availabilityZoneHasBeenSet =
false;
905 bool m_capacityProviderNameHasBeenSet =
false;
906 bool m_clusterArnHasBeenSet =
false;
907 bool m_connectivityHasBeenSet =
false;
908 bool m_connectivityAtHasBeenSet =
false;
909 bool m_containerInstanceArnHasBeenSet =
false;
910 bool m_containersHasBeenSet =
false;
911 bool m_cpuHasBeenSet =
false;
912 bool m_createdAtHasBeenSet =
false;
913 bool m_desiredStatusHasBeenSet =
false;
914 bool m_enableExecuteCommandHasBeenSet =
false;
915 bool m_executionStoppedAtHasBeenSet =
false;
916 bool m_groupHasBeenSet =
false;
917 bool m_healthStatusHasBeenSet =
false;
918 bool m_inferenceAcceleratorsHasBeenSet =
false;
919 bool m_lastStatusHasBeenSet =
false;
920 bool m_launchTypeHasBeenSet =
false;
921 bool m_memoryHasBeenSet =
false;
922 bool m_overridesHasBeenSet =
false;
923 bool m_platformVersionHasBeenSet =
false;
924 bool m_platformFamilyHasBeenSet =
false;
925 bool m_pullStartedAtHasBeenSet =
false;
926 bool m_pullStoppedAtHasBeenSet =
false;
927 bool m_startedAtHasBeenSet =
false;
928 bool m_startedByHasBeenSet =
false;
929 bool m_stopCodeHasBeenSet =
false;
930 bool m_stoppedAtHasBeenSet =
false;
931 bool m_stoppedReasonHasBeenSet =
false;
932 bool m_stoppingAtHasBeenSet =
false;
933 bool m_tagsHasBeenSet =
false;
934 bool m_taskArnHasBeenSet =
false;
935 bool m_taskDefinitionArnHasBeenSet =
false;
936 bool m_versionHasBeenSet =
false;
937 bool m_ephemeralStorageHasBeenSet =
false;
938 bool m_fargateEphemeralStorageHasBeenSet =
false;
void SetLaunchType(LaunchType value)
Task & AddInferenceAccelerators(InferenceAcceleratorsT &&value)
bool EphemeralStorageHasBeenSet() const
void SetEphemeralStorage(EphemeralStorageT &&value)
void SetStopCode(TaskStopCode value)
void SetLastStatus(LastStatusT &&value)
Task & WithGroup(GroupT &&value)
Task & WithCpu(CpuT &&value)
TaskStopCode GetStopCode() const
void SetConnectivityAt(ConnectivityAtT &&value)
long long GetVersion() const
Task & AddContainers(ContainersT &&value)
Task & WithContainers(ContainersT &&value)
void SetTags(TagsT &&value)
Task & AddAttributes(AttributesT &&value)
bool VersionHasBeenSet() const
Task & WithCreatedAt(CreatedAtT &&value)
bool DesiredStatusHasBeenSet() const
void SetExecutionStoppedAt(ExecutionStoppedAtT &&value)
bool HealthStatusHasBeenSet() const
bool CapacityProviderNameHasBeenSet() const
const Aws::Vector< Attachment > & GetAttachments() const
void SetCapacityProviderName(CapacityProviderNameT &&value)
bool OverridesHasBeenSet() const
void SetPlatformVersion(PlatformVersionT &&value)
Task & WithAttributes(AttributesT &&value)
const Aws::String & GetAvailabilityZone() const
Task & WithFargateEphemeralStorage(FargateEphemeralStorageT &&value)
Task & WithInferenceAccelerators(InferenceAcceleratorsT &&value)
Task & WithDesiredStatus(DesiredStatusT &&value)
void SetCreatedAt(CreatedAtT &&value)
Task & WithCapacityProviderName(CapacityProviderNameT &&value)
Task & WithExecutionStoppedAt(ExecutionStoppedAtT &&value)
bool AttachmentsHasBeenSet() const
bool StartedAtHasBeenSet() const
const TaskOverride & GetOverrides() const
Task & WithAvailabilityZone(AvailabilityZoneT &&value)
Task & WithLastStatus(LastStatusT &&value)
void SetContainerInstanceArn(ContainerInstanceArnT &&value)
Task & WithStoppedReason(StoppedReasonT &&value)
Task & WithLaunchType(LaunchType value)
const Aws::Utils::DateTime & GetCreatedAt() const
Task & WithStopCode(TaskStopCode value)
void SetHealthStatus(HealthStatus value)
bool TaskArnHasBeenSet() const
bool LastStatusHasBeenSet() const
bool FargateEphemeralStorageHasBeenSet() const
void SetVersion(long long value)
Task & WithConnectivityAt(ConnectivityAtT &&value)
HealthStatus GetHealthStatus() const
bool EnableExecuteCommandHasBeenSet() const
Task & WithPullStoppedAt(PullStoppedAtT &&value)
Task & WithHealthStatus(HealthStatus value)
void SetFargateEphemeralStorage(FargateEphemeralStorageT &&value)
bool PlatformVersionHasBeenSet() const
bool StopCodeHasBeenSet() const
Task & WithEnableExecuteCommand(bool value)
const Aws::Utils::DateTime & GetStartedAt() const
Connectivity GetConnectivity() const
void SetAttachments(AttachmentsT &&value)
AWS_ECS_API Task & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStoppedReason() const
bool TaskDefinitionArnHasBeenSet() const
bool ExecutionStoppedAtHasBeenSet() const
bool AvailabilityZoneHasBeenSet() const
const Aws::String & GetContainerInstanceArn() const
const Aws::String & GetTaskArn() const
Task & WithStartedBy(StartedByT &&value)
void SetStoppingAt(StoppingAtT &&value)
Task & WithStoppingAt(StoppingAtT &&value)
bool PlatformFamilyHasBeenSet() const
void SetOverrides(OverridesT &&value)
bool ConnectivityHasBeenSet() const
Task & AddAttachments(AttachmentsT &&value)
bool ContainersHasBeenSet() const
bool CreatedAtHasBeenSet() const
Task & WithVersion(long long value)
const Aws::Utils::DateTime & GetConnectivityAt() const
AWS_ECS_API Task()=default
bool StoppingAtHasBeenSet() const
const Aws::String & GetClusterArn() const
const Aws::String & GetLastStatus() const
const Aws::String & GetMemory() const
void SetPullStartedAt(PullStartedAtT &&value)
const Aws::Utils::DateTime & GetStoppedAt() const
const Aws::String & GetCapacityProviderName() const
void SetPlatformFamily(PlatformFamilyT &&value)
Task & WithPullStartedAt(PullStartedAtT &&value)
Task & WithStoppedAt(StoppedAtT &&value)
const Aws::Utils::DateTime & GetPullStoppedAt() const
Task & WithAttachments(AttachmentsT &&value)
const Aws::Vector< Tag > & GetTags() const
bool MemoryHasBeenSet() const
bool TagsHasBeenSet() const
void SetStartedBy(StartedByT &&value)
const EphemeralStorage & GetEphemeralStorage() const
const Aws::String & GetCpu() const
Task & WithContainerInstanceArn(ContainerInstanceArnT &&value)
Task & WithClusterArn(ClusterArnT &&value)
void SetEnableExecuteCommand(bool value)
void SetTaskDefinitionArn(TaskDefinitionArnT &&value)
const Aws::String & GetGroup() const
const Aws::Vector< Container > & GetContainers() const
bool GroupHasBeenSet() const
void SetConnectivity(Connectivity value)
const Aws::String & GetDesiredStatus() const
bool StartedByHasBeenSet() const
void SetGroup(GroupT &&value)
const Aws::Utils::DateTime & GetStoppingAt() const
bool ClusterArnHasBeenSet() const
void SetAttributes(AttributesT &&value)
void SetStoppedAt(StoppedAtT &&value)
void SetTaskArn(TaskArnT &&value)
LaunchType GetLaunchType() const
Task & WithTags(TagsT &&value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
bool PullStartedAtHasBeenSet() const
void SetClusterArn(ClusterArnT &&value)
bool AttributesHasBeenSet() const
const Aws::String & GetStartedBy() const
void SetStartedAt(StartedAtT &&value)
void SetContainers(ContainersT &&value)
bool InferenceAcceleratorsHasBeenSet() const
const Aws::String & GetPlatformVersion() const
void SetCpu(CpuT &&value)
void SetMemory(MemoryT &&value)
bool PullStoppedAtHasBeenSet() const
Task & WithEphemeralStorage(EphemeralStorageT &&value)
Task & WithTaskDefinitionArn(TaskDefinitionArnT &&value)
const Aws::Utils::DateTime & GetPullStartedAt() const
bool LaunchTypeHasBeenSet() const
Task & WithConnectivity(Connectivity value)
bool GetEnableExecuteCommand() const
bool StoppedAtHasBeenSet() const
Task & WithTaskArn(TaskArnT &&value)
void SetInferenceAccelerators(InferenceAcceleratorsT &&value)
bool CpuHasBeenSet() const
const TaskEphemeralStorage & GetFargateEphemeralStorage() const
bool StoppedReasonHasBeenSet() const
bool ConnectivityAtHasBeenSet() const
void SetDesiredStatus(DesiredStatusT &&value)
const Aws::Vector< Attribute > & GetAttributes() const
void SetStoppedReason(StoppedReasonT &&value)
AWS_ECS_API Task(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPlatformFamily() const
const Aws::String & GetTaskDefinitionArn() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
Task & WithPlatformFamily(PlatformFamilyT &&value)
const Aws::Vector< InferenceAccelerator > & GetInferenceAccelerators() const
Task & WithOverrides(OverridesT &&value)
const Aws::Utils::DateTime & GetExecutionStoppedAt() const
Task & WithPlatformVersion(PlatformVersionT &&value)
Task & AddTags(TagsT &&value)
void SetPullStoppedAt(PullStoppedAtT &&value)
Task & WithStartedAt(StartedAtT &&value)
bool ContainerInstanceArnHasBeenSet() const
Task & WithMemory(MemoryT &&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