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>
91 inline void SetAvailabilityZone(
const char* value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone.assign(value); }
105 inline void SetCapacityProviderName(
const char* value) { m_capacityProviderNameHasBeenSet =
true; m_capacityProviderName.assign(value); }
119 inline void SetClusterArn(
const char* value) { m_clusterArnHasBeenSet =
true; m_clusterArn.assign(value); }
158 inline void SetContainerInstanceArn(
const char* value) { m_containerInstanceArnHasBeenSet =
true; m_containerInstanceArn.assign(value); }
210 inline void SetCpu(
const char* value) { m_cpuHasBeenSet =
true; m_cpu.assign(value); }
239 inline void SetDesiredStatus(
const char* value) { m_desiredStatusHasBeenSet =
true; m_desiredStatus.assign(value); }
277 inline void SetGroup(
const char* value) { m_groupHasBeenSet =
true; m_group.assign(value); }
330 inline void SetLastStatus(
const char* value) { m_lastStatusHasBeenSet =
true; m_lastStatus.assign(value); }
380 inline void SetMemory(
const char* value) { m_memoryHasBeenSet =
true; m_memory.assign(value); }
411 inline void SetPlatformVersion(
const char* value) { m_platformVersionHasBeenSet =
true; m_platformVersion.assign(value); }
428 inline void SetPlatformFamily(
const char* value) { m_platformFamilyHasBeenSet =
true; m_platformFamily.assign(value); }
482 inline void SetStartedBy(
const char* value) { m_startedByHasBeenSet =
true; m_startedBy.assign(value); }
526 inline void SetStoppedReason(
const char* value) { m_stoppedReasonHasBeenSet =
true; m_stoppedReason.assign(value); }
572 inline Task&
AddTags(
const Tag& value) { m_tagsHasBeenSet =
true; m_tags.push_back(value);
return *
this; }
573 inline Task&
AddTags(
Tag&& value) { m_tagsHasBeenSet =
true; m_tags.push_back(std::move(value));
return *
this; }
584 inline void SetTaskArn(
const char* value) { m_taskArnHasBeenSet =
true; m_taskArn.assign(value); }
598 inline void SetTaskDefinitionArn(
const char* value) { m_taskDefinitionArnHasBeenSet =
true; m_taskDefinitionArn.assign(value); }
615 inline void SetVersion(
long long value) { m_versionHasBeenSet =
true; m_version = value; }
645 bool m_attachmentsHasBeenSet =
false;
648 bool m_attributesHasBeenSet =
false;
651 bool m_availabilityZoneHasBeenSet =
false;
654 bool m_capacityProviderNameHasBeenSet =
false;
657 bool m_clusterArnHasBeenSet =
false;
660 bool m_connectivityHasBeenSet =
false;
663 bool m_connectivityAtHasBeenSet =
false;
666 bool m_containerInstanceArnHasBeenSet =
false;
669 bool m_containersHasBeenSet =
false;
672 bool m_cpuHasBeenSet =
false;
675 bool m_createdAtHasBeenSet =
false;
678 bool m_desiredStatusHasBeenSet =
false;
680 bool m_enableExecuteCommand;
681 bool m_enableExecuteCommandHasBeenSet =
false;
684 bool m_executionStoppedAtHasBeenSet =
false;
687 bool m_groupHasBeenSet =
false;
690 bool m_healthStatusHasBeenSet =
false;
693 bool m_inferenceAcceleratorsHasBeenSet =
false;
696 bool m_lastStatusHasBeenSet =
false;
699 bool m_launchTypeHasBeenSet =
false;
702 bool m_memoryHasBeenSet =
false;
705 bool m_overridesHasBeenSet =
false;
708 bool m_platformVersionHasBeenSet =
false;
711 bool m_platformFamilyHasBeenSet =
false;
714 bool m_pullStartedAtHasBeenSet =
false;
717 bool m_pullStoppedAtHasBeenSet =
false;
720 bool m_startedAtHasBeenSet =
false;
723 bool m_startedByHasBeenSet =
false;
726 bool m_stopCodeHasBeenSet =
false;
729 bool m_stoppedAtHasBeenSet =
false;
732 bool m_stoppedReasonHasBeenSet =
false;
735 bool m_stoppingAtHasBeenSet =
false;
738 bool m_tagsHasBeenSet =
false;
741 bool m_taskArnHasBeenSet =
false;
744 bool m_taskDefinitionArnHasBeenSet =
false;
747 bool m_versionHasBeenSet =
false;
750 bool m_ephemeralStorageHasBeenSet =
false;
753 bool m_fargateEphemeralStorageHasBeenSet =
false;
Task & WithCreatedAt(Aws::Utils::DateTime &&value)
Task & AddContainers(const Container &value)
Task & WithClusterArn(const Aws::String &value)
void SetLastStatus(const char *value)
void SetStartedBy(const char *value)
void SetPlatformVersion(Aws::String &&value)
Task & AddAttachments(Attachment &&value)
bool EphemeralStorageHasBeenSet() const
void SetStopCode(TaskStopCode &&value)
Task & WithExecutionStoppedAt(const Aws::Utils::DateTime &value)
void SetStoppingAt(const Aws::Utils::DateTime &value)
Task & WithAttributes(const Aws::Vector< Attribute > &value)
void SetStoppedAt(Aws::Utils::DateTime &&value)
Task & AddAttributes(const Attribute &value)
Task & WithMemory(const char *value)
void SetInferenceAccelerators(Aws::Vector< InferenceAccelerator > &&value)
long long GetVersion() const
Task & WithLaunchType(const LaunchType &value)
Task & WithContainerInstanceArn(Aws::String &&value)
const Connectivity & GetConnectivity() const
void SetTags(const Aws::Vector< Tag > &value)
void SetTaskDefinitionArn(Aws::String &&value)
void SetClusterArn(const Aws::String &value)
bool VersionHasBeenSet() const
Task & WithContainers(Aws::Vector< Container > &&value)
bool DesiredStatusHasBeenSet() const
Task & WithInferenceAccelerators(Aws::Vector< InferenceAccelerator > &&value)
bool HealthStatusHasBeenSet() const
bool CapacityProviderNameHasBeenSet() const
Task & WithStartedAt(const Aws::Utils::DateTime &value)
const Aws::Vector< Attachment > & GetAttachments() const
const LaunchType & GetLaunchType() const
Task & WithStartedAt(Aws::Utils::DateTime &&value)
bool OverridesHasBeenSet() const
void SetHealthStatus(const HealthStatus &value)
const Aws::String & GetAvailabilityZone() const
Task & WithCpu(Aws::String &&value)
Task & WithStopCode(TaskStopCode &&value)
void SetClusterArn(Aws::String &&value)
void SetStoppedReason(const Aws::String &value)
bool AttachmentsHasBeenSet() const
bool StartedAtHasBeenSet() const
const TaskOverride & GetOverrides() const
Task & WithTaskDefinitionArn(const char *value)
Task & WithStoppedReason(const Aws::String &value)
void SetAvailabilityZone(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetStartedBy(const Aws::String &value)
Task & WithAvailabilityZone(const Aws::String &value)
Task & WithStartedBy(Aws::String &&value)
void SetAttributes(const Aws::Vector< Attribute > &value)
bool TaskArnHasBeenSet() const
bool LastStatusHasBeenSet() const
Task & WithConnectivity(Connectivity &&value)
void SetContainerInstanceArn(const char *value)
void SetLastStatus(const Aws::String &value)
bool FargateEphemeralStorageHasBeenSet() const
void SetPullStoppedAt(const Aws::Utils::DateTime &value)
Task & AddTags(Tag &&value)
Task & WithAttributes(Aws::Vector< Attribute > &&value)
void SetVersion(long long value)
Task & WithContainerInstanceArn(const Aws::String &value)
void SetCpu(const Aws::String &value)
Task & WithEphemeralStorage(EphemeralStorage &&value)
Task & WithPlatformVersion(const char *value)
void SetGroup(Aws::String &&value)
Task & AddInferenceAccelerators(const InferenceAccelerator &value)
Task & WithConnectivityAt(const Aws::Utils::DateTime &value)
bool EnableExecuteCommandHasBeenSet() const
Task & WithPlatformVersion(Aws::String &&value)
void SetDesiredStatus(const Aws::String &value)
void SetTaskArn(const Aws::String &value)
bool PlatformVersionHasBeenSet() const
void SetLaunchType(LaunchType &&value)
void SetStoppingAt(Aws::Utils::DateTime &&value)
void SetPullStoppedAt(Aws::Utils::DateTime &&value)
Task & WithPullStartedAt(const Aws::Utils::DateTime &value)
Task & AddInferenceAccelerators(InferenceAccelerator &&value)
void SetMemory(Aws::String &&value)
Task & WithTags(Aws::Vector< Tag > &&value)
void SetEphemeralStorage(const EphemeralStorage &value)
Task & WithDesiredStatus(const Aws::String &value)
Task & WithCapacityProviderName(const char *value)
bool StopCodeHasBeenSet() const
Task & WithEnableExecuteCommand(bool value)
void SetAvailabilityZone(Aws::String &&value)
const Aws::Utils::DateTime & GetStartedAt() const
void SetTaskArn(Aws::String &&value)
void SetStartedAt(const Aws::Utils::DateTime &value)
void SetExecutionStoppedAt(const Aws::Utils::DateTime &value)
Task & WithCpu(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
AWS_ECS_API Task & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExecutionStoppedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetStoppedReason() const
Task & WithPlatformFamily(Aws::String &&value)
bool TaskDefinitionArnHasBeenSet() const
void SetContainerInstanceArn(Aws::String &&value)
Task & WithOverrides(const TaskOverride &value)
bool ExecutionStoppedAtHasBeenSet() const
Task & WithCreatedAt(const Aws::Utils::DateTime &value)
Task & WithGroup(const Aws::String &value)
Task & WithConnectivity(const Connectivity &value)
void SetPlatformVersion(const char *value)
bool AvailabilityZoneHasBeenSet() const
Task & AddContainers(Container &&value)
const Aws::String & GetContainerInstanceArn() const
Task & WithStoppedAt(Aws::Utils::DateTime &&value)
void SetGroup(const Aws::String &value)
Task & WithConnectivityAt(Aws::Utils::DateTime &&value)
const Aws::String & GetTaskArn() const
void SetAttributes(Aws::Vector< Attribute > &&value)
void SetAttachments(Aws::Vector< Attachment > &&value)
void SetCpu(const char *value)
bool PlatformFamilyHasBeenSet() const
void SetInferenceAccelerators(const Aws::Vector< InferenceAccelerator > &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
bool ConnectivityHasBeenSet() const
Task & WithHealthStatus(HealthStatus &&value)
Task & WithClusterArn(const char *value)
bool ContainersHasBeenSet() const
bool CreatedAtHasBeenSet() const
Task & WithVersion(long long value)
Task & WithPlatformVersion(const Aws::String &value)
const Aws::Utils::DateTime & GetConnectivityAt() const
void SetOverrides(const TaskOverride &value)
void SetCapacityProviderName(const Aws::String &value)
void SetDesiredStatus(const char *value)
Task & WithStopCode(const TaskStopCode &value)
Task & WithOverrides(TaskOverride &&value)
Task & AddAttributes(Attribute &&value)
bool StoppingAtHasBeenSet() const
Task & WithTaskArn(const char *value)
Task & WithTaskArn(Aws::String &&value)
const Aws::String & GetClusterArn() const
const Aws::String & GetLastStatus() const
const Aws::String & GetMemory() const
Task & AddAttachments(const Attachment &value)
void SetCapacityProviderName(const char *value)
Task & WithDesiredStatus(Aws::String &&value)
const Aws::Utils::DateTime & GetStoppedAt() const
const Aws::String & GetCapacityProviderName() const
void SetPlatformFamily(const Aws::String &value)
void SetPlatformFamily(Aws::String &&value)
void SetLastStatus(Aws::String &&value)
void SetContainers(const Aws::Vector< Container > &value)
Task & WithStoppedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetPullStoppedAt() const
void SetTaskDefinitionArn(const Aws::String &value)
Task & WithMemory(Aws::String &&value)
void SetFargateEphemeralStorage(TaskEphemeralStorage &&value)
const Aws::Vector< Tag > & GetTags() const
Task & AddTags(const Tag &value)
bool MemoryHasBeenSet() const
void SetStartedBy(Aws::String &&value)
bool TagsHasBeenSet() const
const EphemeralStorage & GetEphemeralStorage() const
void SetContainerInstanceArn(const Aws::String &value)
Task & WithPlatformFamily(const Aws::String &value)
void SetPullStartedAt(Aws::Utils::DateTime &&value)
void SetPlatformVersion(const Aws::String &value)
void SetDesiredStatus(Aws::String &&value)
const Aws::String & GetCpu() const
void SetEnableExecuteCommand(bool value)
Task & WithExecutionStoppedAt(Aws::Utils::DateTime &&value)
Task & WithAttachments(Aws::Vector< Attachment > &&value)
Task & WithCpu(const Aws::String &value)
const Aws::String & GetGroup() const
void SetHealthStatus(HealthStatus &&value)
Task & WithInferenceAccelerators(const Aws::Vector< InferenceAccelerator > &value)
const Aws::Vector< Container > & GetContainers() const
bool GroupHasBeenSet() const
Task & WithGroup(Aws::String &&value)
const HealthStatus & GetHealthStatus() const
void SetFargateEphemeralStorage(const TaskEphemeralStorage &value)
Task & WithTaskDefinitionArn(Aws::String &&value)
void SetMemory(const Aws::String &value)
Task & WithAttachments(const Aws::Vector< Attachment > &value)
Task & WithAvailabilityZone(Aws::String &&value)
void SetContainers(Aws::Vector< Container > &&value)
void SetStoppedReason(Aws::String &&value)
Task & WithContainers(const Aws::Vector< Container > &value)
const Aws::String & GetDesiredStatus() const
Task & WithClusterArn(Aws::String &&value)
Task & WithCapacityProviderName(const Aws::String &value)
bool StartedByHasBeenSet() const
const Aws::Utils::DateTime & GetStoppingAt() const
bool ClusterArnHasBeenSet() const
Task & WithFargateEphemeralStorage(const TaskEphemeralStorage &value)
void SetClusterArn(const char *value)
Task & WithTaskArn(const Aws::String &value)
Task & WithStoppingAt(const Aws::Utils::DateTime &value)
bool PullStartedAtHasBeenSet() const
Task & WithStartedBy(const Aws::String &value)
Task & WithPullStartedAt(Aws::Utils::DateTime &&value)
Task & WithStartedBy(const char *value)
bool AttributesHasBeenSet() const
const Aws::String & GetStartedBy() const
Task & WithDesiredStatus(const char *value)
void SetMemory(const char *value)
void SetStoppedAt(const Aws::Utils::DateTime &value)
void SetEphemeralStorage(EphemeralStorage &&value)
void SetStopCode(const TaskStopCode &value)
bool InferenceAcceleratorsHasBeenSet() const
const Aws::String & GetPlatformVersion() const
Task & WithGroup(const char *value)
Task & WithLastStatus(const char *value)
void SetCapacityProviderName(Aws::String &&value)
void SetOverrides(TaskOverride &&value)
Task & WithContainerInstanceArn(const char *value)
void SetAttachments(const Aws::Vector< Attachment > &value)
void SetStoppedReason(const char *value)
void SetConnectivity(Connectivity &&value)
const TaskStopCode & GetStopCode() const
Task & WithPullStoppedAt(Aws::Utils::DateTime &&value)
bool PullStoppedAtHasBeenSet() const
Task & WithPullStoppedAt(const Aws::Utils::DateTime &value)
Task & WithCapacityProviderName(Aws::String &&value)
Task & WithAvailabilityZone(const char *value)
void SetAvailabilityZone(const char *value)
void SetLaunchType(const LaunchType &value)
void SetConnectivity(const Connectivity &value)
Task & WithFargateEphemeralStorage(TaskEphemeralStorage &&value)
const Aws::Utils::DateTime & GetPullStartedAt() const
Task & WithHealthStatus(const HealthStatus &value)
bool LaunchTypeHasBeenSet() const
bool GetEnableExecuteCommand() const
bool StoppedAtHasBeenSet() const
void SetStartedAt(Aws::Utils::DateTime &&value)
Task & WithStoppingAt(Aws::Utils::DateTime &&value)
Task & WithLastStatus(const Aws::String &value)
bool CpuHasBeenSet() const
void SetGroup(const char *value)
const TaskEphemeralStorage & GetFargateEphemeralStorage() const
void SetPlatformFamily(const char *value)
void SetConnectivityAt(Aws::Utils::DateTime &&value)
bool StoppedReasonHasBeenSet() const
bool ConnectivityAtHasBeenSet() const
Task & WithTags(const Aws::Vector< Tag > &value)
Task & WithStoppedReason(const char *value)
const Aws::Vector< Attribute > & GetAttributes() const
AWS_ECS_API Task(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetCpu(Aws::String &&value)
Task & WithStoppedReason(Aws::String &&value)
const Aws::String & GetPlatformFamily() const
void SetConnectivityAt(const Aws::Utils::DateTime &value)
void SetTaskArn(const char *value)
const Aws::String & GetTaskDefinitionArn() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< InferenceAccelerator > & GetInferenceAccelerators() const
Task & WithTaskDefinitionArn(const Aws::String &value)
Task & WithLastStatus(Aws::String &&value)
Task & WithLaunchType(LaunchType &&value)
const Aws::Utils::DateTime & GetExecutionStoppedAt() const
void SetTaskDefinitionArn(const char *value)
void SetPullStartedAt(const Aws::Utils::DateTime &value)
Task & WithEphemeralStorage(const EphemeralStorage &value)
bool ContainerInstanceArnHasBeenSet() const
Task & WithPlatformFamily(const char *value)
Task & WithMemory(const Aws::String &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