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>
73 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
110 inline void SetImage(
const char* value) { m_imageHasBeenSet =
true; m_image.assign(value); }
169 inline int GetCpu()
const{
return m_cpu; }
171 inline void SetCpu(
int value) { m_cpuHasBeenSet =
true; m_cpu = value; }
198 inline void SetMemory(
int value) { m_memoryHasBeenSet =
true; m_memory = value; }
232 inline void SetMemoryReservation(
int value) { m_memoryReservationHasBeenSet =
true; m_memoryReservation = value; }
313 inline void SetEssential(
bool value) { m_essentialHasBeenSet =
true; m_essential = value; }
552 inline void SetStartTimeout(
int value) { m_startTimeoutHasBeenSet =
true; m_startTimeout = value; }
588 inline void SetStopTimeout(
int value) { m_stopTimeoutHasBeenSet =
true; m_stopTimeout = value; }
604 inline void SetHostname(
const char* value) { m_hostnameHasBeenSet =
true; m_hostname.assign(value); }
629 inline void SetUser(
const char* value) { m_userHasBeenSet =
true; m_user.assign(value); }
645 inline void SetWorkingDirectory(
const char* value) { m_workingDirectoryHasBeenSet =
true; m_workingDirectory.assign(value); }
660 inline void SetDisableNetworking(
bool value) { m_disableNetworkingHasBeenSet =
true; m_disableNetworking = value; }
675 inline void SetPrivileged(
bool value) { m_privilegedHasBeenSet =
true; m_privileged = value; }
793 inline void SetInteractive(
bool value) { m_interactiveHasBeenSet =
true; m_interactive = value; }
805 inline void SetPseudoTerminal(
bool value) { m_pseudoTerminalHasBeenSet =
true; m_pseudoTerminal = value; }
1006 bool m_nameHasBeenSet =
false;
1009 bool m_imageHasBeenSet =
false;
1012 bool m_repositoryCredentialsHasBeenSet =
false;
1015 bool m_cpuHasBeenSet =
false;
1018 bool m_memoryHasBeenSet =
false;
1020 int m_memoryReservation;
1021 bool m_memoryReservationHasBeenSet =
false;
1024 bool m_linksHasBeenSet =
false;
1027 bool m_portMappingsHasBeenSet =
false;
1030 bool m_essentialHasBeenSet =
false;
1033 bool m_restartPolicyHasBeenSet =
false;
1036 bool m_entryPointHasBeenSet =
false;
1039 bool m_commandHasBeenSet =
false;
1042 bool m_environmentHasBeenSet =
false;
1045 bool m_environmentFilesHasBeenSet =
false;
1048 bool m_mountPointsHasBeenSet =
false;
1051 bool m_volumesFromHasBeenSet =
false;
1054 bool m_linuxParametersHasBeenSet =
false;
1057 bool m_secretsHasBeenSet =
false;
1060 bool m_dependsOnHasBeenSet =
false;
1063 bool m_startTimeoutHasBeenSet =
false;
1066 bool m_stopTimeoutHasBeenSet =
false;
1069 bool m_hostnameHasBeenSet =
false;
1072 bool m_userHasBeenSet =
false;
1075 bool m_workingDirectoryHasBeenSet =
false;
1077 bool m_disableNetworking;
1078 bool m_disableNetworkingHasBeenSet =
false;
1081 bool m_privilegedHasBeenSet =
false;
1083 bool m_readonlyRootFilesystem;
1084 bool m_readonlyRootFilesystemHasBeenSet =
false;
1087 bool m_dnsServersHasBeenSet =
false;
1090 bool m_dnsSearchDomainsHasBeenSet =
false;
1093 bool m_extraHostsHasBeenSet =
false;
1096 bool m_dockerSecurityOptionsHasBeenSet =
false;
1099 bool m_interactiveHasBeenSet =
false;
1101 bool m_pseudoTerminal;
1102 bool m_pseudoTerminalHasBeenSet =
false;
1105 bool m_dockerLabelsHasBeenSet =
false;
1108 bool m_ulimitsHasBeenSet =
false;
1111 bool m_logConfigurationHasBeenSet =
false;
1114 bool m_healthCheckHasBeenSet =
false;
1117 bool m_systemControlsHasBeenSet =
false;
1120 bool m_resourceRequirementsHasBeenSet =
false;
1123 bool m_firelensConfigurationHasBeenSet =
false;
1126 bool m_credentialSpecsHasBeenSet =
false;
ContainerDefinition & AddDockerSecurityOptions(const Aws::String &value)
int GetStopTimeout() const
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 SetMemory(int 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)
bool DependsOnHasBeenSet() const
ContainerDefinition & WithEntryPoint(const Aws::Vector< Aws::String > &value)
AWS_ECS_API ContainerDefinition()
bool ImageHasBeenSet() const
ContainerDefinition & AddCommand(const Aws::String &value)
ContainerDefinition & AddPortMappings(const PortMapping &value)
void SetLinks(Aws::Vector< Aws::String > &&value)
bool DockerLabelsHasBeenSet() const
const Aws::Vector< Aws::String > & GetLinks() const
bool GetPrivileged() 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)
bool GetInteractive() const
void SetDockerLabels(Aws::Map< Aws::String, Aws::String > &&value)
ContainerDefinition & AddCommand(const char *value)
ContainerDefinition & WithEnvironment(const Aws::Vector< KeyValuePair > &value)
bool CommandHasBeenSet() const
bool StopTimeoutHasBeenSet() const
bool DockerSecurityOptionsHasBeenSet() const
ContainerDefinition & WithUlimits(Aws::Vector< Ulimit > &&value)
bool GetDisableNetworking() const
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)
bool StartTimeoutHasBeenSet() const
ContainerDefinition & WithFirelensConfiguration(const FirelensConfiguration &value)
void SetWorkingDirectory(const char *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
bool UlimitsHasBeenSet() const
void SetLinuxParameters(const LinuxParameters &value)
ContainerDefinition & AddCredentialSpecs(Aws::String &&value)
ContainerDefinition & AddCredentialSpecs(const Aws::String &value)
int GetStartTimeout() const
ContainerDefinition & WithDisableNetworking(bool value)
ContainerDefinition & AddMountPoints(MountPoint &&value)
bool WorkingDirectoryHasBeenSet() const
void SetCommand(Aws::Vector< Aws::String > &&value)
void SetCredentialSpecs(Aws::Vector< Aws::String > &&value)
void SetLogConfiguration(LogConfiguration &&value)
bool EssentialHasBeenSet() const
ContainerDefinition & AddCommand(Aws::String &&value)
ContainerDefinition & AddSecrets(const Secret &value)
ContainerDefinition & WithSystemControls(const Aws::Vector< SystemControl > &value)
bool HealthCheckHasBeenSet() const
void SetStartTimeout(int value)
void SetFirelensConfiguration(FirelensConfiguration &&value)
ContainerDefinition & WithImage(const Aws::String &value)
void SetHostname(const Aws::String &value)
ContainerDefinition & AddEnvironment(const KeyValuePair &value)
bool EntryPointHasBeenSet() const
ContainerDefinition & AddEnvironmentFiles(EnvironmentFile &&value)
void SetEntryPoint(Aws::Vector< Aws::String > &&value)
ContainerDefinition & AddSystemControls(SystemControl &&value)
ContainerDefinition & AddUlimits(const Ulimit &value)
const Aws::String & GetUser() const
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)
void SetPseudoTerminal(bool value)
bool EnvironmentHasBeenSet() const
const Aws::String & GetImage() const
ContainerDefinition & WithResourceRequirements(Aws::Vector< ResourceRequirement > &&value)
ContainerDefinition & AddMountPoints(const MountPoint &value)
bool PortMappingsHasBeenSet() const
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)
void SetImage(Aws::String &&value)
ContainerDefinition & AddDockerSecurityOptions(Aws::String &&value)
ContainerDefinition & WithRestartPolicy(const ContainerRestartPolicy &value)
const Aws::Vector< ResourceRequirement > & GetResourceRequirements() const
ContainerDefinition & AddCredentialSpecs(const char *value)
bool DnsSearchDomainsHasBeenSet() const
void SetHealthCheck(HealthCheck &&value)
void SetName(const char *value)
ContainerDefinition & AddDnsServers(const Aws::String &value)
void SetHostname(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)
bool LinksHasBeenSet() const
bool PrivilegedHasBeenSet() const
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)
bool ResourceRequirementsHasBeenSet() const
ContainerDefinition & WithLinks(const Aws::Vector< Aws::String > &value)
bool CredentialSpecsHasBeenSet() const
bool MemoryReservationHasBeenSet() const
ContainerDefinition & AddExtraHosts(HostEntry &&value)
void SetLinks(const Aws::Vector< Aws::String > &value)
int GetMemoryReservation() const
void SetUlimits(const Aws::Vector< Ulimit > &value)
void SetResourceRequirements(Aws::Vector< ResourceRequirement > &&value)
void SetReadonlyRootFilesystem(bool 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)
bool DisableNetworkingHasBeenSet() const
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)
bool GetPseudoTerminal() const
bool RepositoryCredentialsHasBeenSet() const
bool SystemControlsHasBeenSet() const
void SetInteractive(bool value)
ContainerDefinition & AddLinks(Aws::String &&value)
ContainerDefinition & WithRestartPolicy(ContainerRestartPolicy &&value)
void SetStopTimeout(int value)
void SetExtraHosts(Aws::Vector< HostEntry > &&value)
void SetRestartPolicy(const ContainerRestartPolicy &value)
ContainerDefinition & WithLogConfiguration(LogConfiguration &&value)
bool PseudoTerminalHasBeenSet() const
ContainerDefinition & WithPortMappings(Aws::Vector< PortMapping > &&value)
bool ReadonlyRootFilesystemHasBeenSet() const
void SetWorkingDirectory(const Aws::String &value)
bool CpuHasBeenSet() const
bool RestartPolicyHasBeenSet() const
bool MountPointsHasBeenSet() const
ContainerDefinition & WithCommand(Aws::Vector< Aws::String > &&value)
ContainerDefinition & AddSystemControls(const SystemControl &value)
bool FirelensConfigurationHasBeenSet() const
ContainerDefinition & WithDockerLabels(const Aws::Map< Aws::String, Aws::String > &value)
bool NameHasBeenSet() const
ContainerDefinition & WithMountPoints(Aws::Vector< MountPoint > &&value)
ContainerDefinition & AddDockerLabels(const Aws::String &key, Aws::String &&value)
ContainerDefinition & WithHealthCheck(HealthCheck &&value)
bool InteractiveHasBeenSet() const
ContainerDefinition & AddDnsSearchDomains(Aws::String &&value)
bool LogConfigurationHasBeenSet() const
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)
bool GetReadonlyRootFilesystem() const
ContainerDefinition & AddDependsOn(ContainerDependency &&value)
void SetCredentialSpecs(const Aws::Vector< Aws::String > &value)
void SetSystemControls(const Aws::Vector< SystemControl > &value)
void SetMemoryReservation(int value)
ContainerDefinition & WithExtraHosts(Aws::Vector< HostEntry > &&value)
bool MemoryHasBeenSet() const
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)
bool EnvironmentFilesHasBeenSet() const
bool SecretsHasBeenSet() const
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 SetImage(const char *value)
void SetPrivileged(bool 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)
bool VolumesFromHasBeenSet() const
ContainerDefinition & WithVolumesFrom(Aws::Vector< VolumeFrom > &&value)
void SetPortMappings(Aws::Vector< PortMapping > &&value)
void SetUser(Aws::String &&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)
void SetDisableNetworking(bool 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)
bool DnsServersHasBeenSet() const
void SetName(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)
void SetEssential(bool 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)
bool GetEssential() const
ContainerDefinition & WithImage(const char *value)
const FirelensConfiguration & GetFirelensConfiguration() const
ContainerDefinition & WithHostname(Aws::String &&value)
const Aws::String & GetName() const
void SetHostname(const char *value)
void SetUser(const Aws::String &value)
ContainerDefinition & WithCommand(const Aws::Vector< Aws::String > &value)
ContainerDefinition & WithRepositoryCredentials(RepositoryCredentials &&value)
void SetUser(const char *value)
ContainerDefinition & WithEnvironmentFiles(const Aws::Vector< EnvironmentFile > &value)
bool UserHasBeenSet() const
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)
bool HostnameHasBeenSet() const
ContainerDefinition & WithStartTimeout(int value)
ContainerDefinition & AddUlimits(Ulimit &&value)
ContainerDefinition & WithRepositoryCredentials(const RepositoryCredentials &value)
bool LinuxParametersHasBeenSet() const
ContainerDefinition & WithEntryPoint(Aws::Vector< Aws::String > &&value)
ContainerDefinition & WithLinks(Aws::Vector< Aws::String > &&value)
ContainerDefinition & AddVolumesFrom(VolumeFrom &&value)
bool ExtraHostsHasBeenSet() const
void SetMountPoints(Aws::Vector< MountPoint > &&value)
const Aws::String & GetHostname() const
ContainerDefinition & WithEnvironment(Aws::Vector< KeyValuePair > &&value)
const RepositoryCredentials & GetRepositoryCredentials() const
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