7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/model/NetworkMode.h>
11#include <aws/ecs/model/TaskDefinitionStatus.h>
12#include <aws/ecs/model/RuntimePlatform.h>
13#include <aws/ecs/model/PidMode.h>
14#include <aws/ecs/model/IpcMode.h>
15#include <aws/ecs/model/ProxyConfiguration.h>
16#include <aws/core/utils/DateTime.h>
17#include <aws/ecs/model/EphemeralStorage.h>
18#include <aws/ecs/model/ContainerDefinition.h>
19#include <aws/ecs/model/Volume.h>
20#include <aws/ecs/model/Attribute.h>
21#include <aws/ecs/model/TaskDefinitionPlacementConstraint.h>
22#include <aws/ecs/model/Compatibility.h>
23#include <aws/ecs/model/InferenceAccelerator.h>
67 inline void SetTaskDefinitionArn(
const char* value) { m_taskDefinitionArnHasBeenSet =
true; m_taskDefinitionArn.assign(value); }
105 inline void SetFamily(
const char* value) { m_familyHasBeenSet =
true; m_family.assign(value); }
125 inline void SetTaskRoleArn(
const char* value) { m_taskRoleArnHasBeenSet =
true; m_taskRoleArn.assign(value); }
144 inline void SetExecutionRoleArn(
const char* value) { m_executionRoleArnHasBeenSet =
true; m_executionRoleArn.assign(value); }
202 inline void SetRevision(
int value) { m_revisionHasBeenSet =
true; m_revision = value; }
356 inline void SetCpu(
const char* value) { m_cpuHasBeenSet =
true; m_cpu.assign(value); }
393 inline void SetMemory(
const char* value) { m_memoryHasBeenSet =
true; m_memory.assign(value); }
440 inline void SetPidMode(
PidMode&& value) { m_pidModeHasBeenSet =
true; m_pidMode = std::move(value); }
478 inline void SetIpcMode(
IpcMode&& value) { m_ipcModeHasBeenSet =
true; m_ipcMode = std::move(value); }
537 inline void SetRegisteredBy(
const char* value) { m_registeredByHasBeenSet =
true; m_registeredBy.assign(value); }
558 bool m_taskDefinitionArnHasBeenSet =
false;
561 bool m_containerDefinitionsHasBeenSet =
false;
564 bool m_familyHasBeenSet =
false;
567 bool m_taskRoleArnHasBeenSet =
false;
570 bool m_executionRoleArnHasBeenSet =
false;
573 bool m_networkModeHasBeenSet =
false;
576 bool m_revisionHasBeenSet =
false;
579 bool m_volumesHasBeenSet =
false;
582 bool m_statusHasBeenSet =
false;
585 bool m_requiresAttributesHasBeenSet =
false;
588 bool m_placementConstraintsHasBeenSet =
false;
591 bool m_compatibilitiesHasBeenSet =
false;
594 bool m_runtimePlatformHasBeenSet =
false;
597 bool m_requiresCompatibilitiesHasBeenSet =
false;
600 bool m_cpuHasBeenSet =
false;
603 bool m_memoryHasBeenSet =
false;
606 bool m_inferenceAcceleratorsHasBeenSet =
false;
609 bool m_pidModeHasBeenSet =
false;
612 bool m_ipcModeHasBeenSet =
false;
615 bool m_proxyConfigurationHasBeenSet =
false;
618 bool m_registeredAtHasBeenSet =
false;
621 bool m_deregisteredAtHasBeenSet =
false;
624 bool m_registeredByHasBeenSet =
false;
627 bool m_ephemeralStorageHasBeenSet =
false;
const Aws::String & GetRegisteredBy() const
TaskDefinition & AddVolumes(const Volume &value)
void SetDeregisteredAt(const Aws::Utils::DateTime &value)
const Aws::String & GetMemory() const
TaskDefinition & WithPidMode(const PidMode &value)
TaskDefinition & WithContainerDefinitions(const Aws::Vector< ContainerDefinition > &value)
const NetworkMode & GetNetworkMode() const
TaskDefinition & WithCpu(const Aws::String &value)
void SetProxyConfiguration(const ProxyConfiguration &value)
void SetIpcMode(const IpcMode &value)
const Aws::String & GetCpu() const
bool RequiresCompatibilitiesHasBeenSet() const
TaskDefinition & WithFamily(const Aws::String &value)
const Aws::Vector< Volume > & GetVolumes() const
TaskDefinition & WithExecutionRoleArn(const char *value)
void SetContainerDefinitions(const Aws::Vector< ContainerDefinition > &value)
TaskDefinition & WithMemory(const char *value)
TaskDefinition & AddRequiresAttributes(const Attribute &value)
void SetIpcMode(IpcMode &&value)
const ProxyConfiguration & GetProxyConfiguration() const
void SetRuntimePlatform(const RuntimePlatform &value)
void SetVolumes(Aws::Vector< Volume > &&value)
const Aws::Vector< Compatibility > & GetCompatibilities() const
bool TaskRoleArnHasBeenSet() const
void SetRevision(int value)
TaskDefinition & WithCpu(Aws::String &&value)
const Aws::String & GetTaskDefinitionArn() const
AWS_ECS_API TaskDefinition()
void SetRegisteredBy(Aws::String &&value)
TaskDefinition & WithFamily(const char *value)
void SetRegisteredBy(const char *value)
TaskDefinition & WithTaskRoleArn(const Aws::String &value)
void SetEphemeralStorage(EphemeralStorage &&value)
TaskDefinition & WithEphemeralStorage(const EphemeralStorage &value)
void SetRequiresAttributes(const Aws::Vector< Attribute > &value)
TaskDefinition & WithMemory(Aws::String &&value)
bool NetworkModeHasBeenSet() const
TaskDefinition & WithTaskRoleArn(const char *value)
void SetTaskDefinitionArn(const char *value)
const Aws::String & GetTaskRoleArn() const
bool VolumesHasBeenSet() const
TaskDefinition & WithVolumes(const Aws::Vector< Volume > &value)
void SetMemory(const Aws::String &value)
AWS_ECS_API TaskDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVolumes(const Aws::Vector< Volume > &value)
void SetRegisteredAt(Aws::Utils::DateTime &&value)
void SetExecutionRoleArn(Aws::String &&value)
void SetMemory(Aws::String &&value)
void SetPlacementConstraints(const Aws::Vector< TaskDefinitionPlacementConstraint > &value)
TaskDefinition & WithPidMode(PidMode &&value)
TaskDefinition & AddPlacementConstraints(TaskDefinitionPlacementConstraint &&value)
void SetExecutionRoleArn(const char *value)
void SetTaskDefinitionArn(const Aws::String &value)
TaskDefinition & WithTaskRoleArn(Aws::String &&value)
void SetCpu(Aws::String &&value)
TaskDefinition & AddPlacementConstraints(const TaskDefinitionPlacementConstraint &value)
TaskDefinition & WithProxyConfiguration(const ProxyConfiguration &value)
TaskDefinition & WithNetworkMode(const NetworkMode &value)
TaskDefinition & WithRegisteredAt(Aws::Utils::DateTime &&value)
AWS_ECS_API TaskDefinition(Aws::Utils::Json::JsonView jsonValue)
TaskDefinition & AddContainerDefinitions(ContainerDefinition &&value)
void SetInferenceAccelerators(const Aws::Vector< InferenceAccelerator > &value)
void SetTaskRoleArn(const char *value)
const IpcMode & GetIpcMode() const
void SetRequiresCompatibilities(Aws::Vector< Compatibility > &&value)
bool RevisionHasBeenSet() const
TaskDefinition & WithInferenceAccelerators(Aws::Vector< InferenceAccelerator > &&value)
const RuntimePlatform & GetRuntimePlatform() const
void SetRegisteredAt(const Aws::Utils::DateTime &value)
TaskDefinition & WithNetworkMode(NetworkMode &&value)
TaskDefinition & WithTaskDefinitionArn(const char *value)
void SetFamily(const char *value)
bool PidModeHasBeenSet() const
void SetRuntimePlatform(RuntimePlatform &&value)
void SetTaskDefinitionArn(Aws::String &&value)
void SetStatus(TaskDefinitionStatus &&value)
void SetCompatibilities(Aws::Vector< Compatibility > &&value)
void SetNetworkMode(const NetworkMode &value)
TaskDefinition & WithCpu(const char *value)
void SetCompatibilities(const Aws::Vector< Compatibility > &value)
const Aws::Vector< InferenceAccelerator > & GetInferenceAccelerators() const
bool ContainerDefinitionsHasBeenSet() const
TaskDefinition & AddInferenceAccelerators(const InferenceAccelerator &value)
bool RegisteredByHasBeenSet() const
TaskDefinition & WithStatus(const TaskDefinitionStatus &value)
bool StatusHasBeenSet() const
void SetTaskRoleArn(Aws::String &&value)
TaskDefinition & WithRegisteredAt(const Aws::Utils::DateTime &value)
TaskDefinition & WithEphemeralStorage(EphemeralStorage &&value)
bool DeregisteredAtHasBeenSet() const
bool IpcModeHasBeenSet() const
void SetMemory(const char *value)
void SetRequiresCompatibilities(const Aws::Vector< Compatibility > &value)
TaskDefinition & WithCompatibilities(Aws::Vector< Compatibility > &&value)
TaskDefinition & WithRequiresCompatibilities(Aws::Vector< Compatibility > &&value)
const Aws::Vector< Compatibility > & GetRequiresCompatibilities() const
TaskDefinition & AddRequiresAttributes(Attribute &&value)
const Aws::Vector< Attribute > & GetRequiresAttributes() const
TaskDefinition & AddInferenceAccelerators(InferenceAccelerator &&value)
bool ProxyConfigurationHasBeenSet() const
bool TaskDefinitionArnHasBeenSet() const
TaskDefinition & WithTaskDefinitionArn(Aws::String &&value)
void SetPlacementConstraints(Aws::Vector< TaskDefinitionPlacementConstraint > &&value)
bool ExecutionRoleArnHasBeenSet() const
TaskDefinition & WithFamily(Aws::String &&value)
TaskDefinition & WithRuntimePlatform(RuntimePlatform &&value)
const Aws::String & GetExecutionRoleArn() const
TaskDefinition & WithMemory(const Aws::String &value)
const EphemeralStorage & GetEphemeralStorage() const
void SetFamily(Aws::String &&value)
void SetRegisteredBy(const Aws::String &value)
TaskDefinition & WithRequiresAttributes(Aws::Vector< Attribute > &&value)
void SetExecutionRoleArn(const Aws::String &value)
TaskDefinition & WithRegisteredBy(Aws::String &&value)
const Aws::Vector< TaskDefinitionPlacementConstraint > & GetPlacementConstraints() const
TaskDefinition & WithVolumes(Aws::Vector< Volume > &&value)
bool CompatibilitiesHasBeenSet() const
TaskDefinition & WithDeregisteredAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetDeregisteredAt() const
TaskDefinition & WithRevision(int value)
TaskDefinition & WithRequiresCompatibilities(const Aws::Vector< Compatibility > &value)
TaskDefinition & AddCompatibilities(const Compatibility &value)
void SetFamily(const Aws::String &value)
bool EphemeralStorageHasBeenSet() const
TaskDefinition & WithPlacementConstraints(const Aws::Vector< TaskDefinitionPlacementConstraint > &value)
const Aws::String & GetFamily() const
TaskDefinition & AddVolumes(Volume &&value)
TaskDefinition & AddRequiresCompatibilities(const Compatibility &value)
TaskDefinition & WithRegisteredBy(const Aws::String &value)
void SetPidMode(PidMode &&value)
TaskDefinition & WithExecutionRoleArn(const Aws::String &value)
bool CpuHasBeenSet() const
TaskDefinition & WithIpcMode(const IpcMode &value)
void SetTaskRoleArn(const Aws::String &value)
TaskDefinition & WithStatus(TaskDefinitionStatus &&value)
bool PlacementConstraintsHasBeenSet() const
TaskDefinition & WithProxyConfiguration(ProxyConfiguration &&value)
TaskDefinition & AddCompatibilities(Compatibility &&value)
TaskDefinition & WithContainerDefinitions(Aws::Vector< ContainerDefinition > &&value)
void SetEphemeralStorage(const EphemeralStorage &value)
TaskDefinition & AddContainerDefinitions(const ContainerDefinition &value)
TaskDefinition & WithTaskDefinitionArn(const Aws::String &value)
void SetProxyConfiguration(ProxyConfiguration &&value)
void SetRequiresAttributes(Aws::Vector< Attribute > &&value)
bool RegisteredAtHasBeenSet() const
const PidMode & GetPidMode() const
void SetDeregisteredAt(Aws::Utils::DateTime &&value)
TaskDefinition & WithRuntimePlatform(const RuntimePlatform &value)
void SetCpu(const char *value)
void SetPidMode(const PidMode &value)
void SetInferenceAccelerators(Aws::Vector< InferenceAccelerator > &&value)
void SetNetworkMode(NetworkMode &&value)
TaskDefinition & WithIpcMode(IpcMode &&value)
const Aws::Utils::DateTime & GetRegisteredAt() const
bool MemoryHasBeenSet() const
bool RequiresAttributesHasBeenSet() const
void SetStatus(const TaskDefinitionStatus &value)
TaskDefinition & WithPlacementConstraints(Aws::Vector< TaskDefinitionPlacementConstraint > &&value)
TaskDefinition & AddRequiresCompatibilities(Compatibility &&value)
TaskDefinition & WithCompatibilities(const Aws::Vector< Compatibility > &value)
bool RuntimePlatformHasBeenSet() const
const Aws::Vector< ContainerDefinition > & GetContainerDefinitions() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
TaskDefinition & WithRequiresAttributes(const Aws::Vector< Attribute > &value)
TaskDefinition & WithExecutionRoleArn(Aws::String &&value)
TaskDefinition & WithDeregisteredAt(Aws::Utils::DateTime &&value)
void SetCpu(const Aws::String &value)
void SetContainerDefinitions(Aws::Vector< ContainerDefinition > &&value)
TaskDefinition & WithInferenceAccelerators(const Aws::Vector< InferenceAccelerator > &value)
bool InferenceAcceleratorsHasBeenSet() const
const TaskDefinitionStatus & GetStatus() const
TaskDefinition & WithRegisteredBy(const char *value)
bool FamilyHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue