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>
44 AWS_ECS_API
Task() =
default;
56 template <
typename AttachmentsT = Aws::Vector<Attachment>>
58 m_attachmentsHasBeenSet =
true;
59 m_attachments = std::forward<AttachmentsT>(value);
61 template <
typename AttachmentsT = Aws::Vector<Attachment>>
66 template <
typename AttachmentsT = Attachment>
68 m_attachmentsHasBeenSet =
true;
69 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
80 template <
typename AttributesT = Aws::Vector<Attribute>>
82 m_attributesHasBeenSet =
true;
83 m_attributes = std::forward<AttributesT>(value);
85 template <
typename AttributesT = Aws::Vector<Attribute>>
90 template <
typename AttributesT = Attribute>
92 m_attributesHasBeenSet =
true;
93 m_attributes.emplace_back(std::forward<AttributesT>(value));
104 template <
typename AvailabilityZoneT = Aws::String>
106 m_availabilityZoneHasBeenSet =
true;
107 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
109 template <
typename AvailabilityZoneT = Aws::String>
122 template <
typename CapacityProv
iderNameT = Aws::String>
124 m_capacityProviderNameHasBeenSet =
true;
125 m_capacityProviderName = std::forward<CapacityProviderNameT>(value);
127 template <
typename CapacityProv
iderNameT = Aws::String>
140 template <
typename ClusterArnT = Aws::String>
142 m_clusterArnHasBeenSet =
true;
143 m_clusterArn = std::forward<ClusterArnT>(value);
145 template <
typename ClusterArnT = Aws::String>
159 m_connectivityHasBeenSet =
true;
160 m_connectivity = value;
175 template <
typename ConnectivityAtT = Aws::Utils::DateTime>
177 m_connectivityAtHasBeenSet =
true;
178 m_connectivityAt = std::forward<ConnectivityAtT>(value);
180 template <
typename ConnectivityAtT = Aws::Utils::DateTime>
193 template <
typename ContainerInstanceArnT = Aws::String>
195 m_containerInstanceArnHasBeenSet =
true;
196 m_containerInstanceArn = std::forward<ContainerInstanceArnT>(value);
198 template <
typename ContainerInstanceArnT = Aws::String>
211 template <
typename ContainersT = Aws::Vector<Container>>
213 m_containersHasBeenSet =
true;
214 m_containers = std::forward<ContainersT>(value);
216 template <
typename ContainersT = Aws::Vector<Container>>
221 template <
typename ContainersT = Container>
223 m_containersHasBeenSet =
true;
224 m_containers.emplace_back(std::forward<ContainersT>(value));
247 template <
typename CpuT = Aws::String>
249 m_cpuHasBeenSet =
true;
250 m_cpu = std::forward<CpuT>(value);
252 template <
typename CpuT = Aws::String>
254 SetCpu(std::forward<CpuT>(value));
266 template <
typename CreatedAtT = Aws::Utils::DateTime>
268 m_createdAtHasBeenSet =
true;
269 m_createdAt = std::forward<CreatedAtT>(value);
271 template <
typename CreatedAtT = Aws::Utils::DateTime>
286 template <
typename DesiredStatusT = Aws::String>
288 m_desiredStatusHasBeenSet =
true;
289 m_desiredStatus = std::forward<DesiredStatusT>(value);
291 template <
typename DesiredStatusT = Aws::String>
307 m_enableExecuteCommandHasBeenSet =
true;
308 m_enableExecuteCommand = value;
322 template <
typename ExecutionStoppedAtT = Aws::Utils::DateTime>
324 m_executionStoppedAtHasBeenSet =
true;
325 m_executionStoppedAt = std::forward<ExecutionStoppedAtT>(value);
327 template <
typename ExecutionStoppedAtT = Aws::Utils::DateTime>
340 template <
typename GroupT = Aws::String>
342 m_groupHasBeenSet =
true;
343 m_group = std::forward<GroupT>(value);
345 template <
typename GroupT = Aws::String>
347 SetGroup(std::forward<GroupT>(value));
370 m_healthStatusHasBeenSet =
true;
371 m_healthStatus = value;
385 template <
typename InferenceAcceleratorsT = Aws::Vector<InferenceAccelerator>>
387 m_inferenceAcceleratorsHasBeenSet =
true;
388 m_inferenceAccelerators = std::forward<InferenceAcceleratorsT>(value);
390 template <
typename InferenceAcceleratorsT = Aws::Vector<InferenceAccelerator>>
395 template <
typename InferenceAcceleratorsT = InferenceAccelerator>
397 m_inferenceAcceleratorsHasBeenSet =
true;
398 m_inferenceAccelerators.emplace_back(std::forward<InferenceAcceleratorsT>(value));
411 template <
typename LastStatusT = Aws::String>
413 m_lastStatusHasBeenSet =
true;
414 m_lastStatus = std::forward<LastStatusT>(value);
416 template <
typename LastStatusT = Aws::String>
433 m_launchTypeHasBeenSet =
true;
434 m_launchType = value;
469 template <
typename MemoryT = Aws::String>
471 m_memoryHasBeenSet =
true;
472 m_memory = std::forward<MemoryT>(value);
474 template <
typename MemoryT = Aws::String>
487 template <
typename Overr
idesT = TaskOverr
ide>
489 m_overridesHasBeenSet =
true;
490 m_overrides = std::forward<OverridesT>(value);
492 template <
typename Overr
idesT = TaskOverr
ide>
510 template <
typename PlatformVersionT = Aws::String>
512 m_platformVersionHasBeenSet =
true;
513 m_platformVersion = std::forward<PlatformVersionT>(value);
515 template <
typename PlatformVersionT = Aws::String>
531 template <
typename PlatformFamilyT = Aws::String>
533 m_platformFamilyHasBeenSet =
true;
534 m_platformFamily = std::forward<PlatformFamilyT>(value);
536 template <
typename PlatformFamilyT = Aws::String>
549 template <
typename PullStartedAtT = Aws::Utils::DateTime>
551 m_pullStartedAtHasBeenSet =
true;
552 m_pullStartedAt = std::forward<PullStartedAtT>(value);
554 template <
typename PullStartedAtT = Aws::Utils::DateTime>
567 template <
typename PullStoppedAtT = Aws::Utils::DateTime>
569 m_pullStoppedAtHasBeenSet =
true;
570 m_pullStoppedAt = std::forward<PullStoppedAtT>(value);
572 template <
typename PullStoppedAtT = Aws::Utils::DateTime>
587 template <
typename StartedAtT = Aws::Utils::DateTime>
589 m_startedAtHasBeenSet =
true;
590 m_startedAt = std::forward<StartedAtT>(value);
592 template <
typename StartedAtT = Aws::Utils::DateTime>
607 template <
typename StartedByT = Aws::String>
609 m_startedByHasBeenSet =
true;
610 m_startedBy = std::forward<StartedByT>(value);
612 template <
typename StartedByT = Aws::String>
630 m_stopCodeHasBeenSet =
true;
647 template <
typename StoppedAtT = Aws::Utils::DateTime>
649 m_stoppedAtHasBeenSet =
true;
650 m_stoppedAt = std::forward<StoppedAtT>(value);
652 template <
typename StoppedAtT = Aws::Utils::DateTime>
665 template <
typename StoppedReasonT = Aws::String>
667 m_stoppedReasonHasBeenSet =
true;
668 m_stoppedReason = std::forward<StoppedReasonT>(value);
670 template <
typename StoppedReasonT = Aws::String>
685 template <
typename StoppingAtT = Aws::Utils::DateTime>
687 m_stoppingAtHasBeenSet =
true;
688 m_stoppingAt = std::forward<StoppingAtT>(value);
690 template <
typename StoppingAtT = Aws::Utils::DateTime>
719 template <
typename TagsT = Aws::Vector<Tag>>
721 m_tagsHasBeenSet =
true;
722 m_tags = std::forward<TagsT>(value);
724 template <
typename TagsT = Aws::Vector<Tag>>
726 SetTags(std::forward<TagsT>(value));
729 template <
typename TagsT = Tag>
731 m_tagsHasBeenSet =
true;
732 m_tags.emplace_back(std::forward<TagsT>(value));
743 template <
typename TaskArnT = Aws::String>
745 m_taskArnHasBeenSet =
true;
746 m_taskArn = std::forward<TaskArnT>(value);
748 template <
typename TaskArnT = Aws::String>
761 template <
typename TaskDefinitionArnT = Aws::String>
763 m_taskDefinitionArnHasBeenSet =
true;
764 m_taskDefinitionArn = std::forward<TaskDefinitionArnT>(value);
766 template <
typename TaskDefinitionArnT = Aws::String>
785 m_versionHasBeenSet =
true;
800 template <
typename EphemeralStorageT = EphemeralStorage>
802 m_ephemeralStorageHasBeenSet =
true;
803 m_ephemeralStorage = std::forward<EphemeralStorageT>(value);
805 template <
typename EphemeralStorageT = EphemeralStorage>
818 template <
typename FargateEphemeralStorageT = TaskEphemeralStorage>
820 m_fargateEphemeralStorageHasBeenSet =
true;
821 m_fargateEphemeralStorage = std::forward<FargateEphemeralStorageT>(value);
823 template <
typename FargateEphemeralStorageT = TaskEphemeralStorage>
839 template <
typename TrustedExecutionSummaryT = TrustedExecutionSummary>
841 m_trustedExecutionSummaryHasBeenSet =
true;
842 m_trustedExecutionSummary = std::forward<TrustedExecutionSummaryT>(value);
844 template <
typename TrustedExecutionSummaryT = TrustedExecutionSummary>
875 bool m_enableExecuteCommand{
false};
891 TaskOverride m_overrides;
919 long long m_version{0};
921 EphemeralStorage m_ephemeralStorage;
923 TaskEphemeralStorage m_fargateEphemeralStorage;
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;
void SetLaunchType(LaunchType value)
Task & AddInferenceAccelerators(InferenceAcceleratorsT &&value)
void SetTrustedExecutionSummary(TrustedExecutionSummaryT &&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)
bool TrustedExecutionSummaryHasBeenSet() const
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)
const TrustedExecutionSummary & GetTrustedExecutionSummary() const
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 & WithTrustedExecutionSummary(TrustedExecutionSummaryT &&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