7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/FirelensConfiguration.h>
9#include <aws/batch/model/KeyValuePair.h>
10#include <aws/batch/model/LinuxParameters.h>
11#include <aws/batch/model/LogConfiguration.h>
12#include <aws/batch/model/MountPoint.h>
13#include <aws/batch/model/RepositoryCredentials.h>
14#include <aws/batch/model/ResourceRequirement.h>
15#include <aws/batch/model/Secret.h>
16#include <aws/batch/model/TaskContainerDependency.h>
17#include <aws/batch/model/Ulimit.h>
18#include <aws/core/utils/memory/stl/AWSString.h>
19#include <aws/core/utils/memory/stl/AWSVector.h>
62 template <
typename CommandT = Aws::Vector<Aws::String>>
64 m_commandHasBeenSet =
true;
65 m_command = std::forward<CommandT>(value);
67 template <
typename CommandT = Aws::Vector<Aws::String>>
72 template <
typename CommandT = Aws::String>
74 m_commandHasBeenSet =
true;
75 m_command.emplace_back(std::forward<CommandT>(value));
86 template <
typename DependsOnT = Aws::Vector<TaskContainerDependency>>
88 m_dependsOnHasBeenSet =
true;
89 m_dependsOn = std::forward<DependsOnT>(value);
91 template <
typename DependsOnT = Aws::Vector<TaskContainerDependency>>
96 template <
typename DependsOnT = TaskContainerDependency>
98 m_dependsOnHasBeenSet =
true;
99 m_dependsOn.emplace_back(std::forward<DependsOnT>(value));
120 template <
typename EnvironmentT = Aws::Vector<KeyValuePair>>
122 m_environmentHasBeenSet =
true;
123 m_environment = std::forward<EnvironmentT>(value);
125 template <
typename EnvironmentT = Aws::Vector<KeyValuePair>>
130 template <
typename EnvironmentT = KeyValuePair>
132 m_environmentHasBeenSet =
true;
133 m_environment.emplace_back(std::forward<EnvironmentT>(value));
156 m_essentialHasBeenSet =
true;
175 template <
typename FirelensConfigurationT = FirelensConfiguration>
177 m_firelensConfigurationHasBeenSet =
true;
178 m_firelensConfiguration = std::forward<FirelensConfigurationT>(value);
180 template <
typename FirelensConfigurationT = FirelensConfiguration>
205 template <
typename ImageT = Aws::String>
207 m_imageHasBeenSet =
true;
208 m_image = std::forward<ImageT>(value);
210 template <
typename ImageT = Aws::String>
212 SetImage(std::forward<ImageT>(value));
225 template <
typename LinuxParametersT = LinuxParameters>
227 m_linuxParametersHasBeenSet =
true;
228 m_linuxParameters = std::forward<LinuxParametersT>(value);
230 template <
typename LinuxParametersT = LinuxParameters>
273 template <
typename LogConfigurationT = LogConfiguration>
275 m_logConfigurationHasBeenSet =
true;
276 m_logConfiguration = std::forward<LogConfigurationT>(value);
278 template <
typename LogConfigurationT = LogConfiguration>
300 template <
typename MountPo
intsT = Aws::Vector<MountPo
int>>
302 m_mountPointsHasBeenSet =
true;
303 m_mountPoints = std::forward<MountPointsT>(value);
305 template <
typename MountPo
intsT = Aws::Vector<MountPo
int>>
310 template <
typename MountPo
intsT = MountPo
int>
312 m_mountPointsHasBeenSet =
true;
313 m_mountPoints.emplace_back(std::forward<MountPointsT>(value));
325 template <
typename NameT = Aws::String>
327 m_nameHasBeenSet =
true;
328 m_name = std::forward<NameT>(value);
330 template <
typename NameT = Aws::String>
332 SetName(std::forward<NameT>(value));
353 m_privilegedHasBeenSet =
true;
354 m_privileged = value;
377 m_readonlyRootFilesystemHasBeenSet =
true;
378 m_readonlyRootFilesystem = value;
392 template <
typename RepositoryCredentialsT = RepositoryCredentials>
394 m_repositoryCredentialsHasBeenSet =
true;
395 m_repositoryCredentials = std::forward<RepositoryCredentialsT>(value);
397 template <
typename RepositoryCredentialsT = RepositoryCredentials>
411 template <
typename ResourceRequirementsT = Aws::Vector<ResourceRequirement>>
413 m_resourceRequirementsHasBeenSet =
true;
414 m_resourceRequirements = std::forward<ResourceRequirementsT>(value);
416 template <
typename ResourceRequirementsT = Aws::Vector<ResourceRequirement>>
421 template <
typename ResourceRequirementsT = ResourceRequirement>
423 m_resourceRequirementsHasBeenSet =
true;
424 m_resourceRequirements.emplace_back(std::forward<ResourceRequirementsT>(value));
437 template <
typename SecretsT = Aws::Vector<Secret>>
439 m_secretsHasBeenSet =
true;
440 m_secrets = std::forward<SecretsT>(value);
442 template <
typename SecretsT = Aws::Vector<Secret>>
447 template <
typename SecretsT = Secret>
449 m_secretsHasBeenSet =
true;
450 m_secrets.emplace_back(std::forward<SecretsT>(value));
480 template <
typename UlimitsT = Aws::Vector<Ulimit>>
482 m_ulimitsHasBeenSet =
true;
483 m_ulimits = std::forward<UlimitsT>(value);
485 template <
typename UlimitsT = Aws::Vector<Ulimit>>
490 template <
typename UlimitsT = Ulimit>
492 m_ulimitsHasBeenSet =
true;
493 m_ulimits.emplace_back(std::forward<UlimitsT>(value));
515 template <
typename UserT = Aws::String>
517 m_userHasBeenSet =
true;
518 m_user = std::forward<UserT>(value);
520 template <
typename UserT = Aws::String>
522 SetUser(std::forward<UserT>(value));
533 bool m_essential{
false};
535 FirelensConfiguration m_firelensConfiguration;
539 LinuxParameters m_linuxParameters;
541 LogConfiguration m_logConfiguration;
547 bool m_privileged{
false};
549 bool m_readonlyRootFilesystem{
false};
551 RepositoryCredentials m_repositoryCredentials;
560 bool m_commandHasBeenSet =
false;
561 bool m_dependsOnHasBeenSet =
false;
562 bool m_environmentHasBeenSet =
false;
563 bool m_essentialHasBeenSet =
false;
564 bool m_firelensConfigurationHasBeenSet =
false;
565 bool m_imageHasBeenSet =
false;
566 bool m_linuxParametersHasBeenSet =
false;
567 bool m_logConfigurationHasBeenSet =
false;
568 bool m_mountPointsHasBeenSet =
false;
569 bool m_nameHasBeenSet =
false;
570 bool m_privilegedHasBeenSet =
false;
571 bool m_readonlyRootFilesystemHasBeenSet =
false;
572 bool m_repositoryCredentialsHasBeenSet =
false;
573 bool m_resourceRequirementsHasBeenSet =
false;
574 bool m_secretsHasBeenSet =
false;
575 bool m_ulimitsHasBeenSet =
false;
576 bool m_userHasBeenSet =
false;
bool PrivilegedHasBeenSet() const
const Aws::Vector< ResourceRequirement > & GetResourceRequirements() const
void SetName(NameT &&value)
TaskContainerProperties & WithFirelensConfiguration(FirelensConfigurationT &&value)
TaskContainerProperties & WithResourceRequirements(ResourceRequirementsT &&value)
const Aws::String & GetImage() const
bool UserHasBeenSet() const
bool UlimitsHasBeenSet() const
const Aws::Vector< Secret > & GetSecrets() const
bool NameHasBeenSet() const
void SetResourceRequirements(ResourceRequirementsT &&value)
void SetSecrets(SecretsT &&value)
TaskContainerProperties & WithPrivileged(bool value)
bool SecretsHasBeenSet() const
bool ImageHasBeenSet() const
TaskContainerProperties & WithCommand(CommandT &&value)
const RepositoryCredentials & GetRepositoryCredentials() const
void SetMountPoints(MountPointsT &&value)
TaskContainerProperties & WithName(NameT &&value)
const Aws::Vector< TaskContainerDependency > & GetDependsOn() const
void SetLinuxParameters(LinuxParametersT &&value)
bool CommandHasBeenSet() const
AWS_BATCH_API TaskContainerProperties()=default
TaskContainerProperties & WithLinuxParameters(LinuxParametersT &&value)
TaskContainerProperties & WithUser(UserT &&value)
const LinuxParameters & GetLinuxParameters() const
const Aws::Vector< Aws::String > & GetCommand() const
TaskContainerProperties & AddEnvironment(EnvironmentT &&value)
TaskContainerProperties & AddDependsOn(DependsOnT &&value)
void SetFirelensConfiguration(FirelensConfigurationT &&value)
bool GetPrivileged() const
void SetLogConfiguration(LogConfigurationT &&value)
TaskContainerProperties & WithRepositoryCredentials(RepositoryCredentialsT &&value)
AWS_BATCH_API TaskContainerProperties(Aws::Utils::Json::JsonView jsonValue)
void SetUlimits(UlimitsT &&value)
TaskContainerProperties & WithUlimits(UlimitsT &&value)
bool ReadonlyRootFilesystemHasBeenSet() const
void SetImage(ImageT &&value)
void SetEssential(bool value)
bool GetReadonlyRootFilesystem() const
void SetCommand(CommandT &&value)
bool EssentialHasBeenSet() const
TaskContainerProperties & WithReadonlyRootFilesystem(bool value)
TaskContainerProperties & AddCommand(CommandT &&value)
bool RepositoryCredentialsHasBeenSet() const
const Aws::Vector< Ulimit > & GetUlimits() const
void SetUser(UserT &&value)
const FirelensConfiguration & GetFirelensConfiguration() const
TaskContainerProperties & WithEnvironment(EnvironmentT &&value)
void SetRepositoryCredentials(RepositoryCredentialsT &&value)
const Aws::Vector< KeyValuePair > & GetEnvironment() const
const Aws::String & GetUser() const
TaskContainerProperties & WithMountPoints(MountPointsT &&value)
bool LogConfigurationHasBeenSet() const
const Aws::String & GetName() const
AWS_BATCH_API TaskContainerProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReadonlyRootFilesystem(bool value)
void SetEnvironment(EnvironmentT &&value)
TaskContainerProperties & AddResourceRequirements(ResourceRequirementsT &&value)
TaskContainerProperties & WithEssential(bool value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
TaskContainerProperties & AddMountPoints(MountPointsT &&value)
bool MountPointsHasBeenSet() const
bool DependsOnHasBeenSet() const
const LogConfiguration & GetLogConfiguration() const
TaskContainerProperties & WithDependsOn(DependsOnT &&value)
bool LinuxParametersHasBeenSet() const
TaskContainerProperties & WithImage(ImageT &&value)
const Aws::Vector< MountPoint > & GetMountPoints() const
TaskContainerProperties & WithLogConfiguration(LogConfigurationT &&value)
TaskContainerProperties & WithSecrets(SecretsT &&value)
bool FirelensConfigurationHasBeenSet() const
void SetPrivileged(bool value)
bool ResourceRequirementsHasBeenSet() const
TaskContainerProperties & AddUlimits(UlimitsT &&value)
bool EnvironmentHasBeenSet() const
TaskContainerProperties & AddSecrets(SecretsT &&value)
bool GetEssential() const
void SetDependsOn(DependsOnT &&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