7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/HealthStatus.h>
11#include <aws/ecs/model/ManagedAgent.h>
12#include <aws/ecs/model/NetworkBinding.h>
13#include <aws/ecs/model/NetworkInterface.h>
14#include <aws/ecs/model/SharingStrategy.h>
46 template <
typename ContainerArnT = Aws::String>
48 m_containerArnHasBeenSet =
true;
49 m_containerArn = std::forward<ContainerArnT>(value);
51 template <
typename ContainerArnT = Aws::String>
64 template <
typename TaskArnT = Aws::String>
66 m_taskArnHasBeenSet =
true;
67 m_taskArn = std::forward<TaskArnT>(value);
69 template <
typename TaskArnT = Aws::String>
82 template <
typename NameT = Aws::String>
84 m_nameHasBeenSet =
true;
85 m_name = std::forward<NameT>(value);
87 template <
typename NameT = Aws::String>
89 SetName(std::forward<NameT>(value));
100 template <
typename ImageT = Aws::String>
102 m_imageHasBeenSet =
true;
103 m_image = std::forward<ImageT>(value);
105 template <
typename ImageT = Aws::String>
107 SetImage(std::forward<ImageT>(value));
118 template <
typename ImageDigestT = Aws::String>
120 m_imageDigestHasBeenSet =
true;
121 m_imageDigest = std::forward<ImageDigestT>(value);
123 template <
typename ImageDigestT = Aws::String>
136 template <
typename RuntimeIdT = Aws::String>
138 m_runtimeIdHasBeenSet =
true;
139 m_runtimeId = std::forward<RuntimeIdT>(value);
141 template <
typename RuntimeIdT = Aws::String>
154 template <
typename LastStatusT = Aws::String>
156 m_lastStatusHasBeenSet =
true;
157 m_lastStatus = std::forward<LastStatusT>(value);
159 template <
typename LastStatusT = Aws::String>
173 m_exitCodeHasBeenSet =
true;
189 template <
typename ReasonT = Aws::String>
191 m_reasonHasBeenSet =
true;
192 m_reason = std::forward<ReasonT>(value);
194 template <
typename ReasonT = Aws::String>
207 template <
typename NetworkBindingsT = Aws::Vector<NetworkBinding>>
209 m_networkBindingsHasBeenSet =
true;
210 m_networkBindings = std::forward<NetworkBindingsT>(value);
212 template <
typename NetworkBindingsT = Aws::Vector<NetworkBinding>>
217 template <
typename NetworkBindingsT = NetworkBinding>
219 m_networkBindingsHasBeenSet =
true;
220 m_networkBindings.emplace_back(std::forward<NetworkBindingsT>(value));
231 template <
typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
233 m_networkInterfacesHasBeenSet =
true;
234 m_networkInterfaces = std::forward<NetworkInterfacesT>(value);
236 template <
typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
241 template <
typename NetworkInterfacesT = NetworkInterface>
243 m_networkInterfacesHasBeenSet =
true;
244 m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value));
258 m_healthStatusHasBeenSet =
true;
259 m_healthStatus = value;
274 template <
typename ManagedAgentsT = Aws::Vector<ManagedAgent>>
276 m_managedAgentsHasBeenSet =
true;
277 m_managedAgents = std::forward<ManagedAgentsT>(value);
279 template <
typename ManagedAgentsT = Aws::Vector<ManagedAgent>>
284 template <
typename ManagedAgentsT = ManagedAgent>
286 m_managedAgentsHasBeenSet =
true;
287 m_managedAgents.emplace_back(std::forward<ManagedAgentsT>(value));
300 template <
typename CpuT = Aws::String>
302 m_cpuHasBeenSet =
true;
303 m_cpu = std::forward<CpuT>(value);
305 template <
typename CpuT = Aws::String>
307 SetCpu(std::forward<CpuT>(value));
318 template <
typename MemoryT = Aws::String>
320 m_memoryHasBeenSet =
true;
321 m_memory = std::forward<MemoryT>(value);
323 template <
typename MemoryT = Aws::String>
336 template <
typename MemoryReservationT = Aws::String>
338 m_memoryReservationHasBeenSet =
true;
339 m_memoryReservation = std::forward<MemoryReservationT>(value);
341 template <
typename MemoryReservationT = Aws::String>
354 template <
typename GpuIdsT = Aws::Vector<Aws::String>>
356 m_gpuIdsHasBeenSet =
true;
357 m_gpuIds = std::forward<GpuIdsT>(value);
359 template <
typename GpuIdsT = Aws::Vector<Aws::String>>
364 template <
typename GpuIdsT = Aws::String>
366 m_gpuIdsHasBeenSet =
true;
367 m_gpuIds.emplace_back(std::forward<GpuIdsT>(value));
378 template <
typename NeuronDeviceIdsT = Aws::Vector<Aws::String>>
380 m_neuronDeviceIdsHasBeenSet =
true;
381 m_neuronDeviceIds = std::forward<NeuronDeviceIdsT>(value);
383 template <
typename NeuronDeviceIdsT = Aws::Vector<Aws::String>>
388 template <
typename NeuronDeviceIdsT = Aws::String>
390 m_neuronDeviceIdsHasBeenSet =
true;
391 m_neuronDeviceIds.emplace_back(std::forward<NeuronDeviceIdsT>(value));
404 template <
typename GpuSharingStrategyT = SharingStrategy>
406 m_gpuSharingStrategyHasBeenSet =
true;
407 m_gpuSharingStrategy = std::forward<GpuSharingStrategyT>(value);
409 template <
typename GpuSharingStrategyT = SharingStrategy>
452 SharingStrategy m_gpuSharingStrategy;
453 bool m_containerArnHasBeenSet =
false;
454 bool m_taskArnHasBeenSet =
false;
455 bool m_nameHasBeenSet =
false;
456 bool m_imageHasBeenSet =
false;
457 bool m_imageDigestHasBeenSet =
false;
458 bool m_runtimeIdHasBeenSet =
false;
459 bool m_lastStatusHasBeenSet =
false;
460 bool m_exitCodeHasBeenSet =
false;
461 bool m_reasonHasBeenSet =
false;
462 bool m_networkBindingsHasBeenSet =
false;
463 bool m_networkInterfacesHasBeenSet =
false;
464 bool m_healthStatusHasBeenSet =
false;
465 bool m_managedAgentsHasBeenSet =
false;
466 bool m_cpuHasBeenSet =
false;
467 bool m_memoryHasBeenSet =
false;
468 bool m_memoryReservationHasBeenSet =
false;
469 bool m_gpuIdsHasBeenSet =
false;
470 bool m_neuronDeviceIdsHasBeenSet =
false;
471 bool m_gpuSharingStrategyHasBeenSet =
false;
void SetHealthStatus(HealthStatus value)
const Aws::String & GetMemoryReservation() const
Container & WithRuntimeId(RuntimeIdT &&value)
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
bool NameHasBeenSet() const
bool TaskArnHasBeenSet() const
void SetNetworkInterfaces(NetworkInterfacesT &&value)
AWS_ECS_API Container(Aws::Utils::Json::JsonView jsonValue)
Container & WithMemoryReservation(MemoryReservationT &&value)
void SetNetworkBindings(NetworkBindingsT &&value)
Container & WithTaskArn(TaskArnT &&value)
Container & WithManagedAgents(ManagedAgentsT &&value)
void SetNeuronDeviceIds(NeuronDeviceIdsT &&value)
void SetExitCode(int value)
const Aws::String & GetReason() const
bool ImageHasBeenSet() const
Container & WithCpu(CpuT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
Container & WithNeuronDeviceIds(NeuronDeviceIdsT &&value)
void SetImage(ImageT &&value)
Container & WithLastStatus(LastStatusT &&value)
Container & WithImage(ImageT &&value)
Container & WithExitCode(int value)
AWS_ECS_API Container & operator=(Aws::Utils::Json::JsonView jsonValue)
bool HealthStatusHasBeenSet() const
void SetMemory(MemoryT &&value)
bool RuntimeIdHasBeenSet() const
const Aws::Vector< ManagedAgent > & GetManagedAgents() const
bool NetworkBindingsHasBeenSet() const
Container & WithName(NameT &&value)
bool CpuHasBeenSet() const
Container & WithContainerArn(ContainerArnT &&value)
void SetRuntimeId(RuntimeIdT &&value)
bool NeuronDeviceIdsHasBeenSet() const
bool NetworkInterfacesHasBeenSet() const
void SetImageDigest(ImageDigestT &&value)
Container & WithGpuSharingStrategy(GpuSharingStrategyT &&value)
void SetReason(ReasonT &&value)
const Aws::Vector< Aws::String > & GetNeuronDeviceIds() const
void SetGpuIds(GpuIdsT &&value)
bool MemoryReservationHasBeenSet() const
const Aws::String & GetImageDigest() const
Container & WithMemory(MemoryT &&value)
AWS_ECS_API Container()=default
void SetName(NameT &&value)
const Aws::String & GetMemory() const
bool LastStatusHasBeenSet() const
const Aws::String & GetImage() const
Container & AddNetworkBindings(NetworkBindingsT &&value)
bool ManagedAgentsHasBeenSet() const
void SetManagedAgents(ManagedAgentsT &&value)
bool GpuIdsHasBeenSet() const
bool ExitCodeHasBeenSet() const
const SharingStrategy & GetGpuSharingStrategy() const
void SetGpuSharingStrategy(GpuSharingStrategyT &&value)
Container & WithHealthStatus(HealthStatus value)
HealthStatus GetHealthStatus() const
bool GpuSharingStrategyHasBeenSet() const
Container & WithNetworkBindings(NetworkBindingsT &&value)
Container & WithNetworkInterfaces(NetworkInterfacesT &&value)
const Aws::String & GetTaskArn() const
const Aws::String & GetCpu() const
const Aws::Vector< NetworkBinding > & GetNetworkBindings() const
bool ReasonHasBeenSet() const
Container & AddManagedAgents(ManagedAgentsT &&value)
Container & AddNeuronDeviceIds(NeuronDeviceIdsT &&value)
const Aws::Vector< Aws::String > & GetGpuIds() const
void SetCpu(CpuT &&value)
const Aws::String & GetLastStatus() const
Container & WithReason(ReasonT &&value)
void SetLastStatus(LastStatusT &&value)
const Aws::String & GetRuntimeId() const
bool ContainerArnHasBeenSet() const
Container & AddGpuIds(GpuIdsT &&value)
void SetTaskArn(TaskArnT &&value)
void SetMemoryReservation(MemoryReservationT &&value)
Container & WithImageDigest(ImageDigestT &&value)
Container & WithGpuIds(GpuIdsT &&value)
const Aws::String & GetContainerArn() const
void SetContainerArn(ContainerArnT &&value)
bool ImageDigestHasBeenSet() const
const Aws::String & GetName() const
bool MemoryHasBeenSet() const
Container & AddNetworkInterfaces(NetworkInterfacesT &&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