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/ContainerDependency.h>
11#include <aws/ecs/model/ContainerRestartPolicy.h>
12#include <aws/ecs/model/DaemonLinuxParameters.h>
13#include <aws/ecs/model/EnvironmentFile.h>
14#include <aws/ecs/model/FirelensConfiguration.h>
15#include <aws/ecs/model/HealthCheck.h>
16#include <aws/ecs/model/KeyValuePair.h>
17#include <aws/ecs/model/LogConfiguration.h>
18#include <aws/ecs/model/MountPoint.h>
19#include <aws/ecs/model/RepositoryCredentials.h>
20#include <aws/ecs/model/Secret.h>
21#include <aws/ecs/model/SystemControl.h>
22#include <aws/ecs/model/Ulimit.h>
57 template <
typename NameT = Aws::String>
59 m_nameHasBeenSet =
true;
60 m_name = std::forward<NameT>(value);
62 template <
typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
79 template <
typename ImageT = Aws::String>
81 m_imageHasBeenSet =
true;
82 m_image = std::forward<ImageT>(value);
84 template <
typename ImageT = Aws::String>
86 SetImage(std::forward<ImageT>(value));
99 m_memoryHasBeenSet =
true;
115 m_memoryReservationHasBeenSet =
true;
116 m_memoryReservation = value;
130 template <
typename RepositoryCredentialsT = RepositoryCredentials>
132 m_repositoryCredentialsHasBeenSet =
true;
133 m_repositoryCredentials = std::forward<RepositoryCredentialsT>(value);
135 template <
typename RepositoryCredentialsT = RepositoryCredentials>
149 template <
typename HealthCheckT = HealthCheck>
151 m_healthCheckHasBeenSet =
true;
152 m_healthCheck = std::forward<HealthCheckT>(value);
154 template <
typename HealthCheckT = HealthCheck>
165 inline int GetCpu()
const {
return m_cpu; }
168 m_cpuHasBeenSet =
true;
186 m_essentialHasBeenSet =
true;
201 template <
typename EntryPo
intT = Aws::Vector<Aws::String>>
203 m_entryPointHasBeenSet =
true;
204 m_entryPoint = std::forward<EntryPointT>(value);
206 template <
typename EntryPo
intT = Aws::Vector<Aws::String>>
211 template <
typename EntryPo
intT = Aws::String>
213 m_entryPointHasBeenSet =
true;
214 m_entryPoint.emplace_back(std::forward<EntryPointT>(value));
225 template <
typename CommandT = Aws::Vector<Aws::String>>
227 m_commandHasBeenSet =
true;
228 m_command = std::forward<CommandT>(value);
230 template <
typename CommandT = Aws::Vector<Aws::String>>
235 template <
typename CommandT = Aws::String>
237 m_commandHasBeenSet =
true;
238 m_command.emplace_back(std::forward<CommandT>(value));
249 template <
typename WorkingDirectoryT = Aws::String>
251 m_workingDirectoryHasBeenSet =
true;
252 m_workingDirectory = std::forward<WorkingDirectoryT>(value);
254 template <
typename WorkingDirectoryT = Aws::String>
268 template <
typename EnvironmentFilesT = Aws::Vector<EnvironmentFile>>
270 m_environmentFilesHasBeenSet =
true;
271 m_environmentFiles = std::forward<EnvironmentFilesT>(value);
273 template <
typename EnvironmentFilesT = Aws::Vector<EnvironmentFile>>
278 template <
typename EnvironmentFilesT = EnvironmentFile>
280 m_environmentFilesHasBeenSet =
true;
281 m_environmentFiles.emplace_back(std::forward<EnvironmentFilesT>(value));
292 template <
typename EnvironmentT = Aws::Vector<KeyValuePair>>
294 m_environmentHasBeenSet =
true;
295 m_environment = std::forward<EnvironmentT>(value);
297 template <
typename EnvironmentT = Aws::Vector<KeyValuePair>>
302 template <
typename EnvironmentT = KeyValuePair>
304 m_environmentHasBeenSet =
true;
305 m_environment.emplace_back(std::forward<EnvironmentT>(value));
316 template <
typename SecretsT = Aws::Vector<Secret>>
318 m_secretsHasBeenSet =
true;
319 m_secrets = std::forward<SecretsT>(value);
321 template <
typename SecretsT = Aws::Vector<Secret>>
326 template <
typename SecretsT = Secret>
328 m_secretsHasBeenSet =
true;
329 m_secrets.emplace_back(std::forward<SecretsT>(value));
342 m_readonlyRootFilesystemHasBeenSet =
true;
343 m_readonlyRootFilesystem = value;
357 template <
typename MountPo
intsT = Aws::Vector<MountPo
int>>
359 m_mountPointsHasBeenSet =
true;
360 m_mountPoints = std::forward<MountPointsT>(value);
362 template <
typename MountPo
intsT = Aws::Vector<MountPo
int>>
367 template <
typename MountPo
intsT = MountPo
int>
369 m_mountPointsHasBeenSet =
true;
370 m_mountPoints.emplace_back(std::forward<MountPointsT>(value));
381 template <
typename LogConfigurationT = LogConfiguration>
383 m_logConfigurationHasBeenSet =
true;
384 m_logConfiguration = std::forward<LogConfigurationT>(value);
386 template <
typename LogConfigurationT = LogConfiguration>
400 template <
typename FirelensConfigurationT = FirelensConfiguration>
402 m_firelensConfigurationHasBeenSet =
true;
403 m_firelensConfiguration = std::forward<FirelensConfigurationT>(value);
405 template <
typename FirelensConfigurationT = FirelensConfiguration>
420 m_privilegedHasBeenSet =
true;
421 m_privileged = value;
435 template <
typename UserT = Aws::String>
437 m_userHasBeenSet =
true;
438 m_user = std::forward<UserT>(value);
440 template <
typename UserT = Aws::String>
442 SetUser(std::forward<UserT>(value));
453 template <
typename UlimitsT = Aws::Vector<Ulimit>>
455 m_ulimitsHasBeenSet =
true;
456 m_ulimits = std::forward<UlimitsT>(value);
458 template <
typename UlimitsT = Aws::Vector<Ulimit>>
463 template <
typename UlimitsT = Ulimit>
465 m_ulimitsHasBeenSet =
true;
466 m_ulimits.emplace_back(std::forward<UlimitsT>(value));
478 template <
typename LinuxParametersT = DaemonLinuxParameters>
480 m_linuxParametersHasBeenSet =
true;
481 m_linuxParameters = std::forward<LinuxParametersT>(value);
483 template <
typename LinuxParametersT = DaemonLinuxParameters>
497 template <
typename DependsOnT = Aws::Vector<ContainerDependency>>
499 m_dependsOnHasBeenSet =
true;
500 m_dependsOn = std::forward<DependsOnT>(value);
502 template <
typename DependsOnT = Aws::Vector<ContainerDependency>>
507 template <
typename DependsOnT = ContainerDependency>
509 m_dependsOnHasBeenSet =
true;
510 m_dependsOn.emplace_back(std::forward<DependsOnT>(value));
523 m_startTimeoutHasBeenSet =
true;
524 m_startTimeout = value;
540 m_stopTimeoutHasBeenSet =
true;
541 m_stopTimeout = value;
555 template <
typename SystemControlsT = Aws::Vector<SystemControl>>
557 m_systemControlsHasBeenSet =
true;
558 m_systemControls = std::forward<SystemControlsT>(value);
560 template <
typename SystemControlsT = Aws::Vector<SystemControl>>
565 template <
typename SystemControlsT = SystemControl>
567 m_systemControlsHasBeenSet =
true;
568 m_systemControls.emplace_back(std::forward<SystemControlsT>(value));
582 m_interactiveHasBeenSet =
true;
583 m_interactive = value;
598 m_pseudoTerminalHasBeenSet =
true;
599 m_pseudoTerminal = value;
614 template <
typename RestartPolicyT = ContainerRestartPolicy>
616 m_restartPolicyHasBeenSet =
true;
617 m_restartPolicy = std::forward<RestartPolicyT>(value);
619 template <
typename RestartPolicyT = ContainerRestartPolicy>
632 int m_memoryReservation{0};
634 RepositoryCredentials m_repositoryCredentials;
636 HealthCheck m_healthCheck;
640 bool m_essential{
false};
654 bool m_readonlyRootFilesystem{
false};
658 LogConfiguration m_logConfiguration;
660 FirelensConfiguration m_firelensConfiguration;
662 bool m_privileged{
false};
668 DaemonLinuxParameters m_linuxParameters;
672 int m_startTimeout{0};
674 int m_stopTimeout{0};
678 bool m_interactive{
false};
680 bool m_pseudoTerminal{
false};
682 ContainerRestartPolicy m_restartPolicy;
683 bool m_nameHasBeenSet =
false;
684 bool m_imageHasBeenSet =
false;
685 bool m_memoryHasBeenSet =
false;
686 bool m_memoryReservationHasBeenSet =
false;
687 bool m_repositoryCredentialsHasBeenSet =
false;
688 bool m_healthCheckHasBeenSet =
false;
689 bool m_cpuHasBeenSet =
false;
690 bool m_essentialHasBeenSet =
false;
691 bool m_entryPointHasBeenSet =
false;
692 bool m_commandHasBeenSet =
false;
693 bool m_workingDirectoryHasBeenSet =
false;
694 bool m_environmentFilesHasBeenSet =
false;
695 bool m_environmentHasBeenSet =
false;
696 bool m_secretsHasBeenSet =
false;
697 bool m_readonlyRootFilesystemHasBeenSet =
false;
698 bool m_mountPointsHasBeenSet =
false;
699 bool m_logConfigurationHasBeenSet =
false;
700 bool m_firelensConfigurationHasBeenSet =
false;
701 bool m_privilegedHasBeenSet =
false;
702 bool m_userHasBeenSet =
false;
703 bool m_ulimitsHasBeenSet =
false;
704 bool m_linuxParametersHasBeenSet =
false;
705 bool m_dependsOnHasBeenSet =
false;
706 bool m_startTimeoutHasBeenSet =
false;
707 bool m_stopTimeoutHasBeenSet =
false;
708 bool m_systemControlsHasBeenSet =
false;
709 bool m_interactiveHasBeenSet =
false;
710 bool m_pseudoTerminalHasBeenSet =
false;
711 bool m_restartPolicyHasBeenSet =
false;
void SetEntryPoint(EntryPointT &&value)
const Aws::String & GetUser() const
bool SystemControlsHasBeenSet() const
void SetUlimits(UlimitsT &&value)
DaemonContainerDefinition & AddSecrets(SecretsT &&value)
void SetName(NameT &&value)
void SetStopTimeout(int value)
const DaemonLinuxParameters & GetLinuxParameters() const
void SetImage(ImageT &&value)
void SetRestartPolicy(RestartPolicyT &&value)
DaemonContainerDefinition & WithLogConfiguration(LogConfigurationT &&value)
const Aws::String & GetImage() const
void SetStartTimeout(int value)
const Aws::Vector< Aws::String > & GetEntryPoint() const
void SetInteractive(bool value)
DaemonContainerDefinition & WithEnvironment(EnvironmentT &&value)
DaemonContainerDefinition & WithUlimits(UlimitsT &&value)
void SetDependsOn(DependsOnT &&value)
void SetEssential(bool value)
void SetLinuxParameters(LinuxParametersT &&value)
bool HealthCheckHasBeenSet() const
DaemonContainerDefinition & WithLinuxParameters(LinuxParametersT &&value)
DaemonContainerDefinition & WithCommand(CommandT &&value)
void SetSecrets(SecretsT &&value)
DaemonContainerDefinition & WithStartTimeout(int value)
AWS_ECS_API DaemonContainerDefinition(Aws::Utils::Json::JsonView jsonValue)
void SetUser(UserT &&value)
void SetFirelensConfiguration(FirelensConfigurationT &&value)
DaemonContainerDefinition & WithEssential(bool value)
DaemonContainerDefinition & WithDependsOn(DependsOnT &&value)
DaemonContainerDefinition & WithReadonlyRootFilesystem(bool value)
const Aws::Vector< Aws::String > & GetCommand() const
int GetMemoryReservation() const
const Aws::String & GetName() const
void SetMemory(int value)
bool StartTimeoutHasBeenSet() const
DaemonContainerDefinition & WithRepositoryCredentials(RepositoryCredentialsT &&value)
DaemonContainerDefinition & WithName(NameT &&value)
bool GetPrivileged() const
void SetLogConfiguration(LogConfigurationT &&value)
bool UlimitsHasBeenSet() const
DaemonContainerDefinition & WithCpu(int value)
DaemonContainerDefinition & AddEntryPoint(EntryPointT &&value)
void SetPrivileged(bool value)
bool NameHasBeenSet() const
void SetMemoryReservation(int value)
int GetStopTimeout() const
bool InteractiveHasBeenSet() const
const Aws::Vector< Secret > & GetSecrets() const
DaemonContainerDefinition & WithPrivileged(bool value)
DaemonContainerDefinition & WithImage(ImageT &&value)
bool EntryPointHasBeenSet() const
DaemonContainerDefinition & WithHealthCheck(HealthCheckT &&value)
const Aws::Vector< KeyValuePair > & GetEnvironment() const
bool StopTimeoutHasBeenSet() const
bool ImageHasBeenSet() const
bool MountPointsHasBeenSet() const
void SetReadonlyRootFilesystem(bool value)
bool FirelensConfigurationHasBeenSet() const
DaemonContainerDefinition & WithMemoryReservation(int value)
bool GetInteractive() const
bool DependsOnHasBeenSet() const
DaemonContainerDefinition & AddEnvironmentFiles(EnvironmentFilesT &&value)
DaemonContainerDefinition & WithRestartPolicy(RestartPolicyT &&value)
bool UserHasBeenSet() const
bool EssentialHasBeenSet() const
const RepositoryCredentials & GetRepositoryCredentials() const
DaemonContainerDefinition & WithUser(UserT &&value)
bool SecretsHasBeenSet() const
void SetMountPoints(MountPointsT &&value)
const ContainerRestartPolicy & GetRestartPolicy() const
void SetEnvironment(EnvironmentT &&value)
const Aws::Vector< MountPoint > & GetMountPoints() const
DaemonContainerDefinition & AddEnvironment(EnvironmentT &&value)
const LogConfiguration & GetLogConfiguration() const
bool CpuHasBeenSet() const
DaemonContainerDefinition & AddCommand(CommandT &&value)
DaemonContainerDefinition & WithWorkingDirectory(WorkingDirectoryT &&value)
bool LogConfigurationHasBeenSet() const
bool RestartPolicyHasBeenSet() const
void SetCommand(CommandT &&value)
DaemonContainerDefinition & WithPseudoTerminal(bool value)
AWS_ECS_API DaemonContainerDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSystemControls(SystemControlsT &&value)
bool MemoryReservationHasBeenSet() const
bool GetReadonlyRootFilesystem() const
bool EnvironmentFilesHasBeenSet() const
DaemonContainerDefinition & WithEntryPoint(EntryPointT &&value)
DaemonContainerDefinition & AddUlimits(UlimitsT &&value)
bool EnvironmentHasBeenSet() const
const Aws::Vector< EnvironmentFile > & GetEnvironmentFiles() const
void SetHealthCheck(HealthCheckT &&value)
DaemonContainerDefinition & WithEnvironmentFiles(EnvironmentFilesT &&value)
DaemonContainerDefinition & WithStopTimeout(int value)
void SetPseudoTerminal(bool value)
int GetStartTimeout() const
void SetEnvironmentFiles(EnvironmentFilesT &&value)
bool RepositoryCredentialsHasBeenSet() const
void SetWorkingDirectory(WorkingDirectoryT &&value)
const FirelensConfiguration & GetFirelensConfiguration() const
bool MemoryHasBeenSet() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRepositoryCredentials(RepositoryCredentialsT &&value)
bool GetPseudoTerminal() const
bool PseudoTerminalHasBeenSet() const
DaemonContainerDefinition & WithSecrets(SecretsT &&value)
DaemonContainerDefinition & WithSystemControls(SystemControlsT &&value)
DaemonContainerDefinition & WithMemory(int value)
DaemonContainerDefinition & WithInteractive(bool value)
bool PrivilegedHasBeenSet() const
const HealthCheck & GetHealthCheck() const
const Aws::Vector< SystemControl > & GetSystemControls() const
DaemonContainerDefinition & AddDependsOn(DependsOnT &&value)
const Aws::Vector< Ulimit > & GetUlimits() const
bool GetEssential() const
bool LinuxParametersHasBeenSet() const
const Aws::Vector< ContainerDependency > & GetDependsOn() const
DaemonContainerDefinition & AddSystemControls(SystemControlsT &&value)
DaemonContainerDefinition & WithFirelensConfiguration(FirelensConfigurationT &&value)
DaemonContainerDefinition & WithMountPoints(MountPointsT &&value)
AWS_ECS_API DaemonContainerDefinition()=default
DaemonContainerDefinition & AddMountPoints(MountPointsT &&value)
const Aws::String & GetWorkingDirectory() const
bool ReadonlyRootFilesystemHasBeenSet() const
bool WorkingDirectoryHasBeenSet() const
bool CommandHasBeenSet() 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