AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerDefinition.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecs/model/RepositoryCredentials.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecs/model/ContainerRestartPolicy.h>
12#include <aws/ecs/model/LinuxParameters.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/ecs/model/LogConfiguration.h>
15#include <aws/ecs/model/HealthCheck.h>
16#include <aws/ecs/model/FirelensConfiguration.h>
17#include <aws/ecs/model/PortMapping.h>
18#include <aws/ecs/model/KeyValuePair.h>
19#include <aws/ecs/model/EnvironmentFile.h>
20#include <aws/ecs/model/MountPoint.h>
21#include <aws/ecs/model/VolumeFrom.h>
22#include <aws/ecs/model/Secret.h>
23#include <aws/ecs/model/ContainerDependency.h>
24#include <aws/ecs/model/HostEntry.h>
25#include <aws/ecs/model/Ulimit.h>
26#include <aws/ecs/model/SystemControl.h>
27#include <aws/ecs/model/ResourceRequirement.h>
28#include <utility>
29
30namespace Aws
31{
32namespace Utils
33{
34namespace Json
35{
36 class JsonValue;
37 class JsonView;
38} // namespace Json
39} // namespace Utils
40namespace ECS
41{
42namespace Model
43{
44
52 {
53 public:
54 AWS_ECS_API ContainerDefinition();
58
59
61
69 inline const Aws::String& GetName() const{ return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
72 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
73 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 inline ContainerDefinition& WithName(const Aws::String& value) { SetName(value); return *this;}
75 inline ContainerDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 inline ContainerDefinition& WithName(const char* value) { SetName(value); return *this;}
78
80
106 inline const Aws::String& GetImage() const{ return m_image; }
107 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
108 inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; }
109 inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
110 inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); }
111 inline ContainerDefinition& WithImage(const Aws::String& value) { SetImage(value); return *this;}
112 inline ContainerDefinition& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;}
113 inline ContainerDefinition& WithImage(const char* value) { SetImage(value); return *this;}
115
117
120 inline const RepositoryCredentials& GetRepositoryCredentials() const{ return m_repositoryCredentials; }
121 inline bool RepositoryCredentialsHasBeenSet() const { return m_repositoryCredentialsHasBeenSet; }
122 inline void SetRepositoryCredentials(const RepositoryCredentials& value) { m_repositoryCredentialsHasBeenSet = true; m_repositoryCredentials = value; }
123 inline void SetRepositoryCredentials(RepositoryCredentials&& value) { m_repositoryCredentialsHasBeenSet = true; m_repositoryCredentials = std::move(value); }
127
129
169 inline int GetCpu() const{ return m_cpu; }
170 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
171 inline void SetCpu(int value) { m_cpuHasBeenSet = true; m_cpu = value; }
172 inline ContainerDefinition& WithCpu(int value) { SetCpu(value); return *this;}
174
176
196 inline int GetMemory() const{ return m_memory; }
197 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
198 inline void SetMemory(int value) { m_memoryHasBeenSet = true; m_memory = value; }
199 inline ContainerDefinition& WithMemory(int value) { SetMemory(value); return *this;}
201
203
230 inline int GetMemoryReservation() const{ return m_memoryReservation; }
231 inline bool MemoryReservationHasBeenSet() const { return m_memoryReservationHasBeenSet; }
232 inline void SetMemoryReservation(int value) { m_memoryReservationHasBeenSet = true; m_memoryReservation = value; }
233 inline ContainerDefinition& WithMemoryReservation(int value) { SetMemoryReservation(value); return *this;}
235
237
251 inline const Aws::Vector<Aws::String>& GetLinks() const{ return m_links; }
252 inline bool LinksHasBeenSet() const { return m_linksHasBeenSet; }
253 inline void SetLinks(const Aws::Vector<Aws::String>& value) { m_linksHasBeenSet = true; m_links = value; }
254 inline void SetLinks(Aws::Vector<Aws::String>&& value) { m_linksHasBeenSet = true; m_links = std::move(value); }
255 inline ContainerDefinition& WithLinks(const Aws::Vector<Aws::String>& value) { SetLinks(value); return *this;}
256 inline ContainerDefinition& WithLinks(Aws::Vector<Aws::String>&& value) { SetLinks(std::move(value)); return *this;}
257 inline ContainerDefinition& AddLinks(const Aws::String& value) { m_linksHasBeenSet = true; m_links.push_back(value); return *this; }
258 inline ContainerDefinition& AddLinks(Aws::String&& value) { m_linksHasBeenSet = true; m_links.push_back(std::move(value)); return *this; }
259 inline ContainerDefinition& AddLinks(const char* value) { m_linksHasBeenSet = true; m_links.push_back(value); return *this; }
261
263
285 inline const Aws::Vector<PortMapping>& GetPortMappings() const{ return m_portMappings; }
286 inline bool PortMappingsHasBeenSet() const { return m_portMappingsHasBeenSet; }
287 inline void SetPortMappings(const Aws::Vector<PortMapping>& value) { m_portMappingsHasBeenSet = true; m_portMappings = value; }
288 inline void SetPortMappings(Aws::Vector<PortMapping>&& value) { m_portMappingsHasBeenSet = true; m_portMappings = std::move(value); }
290 inline ContainerDefinition& WithPortMappings(Aws::Vector<PortMapping>&& value) { SetPortMappings(std::move(value)); return *this;}
291 inline ContainerDefinition& AddPortMappings(const PortMapping& value) { m_portMappingsHasBeenSet = true; m_portMappings.push_back(value); return *this; }
292 inline ContainerDefinition& AddPortMappings(PortMapping&& value) { m_portMappingsHasBeenSet = true; m_portMappings.push_back(std::move(value)); return *this; }
294
296
311 inline bool GetEssential() const{ return m_essential; }
312 inline bool EssentialHasBeenSet() const { return m_essentialHasBeenSet; }
313 inline void SetEssential(bool value) { m_essentialHasBeenSet = true; m_essential = value; }
314 inline ContainerDefinition& WithEssential(bool value) { SetEssential(value); return *this;}
316
318
326 inline const ContainerRestartPolicy& GetRestartPolicy() const{ return m_restartPolicy; }
327 inline bool RestartPolicyHasBeenSet() const { return m_restartPolicyHasBeenSet; }
328 inline void SetRestartPolicy(const ContainerRestartPolicy& value) { m_restartPolicyHasBeenSet = true; m_restartPolicy = value; }
329 inline void SetRestartPolicy(ContainerRestartPolicy&& value) { m_restartPolicyHasBeenSet = true; m_restartPolicy = std::move(value); }
331 inline ContainerDefinition& WithRestartPolicy(ContainerRestartPolicy&& value) { SetRestartPolicy(std::move(value)); return *this;}
333
335
344 inline const Aws::Vector<Aws::String>& GetEntryPoint() const{ return m_entryPoint; }
345 inline bool EntryPointHasBeenSet() const { return m_entryPointHasBeenSet; }
346 inline void SetEntryPoint(const Aws::Vector<Aws::String>& value) { m_entryPointHasBeenSet = true; m_entryPoint = value; }
347 inline void SetEntryPoint(Aws::Vector<Aws::String>&& value) { m_entryPointHasBeenSet = true; m_entryPoint = std::move(value); }
348 inline ContainerDefinition& WithEntryPoint(const Aws::Vector<Aws::String>& value) { SetEntryPoint(value); return *this;}
349 inline ContainerDefinition& WithEntryPoint(Aws::Vector<Aws::String>&& value) { SetEntryPoint(std::move(value)); return *this;}
350 inline ContainerDefinition& AddEntryPoint(const Aws::String& value) { m_entryPointHasBeenSet = true; m_entryPoint.push_back(value); return *this; }
351 inline ContainerDefinition& AddEntryPoint(Aws::String&& value) { m_entryPointHasBeenSet = true; m_entryPoint.push_back(std::move(value)); return *this; }
352 inline ContainerDefinition& AddEntryPoint(const char* value) { m_entryPointHasBeenSet = true; m_entryPoint.push_back(value); return *this; }
354
356
362 inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
363 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
364 inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
365 inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
366 inline ContainerDefinition& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
367 inline ContainerDefinition& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
368 inline ContainerDefinition& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
369 inline ContainerDefinition& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
370 inline ContainerDefinition& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
372
374
381 inline const Aws::Vector<KeyValuePair>& GetEnvironment() const{ return m_environment; }
382 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
383 inline void SetEnvironment(const Aws::Vector<KeyValuePair>& value) { m_environmentHasBeenSet = true; m_environment = value; }
384 inline void SetEnvironment(Aws::Vector<KeyValuePair>&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
386 inline ContainerDefinition& WithEnvironment(Aws::Vector<KeyValuePair>&& value) { SetEnvironment(std::move(value)); return *this;}
387 inline ContainerDefinition& AddEnvironment(const KeyValuePair& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; }
388 inline ContainerDefinition& AddEnvironment(KeyValuePair&& value) { m_environmentHasBeenSet = true; m_environment.push_back(std::move(value)); return *this; }
390
392
408 inline const Aws::Vector<EnvironmentFile>& GetEnvironmentFiles() const{ return m_environmentFiles; }
409 inline bool EnvironmentFilesHasBeenSet() const { return m_environmentFilesHasBeenSet; }
410 inline void SetEnvironmentFiles(const Aws::Vector<EnvironmentFile>& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles = value; }
411 inline void SetEnvironmentFiles(Aws::Vector<EnvironmentFile>&& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles = std::move(value); }
414 inline ContainerDefinition& AddEnvironmentFiles(const EnvironmentFile& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles.push_back(value); return *this; }
415 inline ContainerDefinition& AddEnvironmentFiles(EnvironmentFile&& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles.push_back(std::move(value)); return *this; }
417
419
427 inline const Aws::Vector<MountPoint>& GetMountPoints() const{ return m_mountPoints; }
428 inline bool MountPointsHasBeenSet() const { return m_mountPointsHasBeenSet; }
429 inline void SetMountPoints(const Aws::Vector<MountPoint>& value) { m_mountPointsHasBeenSet = true; m_mountPoints = value; }
430 inline void SetMountPoints(Aws::Vector<MountPoint>&& value) { m_mountPointsHasBeenSet = true; m_mountPoints = std::move(value); }
431 inline ContainerDefinition& WithMountPoints(const Aws::Vector<MountPoint>& value) { SetMountPoints(value); return *this;}
432 inline ContainerDefinition& WithMountPoints(Aws::Vector<MountPoint>&& value) { SetMountPoints(std::move(value)); return *this;}
433 inline ContainerDefinition& AddMountPoints(const MountPoint& value) { m_mountPointsHasBeenSet = true; m_mountPoints.push_back(value); return *this; }
434 inline ContainerDefinition& AddMountPoints(MountPoint&& value) { m_mountPointsHasBeenSet = true; m_mountPoints.push_back(std::move(value)); return *this; }
436
438
443 inline const Aws::Vector<VolumeFrom>& GetVolumesFrom() const{ return m_volumesFrom; }
444 inline bool VolumesFromHasBeenSet() const { return m_volumesFromHasBeenSet; }
445 inline void SetVolumesFrom(const Aws::Vector<VolumeFrom>& value) { m_volumesFromHasBeenSet = true; m_volumesFrom = value; }
446 inline void SetVolumesFrom(Aws::Vector<VolumeFrom>&& value) { m_volumesFromHasBeenSet = true; m_volumesFrom = std::move(value); }
447 inline ContainerDefinition& WithVolumesFrom(const Aws::Vector<VolumeFrom>& value) { SetVolumesFrom(value); return *this;}
448 inline ContainerDefinition& WithVolumesFrom(Aws::Vector<VolumeFrom>&& value) { SetVolumesFrom(std::move(value)); return *this;}
449 inline ContainerDefinition& AddVolumesFrom(const VolumeFrom& value) { m_volumesFromHasBeenSet = true; m_volumesFrom.push_back(value); return *this; }
450 inline ContainerDefinition& AddVolumesFrom(VolumeFrom&& value) { m_volumesFromHasBeenSet = true; m_volumesFrom.push_back(std::move(value)); return *this; }
452
454
460 inline const LinuxParameters& GetLinuxParameters() const{ return m_linuxParameters; }
461 inline bool LinuxParametersHasBeenSet() const { return m_linuxParametersHasBeenSet; }
462 inline void SetLinuxParameters(const LinuxParameters& value) { m_linuxParametersHasBeenSet = true; m_linuxParameters = value; }
463 inline void SetLinuxParameters(LinuxParameters&& value) { m_linuxParametersHasBeenSet = true; m_linuxParameters = std::move(value); }
464 inline ContainerDefinition& WithLinuxParameters(const LinuxParameters& value) { SetLinuxParameters(value); return *this;}
465 inline ContainerDefinition& WithLinuxParameters(LinuxParameters&& value) { SetLinuxParameters(std::move(value)); return *this;}
467
469
475 inline const Aws::Vector<Secret>& GetSecrets() const{ return m_secrets; }
476 inline bool SecretsHasBeenSet() const { return m_secretsHasBeenSet; }
477 inline void SetSecrets(const Aws::Vector<Secret>& value) { m_secretsHasBeenSet = true; m_secrets = value; }
478 inline void SetSecrets(Aws::Vector<Secret>&& value) { m_secretsHasBeenSet = true; m_secrets = std::move(value); }
479 inline ContainerDefinition& WithSecrets(const Aws::Vector<Secret>& value) { SetSecrets(value); return *this;}
480 inline ContainerDefinition& WithSecrets(Aws::Vector<Secret>&& value) { SetSecrets(std::move(value)); return *this;}
481 inline ContainerDefinition& AddSecrets(const Secret& value) { m_secretsHasBeenSet = true; m_secrets.push_back(value); return *this; }
482 inline ContainerDefinition& AddSecrets(Secret&& value) { m_secretsHasBeenSet = true; m_secrets.push_back(std::move(value)); return *this; }
484
486
509 inline const Aws::Vector<ContainerDependency>& GetDependsOn() const{ return m_dependsOn; }
510 inline bool DependsOnHasBeenSet() const { return m_dependsOnHasBeenSet; }
511 inline void SetDependsOn(const Aws::Vector<ContainerDependency>& value) { m_dependsOnHasBeenSet = true; m_dependsOn = value; }
512 inline void SetDependsOn(Aws::Vector<ContainerDependency>&& value) { m_dependsOnHasBeenSet = true; m_dependsOn = std::move(value); }
514 inline ContainerDefinition& WithDependsOn(Aws::Vector<ContainerDependency>&& value) { SetDependsOn(std::move(value)); return *this;}
515 inline ContainerDefinition& AddDependsOn(const ContainerDependency& value) { m_dependsOnHasBeenSet = true; m_dependsOn.push_back(value); return *this; }
516 inline ContainerDefinition& AddDependsOn(ContainerDependency&& value) { m_dependsOnHasBeenSet = true; m_dependsOn.push_back(std::move(value)); return *this; }
518
520
550 inline int GetStartTimeout() const{ return m_startTimeout; }
551 inline bool StartTimeoutHasBeenSet() const { return m_startTimeoutHasBeenSet; }
552 inline void SetStartTimeout(int value) { m_startTimeoutHasBeenSet = true; m_startTimeout = value; }
553 inline ContainerDefinition& WithStartTimeout(int value) { SetStartTimeout(value); return *this;}
555
557
586 inline int GetStopTimeout() const{ return m_stopTimeout; }
587 inline bool StopTimeoutHasBeenSet() const { return m_stopTimeoutHasBeenSet; }
588 inline void SetStopTimeout(int value) { m_stopTimeoutHasBeenSet = true; m_stopTimeout = value; }
589 inline ContainerDefinition& WithStopTimeout(int value) { SetStopTimeout(value); return *this;}
591
593
600 inline const Aws::String& GetHostname() const{ return m_hostname; }
601 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
602 inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
603 inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
604 inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
605 inline ContainerDefinition& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
606 inline ContainerDefinition& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;}
607 inline ContainerDefinition& WithHostname(const char* value) { SetHostname(value); return *this;}
609
611
625 inline const Aws::String& GetUser() const{ return m_user; }
626 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
627 inline void SetUser(const Aws::String& value) { m_userHasBeenSet = true; m_user = value; }
628 inline void SetUser(Aws::String&& value) { m_userHasBeenSet = true; m_user = std::move(value); }
629 inline void SetUser(const char* value) { m_userHasBeenSet = true; m_user.assign(value); }
630 inline ContainerDefinition& WithUser(const Aws::String& value) { SetUser(value); return *this;}
631 inline ContainerDefinition& WithUser(Aws::String&& value) { SetUser(std::move(value)); return *this;}
632 inline ContainerDefinition& WithUser(const char* value) { SetUser(value); return *this;}
634
636
641 inline const Aws::String& GetWorkingDirectory() const{ return m_workingDirectory; }
642 inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
643 inline void SetWorkingDirectory(const Aws::String& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = value; }
644 inline void SetWorkingDirectory(Aws::String&& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = std::move(value); }
645 inline void SetWorkingDirectory(const char* value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory.assign(value); }
646 inline ContainerDefinition& WithWorkingDirectory(const Aws::String& value) { SetWorkingDirectory(value); return *this;}
647 inline ContainerDefinition& WithWorkingDirectory(Aws::String&& value) { SetWorkingDirectory(std::move(value)); return *this;}
648 inline ContainerDefinition& WithWorkingDirectory(const char* value) { SetWorkingDirectory(value); return *this;}
650
652
658 inline bool GetDisableNetworking() const{ return m_disableNetworking; }
659 inline bool DisableNetworkingHasBeenSet() const { return m_disableNetworkingHasBeenSet; }
660 inline void SetDisableNetworking(bool value) { m_disableNetworkingHasBeenSet = true; m_disableNetworking = value; }
661 inline ContainerDefinition& WithDisableNetworking(bool value) { SetDisableNetworking(value); return *this;}
663
665
673 inline bool GetPrivileged() const{ return m_privileged; }
674 inline bool PrivilegedHasBeenSet() const { return m_privilegedHasBeenSet; }
675 inline void SetPrivileged(bool value) { m_privilegedHasBeenSet = true; m_privileged = value; }
676 inline ContainerDefinition& WithPrivileged(bool value) { SetPrivileged(value); return *this;}
678
680
687 inline bool GetReadonlyRootFilesystem() const{ return m_readonlyRootFilesystem; }
688 inline bool ReadonlyRootFilesystemHasBeenSet() const { return m_readonlyRootFilesystemHasBeenSet; }
689 inline void SetReadonlyRootFilesystem(bool value) { m_readonlyRootFilesystemHasBeenSet = true; m_readonlyRootFilesystem = value; }
692
694
700 inline const Aws::Vector<Aws::String>& GetDnsServers() const{ return m_dnsServers; }
701 inline bool DnsServersHasBeenSet() const { return m_dnsServersHasBeenSet; }
702 inline void SetDnsServers(const Aws::Vector<Aws::String>& value) { m_dnsServersHasBeenSet = true; m_dnsServers = value; }
703 inline void SetDnsServers(Aws::Vector<Aws::String>&& value) { m_dnsServersHasBeenSet = true; m_dnsServers = std::move(value); }
704 inline ContainerDefinition& WithDnsServers(const Aws::Vector<Aws::String>& value) { SetDnsServers(value); return *this;}
705 inline ContainerDefinition& WithDnsServers(Aws::Vector<Aws::String>&& value) { SetDnsServers(std::move(value)); return *this;}
706 inline ContainerDefinition& AddDnsServers(const Aws::String& value) { m_dnsServersHasBeenSet = true; m_dnsServers.push_back(value); return *this; }
707 inline ContainerDefinition& AddDnsServers(Aws::String&& value) { m_dnsServersHasBeenSet = true; m_dnsServers.push_back(std::move(value)); return *this; }
708 inline ContainerDefinition& AddDnsServers(const char* value) { m_dnsServersHasBeenSet = true; m_dnsServers.push_back(value); return *this; }
710
712
718 inline const Aws::Vector<Aws::String>& GetDnsSearchDomains() const{ return m_dnsSearchDomains; }
719 inline bool DnsSearchDomainsHasBeenSet() const { return m_dnsSearchDomainsHasBeenSet; }
720 inline void SetDnsSearchDomains(const Aws::Vector<Aws::String>& value) { m_dnsSearchDomainsHasBeenSet = true; m_dnsSearchDomains = value; }
721 inline void SetDnsSearchDomains(Aws::Vector<Aws::String>&& value) { m_dnsSearchDomainsHasBeenSet = true; m_dnsSearchDomains = std::move(value); }
724 inline ContainerDefinition& AddDnsSearchDomains(const Aws::String& value) { m_dnsSearchDomainsHasBeenSet = true; m_dnsSearchDomains.push_back(value); return *this; }
725 inline ContainerDefinition& AddDnsSearchDomains(Aws::String&& value) { m_dnsSearchDomainsHasBeenSet = true; m_dnsSearchDomains.push_back(std::move(value)); return *this; }
726 inline ContainerDefinition& AddDnsSearchDomains(const char* value) { m_dnsSearchDomainsHasBeenSet = true; m_dnsSearchDomains.push_back(value); return *this; }
728
730
738 inline const Aws::Vector<HostEntry>& GetExtraHosts() const{ return m_extraHosts; }
739 inline bool ExtraHostsHasBeenSet() const { return m_extraHostsHasBeenSet; }
740 inline void SetExtraHosts(const Aws::Vector<HostEntry>& value) { m_extraHostsHasBeenSet = true; m_extraHosts = value; }
741 inline void SetExtraHosts(Aws::Vector<HostEntry>&& value) { m_extraHostsHasBeenSet = true; m_extraHosts = std::move(value); }
742 inline ContainerDefinition& WithExtraHosts(const Aws::Vector<HostEntry>& value) { SetExtraHosts(value); return *this;}
743 inline ContainerDefinition& WithExtraHosts(Aws::Vector<HostEntry>&& value) { SetExtraHosts(std::move(value)); return *this;}
744 inline ContainerDefinition& AddExtraHosts(const HostEntry& value) { m_extraHostsHasBeenSet = true; m_extraHosts.push_back(value); return *this; }
745 inline ContainerDefinition& AddExtraHosts(HostEntry&& value) { m_extraHostsHasBeenSet = true; m_extraHosts.push_back(std::move(value)); return *this; }
747
749
773 inline const Aws::Vector<Aws::String>& GetDockerSecurityOptions() const{ return m_dockerSecurityOptions; }
774 inline bool DockerSecurityOptionsHasBeenSet() const { return m_dockerSecurityOptionsHasBeenSet; }
775 inline void SetDockerSecurityOptions(const Aws::Vector<Aws::String>& value) { m_dockerSecurityOptionsHasBeenSet = true; m_dockerSecurityOptions = value; }
776 inline void SetDockerSecurityOptions(Aws::Vector<Aws::String>&& value) { m_dockerSecurityOptionsHasBeenSet = true; m_dockerSecurityOptions = std::move(value); }
779 inline ContainerDefinition& AddDockerSecurityOptions(const Aws::String& value) { m_dockerSecurityOptionsHasBeenSet = true; m_dockerSecurityOptions.push_back(value); return *this; }
780 inline ContainerDefinition& AddDockerSecurityOptions(Aws::String&& value) { m_dockerSecurityOptionsHasBeenSet = true; m_dockerSecurityOptions.push_back(std::move(value)); return *this; }
781 inline ContainerDefinition& AddDockerSecurityOptions(const char* value) { m_dockerSecurityOptionsHasBeenSet = true; m_dockerSecurityOptions.push_back(value); return *this; }
783
785
791 inline bool GetInteractive() const{ return m_interactive; }
792 inline bool InteractiveHasBeenSet() const { return m_interactiveHasBeenSet; }
793 inline void SetInteractive(bool value) { m_interactiveHasBeenSet = true; m_interactive = value; }
794 inline ContainerDefinition& WithInteractive(bool value) { SetInteractive(value); return *this;}
796
798
803 inline bool GetPseudoTerminal() const{ return m_pseudoTerminal; }
804 inline bool PseudoTerminalHasBeenSet() const { return m_pseudoTerminalHasBeenSet; }
805 inline void SetPseudoTerminal(bool value) { m_pseudoTerminalHasBeenSet = true; m_pseudoTerminal = value; }
806 inline ContainerDefinition& WithPseudoTerminal(bool value) { SetPseudoTerminal(value); return *this;}
808
810
819 inline const Aws::Map<Aws::String, Aws::String>& GetDockerLabels() const{ return m_dockerLabels; }
820 inline bool DockerLabelsHasBeenSet() const { return m_dockerLabelsHasBeenSet; }
821 inline void SetDockerLabels(const Aws::Map<Aws::String, Aws::String>& value) { m_dockerLabelsHasBeenSet = true; m_dockerLabels = value; }
822 inline void SetDockerLabels(Aws::Map<Aws::String, Aws::String>&& value) { m_dockerLabelsHasBeenSet = true; m_dockerLabels = std::move(value); }
825 inline ContainerDefinition& AddDockerLabels(const Aws::String& key, const Aws::String& value) { m_dockerLabelsHasBeenSet = true; m_dockerLabels.emplace(key, value); return *this; }
826 inline ContainerDefinition& AddDockerLabels(Aws::String&& key, const Aws::String& value) { m_dockerLabelsHasBeenSet = true; m_dockerLabels.emplace(std::move(key), value); return *this; }
827 inline ContainerDefinition& AddDockerLabels(const Aws::String& key, Aws::String&& value) { m_dockerLabelsHasBeenSet = true; m_dockerLabels.emplace(key, std::move(value)); return *this; }
828 inline ContainerDefinition& AddDockerLabels(Aws::String&& key, Aws::String&& value) { m_dockerLabelsHasBeenSet = true; m_dockerLabels.emplace(std::move(key), std::move(value)); return *this; }
829 inline ContainerDefinition& AddDockerLabels(const char* key, Aws::String&& value) { m_dockerLabelsHasBeenSet = true; m_dockerLabels.emplace(key, std::move(value)); return *this; }
830 inline ContainerDefinition& AddDockerLabels(Aws::String&& key, const char* value) { m_dockerLabelsHasBeenSet = true; m_dockerLabels.emplace(std::move(key), value); return *this; }
831 inline ContainerDefinition& AddDockerLabels(const char* key, const char* value) { m_dockerLabelsHasBeenSet = true; m_dockerLabels.emplace(key, value); return *this; }
833
835
854 inline const Aws::Vector<Ulimit>& GetUlimits() const{ return m_ulimits; }
855 inline bool UlimitsHasBeenSet() const { return m_ulimitsHasBeenSet; }
856 inline void SetUlimits(const Aws::Vector<Ulimit>& value) { m_ulimitsHasBeenSet = true; m_ulimits = value; }
857 inline void SetUlimits(Aws::Vector<Ulimit>&& value) { m_ulimitsHasBeenSet = true; m_ulimits = std::move(value); }
858 inline ContainerDefinition& WithUlimits(const Aws::Vector<Ulimit>& value) { SetUlimits(value); return *this;}
859 inline ContainerDefinition& WithUlimits(Aws::Vector<Ulimit>&& value) { SetUlimits(std::move(value)); return *this;}
860 inline ContainerDefinition& AddUlimits(const Ulimit& value) { m_ulimitsHasBeenSet = true; m_ulimits.push_back(value); return *this; }
861 inline ContainerDefinition& AddUlimits(Ulimit&& value) { m_ulimitsHasBeenSet = true; m_ulimits.push_back(std::move(value)); return *this; }
863
865
891 inline const LogConfiguration& GetLogConfiguration() const{ return m_logConfiguration; }
892 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
893 inline void SetLogConfiguration(const LogConfiguration& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = value; }
894 inline void SetLogConfiguration(LogConfiguration&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::move(value); }
896 inline ContainerDefinition& WithLogConfiguration(LogConfiguration&& value) { SetLogConfiguration(std::move(value)); return *this;}
898
900
906 inline const HealthCheck& GetHealthCheck() const{ return m_healthCheck; }
907 inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
908 inline void SetHealthCheck(const HealthCheck& value) { m_healthCheckHasBeenSet = true; m_healthCheck = value; }
909 inline void SetHealthCheck(HealthCheck&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::move(value); }
910 inline ContainerDefinition& WithHealthCheck(const HealthCheck& value) { SetHealthCheck(value); return *this;}
911 inline ContainerDefinition& WithHealthCheck(HealthCheck&& value) { SetHealthCheck(std::move(value)); return *this;}
913
915
922 inline const Aws::Vector<SystemControl>& GetSystemControls() const{ return m_systemControls; }
923 inline bool SystemControlsHasBeenSet() const { return m_systemControlsHasBeenSet; }
924 inline void SetSystemControls(const Aws::Vector<SystemControl>& value) { m_systemControlsHasBeenSet = true; m_systemControls = value; }
925 inline void SetSystemControls(Aws::Vector<SystemControl>&& value) { m_systemControlsHasBeenSet = true; m_systemControls = std::move(value); }
927 inline ContainerDefinition& WithSystemControls(Aws::Vector<SystemControl>&& value) { SetSystemControls(std::move(value)); return *this;}
928 inline ContainerDefinition& AddSystemControls(const SystemControl& value) { m_systemControlsHasBeenSet = true; m_systemControls.push_back(value); return *this; }
929 inline ContainerDefinition& AddSystemControls(SystemControl&& value) { m_systemControlsHasBeenSet = true; m_systemControls.push_back(std::move(value)); return *this; }
931
933
937 inline const Aws::Vector<ResourceRequirement>& GetResourceRequirements() const{ return m_resourceRequirements; }
938 inline bool ResourceRequirementsHasBeenSet() const { return m_resourceRequirementsHasBeenSet; }
939 inline void SetResourceRequirements(const Aws::Vector<ResourceRequirement>& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = value; }
940 inline void SetResourceRequirements(Aws::Vector<ResourceRequirement>&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = std::move(value); }
943 inline ContainerDefinition& AddResourceRequirements(const ResourceRequirement& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(value); return *this; }
944 inline ContainerDefinition& AddResourceRequirements(ResourceRequirement&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(std::move(value)); return *this; }
946
948
955 inline const FirelensConfiguration& GetFirelensConfiguration() const{ return m_firelensConfiguration; }
956 inline bool FirelensConfigurationHasBeenSet() const { return m_firelensConfigurationHasBeenSet; }
957 inline void SetFirelensConfiguration(const FirelensConfiguration& value) { m_firelensConfigurationHasBeenSet = true; m_firelensConfiguration = value; }
958 inline void SetFirelensConfiguration(FirelensConfiguration&& value) { m_firelensConfigurationHasBeenSet = true; m_firelensConfiguration = std::move(value); }
962
964
993 inline const Aws::Vector<Aws::String>& GetCredentialSpecs() const{ return m_credentialSpecs; }
994 inline bool CredentialSpecsHasBeenSet() const { return m_credentialSpecsHasBeenSet; }
995 inline void SetCredentialSpecs(const Aws::Vector<Aws::String>& value) { m_credentialSpecsHasBeenSet = true; m_credentialSpecs = value; }
996 inline void SetCredentialSpecs(Aws::Vector<Aws::String>&& value) { m_credentialSpecsHasBeenSet = true; m_credentialSpecs = std::move(value); }
998 inline ContainerDefinition& WithCredentialSpecs(Aws::Vector<Aws::String>&& value) { SetCredentialSpecs(std::move(value)); return *this;}
999 inline ContainerDefinition& AddCredentialSpecs(const Aws::String& value) { m_credentialSpecsHasBeenSet = true; m_credentialSpecs.push_back(value); return *this; }
1000 inline ContainerDefinition& AddCredentialSpecs(Aws::String&& value) { m_credentialSpecsHasBeenSet = true; m_credentialSpecs.push_back(std::move(value)); return *this; }
1001 inline ContainerDefinition& AddCredentialSpecs(const char* value) { m_credentialSpecsHasBeenSet = true; m_credentialSpecs.push_back(value); return *this; }
1003 private:
1004
1005 Aws::String m_name;
1006 bool m_nameHasBeenSet = false;
1007
1008 Aws::String m_image;
1009 bool m_imageHasBeenSet = false;
1010
1011 RepositoryCredentials m_repositoryCredentials;
1012 bool m_repositoryCredentialsHasBeenSet = false;
1013
1014 int m_cpu;
1015 bool m_cpuHasBeenSet = false;
1016
1017 int m_memory;
1018 bool m_memoryHasBeenSet = false;
1019
1020 int m_memoryReservation;
1021 bool m_memoryReservationHasBeenSet = false;
1022
1024 bool m_linksHasBeenSet = false;
1025
1026 Aws::Vector<PortMapping> m_portMappings;
1027 bool m_portMappingsHasBeenSet = false;
1028
1029 bool m_essential;
1030 bool m_essentialHasBeenSet = false;
1031
1032 ContainerRestartPolicy m_restartPolicy;
1033 bool m_restartPolicyHasBeenSet = false;
1034
1035 Aws::Vector<Aws::String> m_entryPoint;
1036 bool m_entryPointHasBeenSet = false;
1037
1038 Aws::Vector<Aws::String> m_command;
1039 bool m_commandHasBeenSet = false;
1040
1041 Aws::Vector<KeyValuePair> m_environment;
1042 bool m_environmentHasBeenSet = false;
1043
1044 Aws::Vector<EnvironmentFile> m_environmentFiles;
1045 bool m_environmentFilesHasBeenSet = false;
1046
1047 Aws::Vector<MountPoint> m_mountPoints;
1048 bool m_mountPointsHasBeenSet = false;
1049
1050 Aws::Vector<VolumeFrom> m_volumesFrom;
1051 bool m_volumesFromHasBeenSet = false;
1052
1053 LinuxParameters m_linuxParameters;
1054 bool m_linuxParametersHasBeenSet = false;
1055
1056 Aws::Vector<Secret> m_secrets;
1057 bool m_secretsHasBeenSet = false;
1058
1060 bool m_dependsOnHasBeenSet = false;
1061
1062 int m_startTimeout;
1063 bool m_startTimeoutHasBeenSet = false;
1064
1065 int m_stopTimeout;
1066 bool m_stopTimeoutHasBeenSet = false;
1067
1068 Aws::String m_hostname;
1069 bool m_hostnameHasBeenSet = false;
1070
1071 Aws::String m_user;
1072 bool m_userHasBeenSet = false;
1073
1074 Aws::String m_workingDirectory;
1075 bool m_workingDirectoryHasBeenSet = false;
1076
1077 bool m_disableNetworking;
1078 bool m_disableNetworkingHasBeenSet = false;
1079
1080 bool m_privileged;
1081 bool m_privilegedHasBeenSet = false;
1082
1083 bool m_readonlyRootFilesystem;
1084 bool m_readonlyRootFilesystemHasBeenSet = false;
1085
1086 Aws::Vector<Aws::String> m_dnsServers;
1087 bool m_dnsServersHasBeenSet = false;
1088
1089 Aws::Vector<Aws::String> m_dnsSearchDomains;
1090 bool m_dnsSearchDomainsHasBeenSet = false;
1091
1092 Aws::Vector<HostEntry> m_extraHosts;
1093 bool m_extraHostsHasBeenSet = false;
1094
1095 Aws::Vector<Aws::String> m_dockerSecurityOptions;
1096 bool m_dockerSecurityOptionsHasBeenSet = false;
1097
1098 bool m_interactive;
1099 bool m_interactiveHasBeenSet = false;
1100
1101 bool m_pseudoTerminal;
1102 bool m_pseudoTerminalHasBeenSet = false;
1103
1105 bool m_dockerLabelsHasBeenSet = false;
1106
1107 Aws::Vector<Ulimit> m_ulimits;
1108 bool m_ulimitsHasBeenSet = false;
1109
1110 LogConfiguration m_logConfiguration;
1111 bool m_logConfigurationHasBeenSet = false;
1112
1113 HealthCheck m_healthCheck;
1114 bool m_healthCheckHasBeenSet = false;
1115
1116 Aws::Vector<SystemControl> m_systemControls;
1117 bool m_systemControlsHasBeenSet = false;
1118
1119 Aws::Vector<ResourceRequirement> m_resourceRequirements;
1120 bool m_resourceRequirementsHasBeenSet = false;
1121
1122 FirelensConfiguration m_firelensConfiguration;
1123 bool m_firelensConfigurationHasBeenSet = false;
1124
1125 Aws::Vector<Aws::String> m_credentialSpecs;
1126 bool m_credentialSpecsHasBeenSet = false;
1127 };
1128
1129} // namespace Model
1130} // namespace ECS
1131} // namespace Aws
ContainerDefinition & AddDockerSecurityOptions(const Aws::String &value)
ContainerDefinition & WithStopTimeout(int value)
void SetMountPoints(const Aws::Vector< MountPoint > &value)
ContainerDefinition & WithLinuxParameters(LinuxParameters &&value)
ContainerDefinition & WithName(const Aws::String &value)
ContainerDefinition & WithPseudoTerminal(bool value)
ContainerDefinition & WithEnvironmentFiles(Aws::Vector< EnvironmentFile > &&value)
ContainerDefinition & WithReadonlyRootFilesystem(bool value)
void SetEnvironmentFiles(const Aws::Vector< EnvironmentFile > &value)
const Aws::Vector< Aws::String > & GetEntryPoint() const
const Aws::Vector< ContainerDependency > & GetDependsOn() const
ContainerDefinition & WithSecrets(Aws::Vector< Secret > &&value)
ContainerDefinition & WithEntryPoint(const Aws::Vector< Aws::String > &value)
ContainerDefinition & AddCommand(const Aws::String &value)
ContainerDefinition & AddPortMappings(const PortMapping &value)
void SetLinks(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetLinks() const
const Aws::Vector< Aws::String > & GetDockerSecurityOptions() const
ContainerDefinition & AddDockerLabels(Aws::String &&key, const char *value)
void SetDependsOn(Aws::Vector< ContainerDependency > &&value)
ContainerDefinition & WithName(Aws::String &&value)
void SetRepositoryCredentials(RepositoryCredentials &&value)
ContainerDefinition & WithMountPoints(const Aws::Vector< MountPoint > &value)
void SetDockerLabels(const Aws::Map< Aws::String, Aws::String > &value)
ContainerDefinition & WithEssential(bool value)
ContainerDefinition & WithDependsOn(const Aws::Vector< ContainerDependency > &value)
void SetLinuxParameters(LinuxParameters &&value)
void SetSystemControls(Aws::Vector< SystemControl > &&value)
void SetDockerSecurityOptions(Aws::Vector< Aws::String > &&value)
void SetDockerLabels(Aws::Map< Aws::String, Aws::String > &&value)
ContainerDefinition & AddCommand(const char *value)
ContainerDefinition & WithEnvironment(const Aws::Vector< KeyValuePair > &value)
ContainerDefinition & WithUlimits(Aws::Vector< Ulimit > &&value)
ContainerDefinition & WithLogConfiguration(const LogConfiguration &value)
ContainerDefinition & AddPortMappings(PortMapping &&value)
ContainerDefinition & WithMemoryReservation(int value)
ContainerDefinition & WithName(const char *value)
void SetDnsServers(Aws::Vector< Aws::String > &&value)
ContainerDefinition & AddResourceRequirements(ResourceRequirement &&value)
ContainerDefinition & WithLinuxParameters(const LinuxParameters &value)
void SetEnvironment(const Aws::Vector< KeyValuePair > &value)
ContainerDefinition & WithFirelensConfiguration(const FirelensConfiguration &value)
const Aws::String & GetWorkingDirectory() const
const Aws::Vector< Aws::String > & GetDnsServers() const
const LinuxParameters & GetLinuxParameters() const
void SetSecrets(const Aws::Vector< Secret > &value)
const LogConfiguration & GetLogConfiguration() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLinuxParameters(const LinuxParameters &value)
ContainerDefinition & AddCredentialSpecs(Aws::String &&value)
ContainerDefinition & AddCredentialSpecs(const Aws::String &value)
ContainerDefinition & WithDisableNetworking(bool value)
ContainerDefinition & AddMountPoints(MountPoint &&value)
void SetCommand(Aws::Vector< Aws::String > &&value)
void SetCredentialSpecs(Aws::Vector< Aws::String > &&value)
void SetLogConfiguration(LogConfiguration &&value)
ContainerDefinition & AddCommand(Aws::String &&value)
ContainerDefinition & AddSecrets(const Secret &value)
ContainerDefinition & WithSystemControls(const Aws::Vector< SystemControl > &value)
void SetFirelensConfiguration(FirelensConfiguration &&value)
ContainerDefinition & WithImage(const Aws::String &value)
void SetHostname(const Aws::String &value)
ContainerDefinition & AddEnvironment(const KeyValuePair &value)
ContainerDefinition & AddEnvironmentFiles(EnvironmentFile &&value)
void SetEntryPoint(Aws::Vector< Aws::String > &&value)
ContainerDefinition & AddSystemControls(SystemControl &&value)
ContainerDefinition & AddUlimits(const Ulimit &value)
const Aws::Vector< VolumeFrom > & GetVolumesFrom() const
const Aws::Vector< Aws::String > & GetCredentialSpecs() const
ContainerDefinition & WithDockerSecurityOptions(const Aws::Vector< Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetDockerLabels() const
ContainerDefinition & WithFirelensConfiguration(FirelensConfiguration &&value)
void SetRepositoryCredentials(const RepositoryCredentials &value)
ContainerDefinition & WithResourceRequirements(Aws::Vector< ResourceRequirement > &&value)
ContainerDefinition & AddMountPoints(const MountPoint &value)
void SetDockerSecurityOptions(const Aws::Vector< Aws::String > &value)
ContainerDefinition & AddDockerLabels(const char *key, const char *value)
ContainerDefinition & AddDockerLabels(Aws::String &&key, const Aws::String &value)
void SetExtraHosts(const Aws::Vector< HostEntry > &value)
ContainerDefinition & AddDockerSecurityOptions(Aws::String &&value)
ContainerDefinition & WithRestartPolicy(const ContainerRestartPolicy &value)
const Aws::Vector< ResourceRequirement > & GetResourceRequirements() const
ContainerDefinition & AddCredentialSpecs(const char *value)
ContainerDefinition & AddDnsServers(const Aws::String &value)
ContainerDefinition & WithCredentialSpecs(Aws::Vector< Aws::String > &&value)
void SetDnsServers(const Aws::Vector< Aws::String > &value)
ContainerDefinition & AddLinks(const char *value)
ContainerDefinition & WithSecrets(const Aws::Vector< Secret > &value)
ContainerDefinition & AddDockerSecurityOptions(const char *value)
void SetPortMappings(const Aws::Vector< PortMapping > &value)
ContainerDefinition & AddDnsServers(Aws::String &&value)
const Aws::Vector< KeyValuePair > & GetEnvironment() const
ContainerDefinition & WithMemory(int value)
void SetFirelensConfiguration(const FirelensConfiguration &value)
ContainerDefinition & WithWorkingDirectory(const char *value)
ContainerDefinition & AddSecrets(Secret &&value)
void SetVolumesFrom(Aws::Vector< VolumeFrom > &&value)
ContainerDefinition & WithLinks(const Aws::Vector< Aws::String > &value)
ContainerDefinition & AddExtraHosts(HostEntry &&value)
void SetLinks(const Aws::Vector< Aws::String > &value)
void SetUlimits(const Aws::Vector< Ulimit > &value)
void SetResourceRequirements(Aws::Vector< ResourceRequirement > &&value)
ContainerDefinition & AddEntryPoint(Aws::String &&value)
const Aws::Vector< PortMapping > & GetPortMappings() const
ContainerDefinition & AddDnsSearchDomains(const Aws::String &value)
ContainerDefinition & WithResourceRequirements(const Aws::Vector< ResourceRequirement > &value)
ContainerDefinition & WithWorkingDirectory(const Aws::String &value)
ContainerDefinition & AddResourceRequirements(const ResourceRequirement &value)
ContainerDefinition & AddDnsServers(const char *value)
ContainerDefinition & WithDnsSearchDomains(Aws::Vector< Aws::String > &&value)
ContainerDefinition & WithHostname(const Aws::String &value)
ContainerDefinition & WithDependsOn(Aws::Vector< ContainerDependency > &&value)
void SetUlimits(Aws::Vector< Ulimit > &&value)
const Aws::Vector< Secret > & GetSecrets() const
const Aws::Vector< Aws::String > & GetDnsSearchDomains() const
ContainerDefinition & WithDockerLabels(Aws::Map< Aws::String, Aws::String > &&value)
void SetName(const Aws::String &value)
ContainerDefinition & AddVolumesFrom(const VolumeFrom &value)
ContainerDefinition & WithHealthCheck(const HealthCheck &value)
ContainerDefinition & AddLinks(Aws::String &&value)
ContainerDefinition & WithRestartPolicy(ContainerRestartPolicy &&value)
void SetExtraHosts(Aws::Vector< HostEntry > &&value)
void SetRestartPolicy(const ContainerRestartPolicy &value)
ContainerDefinition & WithLogConfiguration(LogConfiguration &&value)
ContainerDefinition & WithPortMappings(Aws::Vector< PortMapping > &&value)
void SetWorkingDirectory(const Aws::String &value)
ContainerDefinition & WithCommand(Aws::Vector< Aws::String > &&value)
ContainerDefinition & AddSystemControls(const SystemControl &value)
ContainerDefinition & WithDockerLabels(const Aws::Map< Aws::String, Aws::String > &value)
ContainerDefinition & WithMountPoints(Aws::Vector< MountPoint > &&value)
ContainerDefinition & AddDockerLabels(const Aws::String &key, Aws::String &&value)
ContainerDefinition & WithHealthCheck(HealthCheck &&value)
ContainerDefinition & AddDnsSearchDomains(Aws::String &&value)
ContainerDefinition & WithHostname(const char *value)
ContainerDefinition & WithWorkingDirectory(Aws::String &&value)
const HealthCheck & GetHealthCheck() const
void SetSecrets(Aws::Vector< Secret > &&value)
ContainerDefinition & WithUser(const char *value)
ContainerDefinition & AddDockerLabels(const Aws::String &key, const Aws::String &value)
void SetDependsOn(const Aws::Vector< ContainerDependency > &value)
ContainerDefinition & AddDependsOn(ContainerDependency &&value)
void SetCredentialSpecs(const Aws::Vector< Aws::String > &value)
void SetSystemControls(const Aws::Vector< SystemControl > &value)
ContainerDefinition & WithExtraHosts(Aws::Vector< HostEntry > &&value)
const Aws::Vector< Aws::String > & GetCommand() const
const Aws::Vector< Ulimit > & GetUlimits() const
void SetEntryPoint(const Aws::Vector< Aws::String > &value)
void SetResourceRequirements(const Aws::Vector< ResourceRequirement > &value)
const Aws::Vector< MountPoint > & GetMountPoints() const
ContainerDefinition & WithVolumesFrom(const Aws::Vector< VolumeFrom > &value)
ContainerDefinition & WithInteractive(bool value)
ContainerDefinition & WithDockerSecurityOptions(Aws::Vector< Aws::String > &&value)
void SetWorkingDirectory(Aws::String &&value)
void SetDnsSearchDomains(Aws::Vector< Aws::String > &&value)
void SetRestartPolicy(ContainerRestartPolicy &&value)
ContainerDefinition & WithUser(Aws::String &&value)
ContainerDefinition & WithCpu(int value)
ContainerDefinition & WithUlimits(const Aws::Vector< Ulimit > &value)
ContainerDefinition & WithVolumesFrom(Aws::Vector< VolumeFrom > &&value)
void SetPortMappings(Aws::Vector< PortMapping > &&value)
ContainerDefinition & AddDockerLabels(const char *key, Aws::String &&value)
void SetVolumesFrom(const Aws::Vector< VolumeFrom > &value)
ContainerDefinition & WithPrivileged(bool value)
ContainerDefinition & WithSystemControls(Aws::Vector< SystemControl > &&value)
ContainerDefinition & AddDnsSearchDomains(const char *value)
ContainerDefinition & AddDockerLabels(Aws::String &&key, Aws::String &&value)
AWS_ECS_API ContainerDefinition(Aws::Utils::Json::JsonView jsonValue)
ContainerDefinition & WithCredentialSpecs(const Aws::Vector< Aws::String > &value)
const Aws::Vector< EnvironmentFile > & GetEnvironmentFiles() const
const ContainerRestartPolicy & GetRestartPolicy() const
ContainerDefinition & AddDependsOn(const ContainerDependency &value)
const Aws::Vector< SystemControl > & GetSystemControls() const
ContainerDefinition & WithDnsSearchDomains(const Aws::Vector< Aws::String > &value)
ContainerDefinition & AddEntryPoint(const char *value)
ContainerDefinition & WithImage(Aws::String &&value)
ContainerDefinition & WithDnsServers(const Aws::Vector< Aws::String > &value)
void SetHealthCheck(const HealthCheck &value)
void SetEnvironment(Aws::Vector< KeyValuePair > &&value)
ContainerDefinition & WithUser(const Aws::String &value)
ContainerDefinition & WithDnsServers(Aws::Vector< Aws::String > &&value)
AWS_ECS_API ContainerDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< HostEntry > & GetExtraHosts() const
ContainerDefinition & AddEntryPoint(const Aws::String &value)
void SetLogConfiguration(const LogConfiguration &value)
void SetDnsSearchDomains(const Aws::Vector< Aws::String > &value)
ContainerDefinition & AddEnvironmentFiles(const EnvironmentFile &value)
ContainerDefinition & WithImage(const char *value)
const FirelensConfiguration & GetFirelensConfiguration() const
ContainerDefinition & WithHostname(Aws::String &&value)
const Aws::String & GetName() const
void SetUser(const Aws::String &value)
ContainerDefinition & WithCommand(const Aws::Vector< Aws::String > &value)
ContainerDefinition & WithRepositoryCredentials(RepositoryCredentials &&value)
ContainerDefinition & WithEnvironmentFiles(const Aws::Vector< EnvironmentFile > &value)
void SetEnvironmentFiles(Aws::Vector< EnvironmentFile > &&value)
void SetImage(const Aws::String &value)
ContainerDefinition & AddExtraHosts(const HostEntry &value)
void SetCommand(const Aws::Vector< Aws::String > &value)
ContainerDefinition & WithExtraHosts(const Aws::Vector< HostEntry > &value)
ContainerDefinition & WithPortMappings(const Aws::Vector< PortMapping > &value)
ContainerDefinition & AddEnvironment(KeyValuePair &&value)
ContainerDefinition & AddLinks(const Aws::String &value)
ContainerDefinition & WithStartTimeout(int value)
ContainerDefinition & AddUlimits(Ulimit &&value)
ContainerDefinition & WithRepositoryCredentials(const RepositoryCredentials &value)
ContainerDefinition & WithEntryPoint(Aws::Vector< Aws::String > &&value)
ContainerDefinition & WithLinks(Aws::Vector< Aws::String > &&value)
ContainerDefinition & AddVolumesFrom(VolumeFrom &&value)
void SetMountPoints(Aws::Vector< MountPoint > &&value)
const Aws::String & GetHostname() const
ContainerDefinition & WithEnvironment(Aws::Vector< KeyValuePair > &&value)
const RepositoryCredentials & GetRepositoryCredentials() const
Definition HostEntry.h:36
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue