7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/batch/model/FirelensConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/batch/model/LinuxParameters.h>
12#include <aws/batch/model/LogConfiguration.h>
13#include <aws/batch/model/RepositoryCredentials.h>
14#include <aws/batch/model/TaskContainerDependency.h>
15#include <aws/batch/model/KeyValuePair.h>
16#include <aws/batch/model/MountPoint.h>
17#include <aws/batch/model/ResourceRequirement.h>
18#include <aws/batch/model/Secret.h>
19#include <aws/batch/model/Ulimit.h>
68 template<
typename CommandT = Aws::Vector<Aws::String>>
69 void SetCommand(CommandT&& value) { m_commandHasBeenSet =
true; m_command = std::forward<CommandT>(value); }
70 template<
typename CommandT = Aws::Vector<Aws::String>>
72 template<
typename CommandT = Aws::String>
82 template<
typename DependsOnT = Aws::Vector<TaskContainerDependency>>
83 void SetDependsOn(DependsOnT&& value) { m_dependsOnHasBeenSet =
true; m_dependsOn = std::forward<DependsOnT>(value); }
84 template<
typename DependsOnT = Aws::Vector<TaskContainerDependency>>
86 template<
typename DependsOnT = TaskContainerDependency>
106 template<
typename EnvironmentT = Aws::Vector<KeyValuePair>>
107 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet =
true; m_environment = std::forward<EnvironmentT>(value); }
108 template<
typename EnvironmentT = Aws::Vector<KeyValuePair>>
110 template<
typename EnvironmentT = KeyValuePair>
131 inline void SetEssential(
bool value) { m_essentialHasBeenSet =
true; m_essential = value; }
145 template<
typename FirelensConfigurationT = FirelensConfiguration>
146 void SetFirelensConfiguration(FirelensConfigurationT&& value) { m_firelensConfigurationHasBeenSet =
true; m_firelensConfiguration = std::forward<FirelensConfigurationT>(value); }
147 template<
typename FirelensConfigurationT = FirelensConfiguration>
169 template<
typename ImageT = Aws::String>
170 void SetImage(ImageT&& value) { m_imageHasBeenSet =
true; m_image = std::forward<ImageT>(value); }
171 template<
typename ImageT = Aws::String>
183 template<
typename LinuxParametersT = LinuxParameters>
184 void SetLinuxParameters(LinuxParametersT&& value) { m_linuxParametersHasBeenSet =
true; m_linuxParameters = std::forward<LinuxParametersT>(value); }
185 template<
typename LinuxParametersT = LinuxParameters>
225 template<
typename LogConfigurationT = LogConfiguration>
226 void SetLogConfiguration(LogConfigurationT&& value) { m_logConfigurationHasBeenSet =
true; m_logConfiguration = std::forward<LogConfigurationT>(value); }
227 template<
typename LogConfigurationT = LogConfiguration>
246 template<
typename MountPo
intsT = Aws::Vector<MountPo
int>>
247 void SetMountPoints(MountPointsT&& value) { m_mountPointsHasBeenSet =
true; m_mountPoints = std::forward<MountPointsT>(value); }
248 template<
typename MountPo
intsT = Aws::Vector<MountPo
int>>
250 template<
typename MountPo
intsT = MountPo
int>
261 template<
typename NameT = Aws::String>
262 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
263 template<
typename NameT = Aws::String>
282 inline void SetPrivileged(
bool value) { m_privilegedHasBeenSet =
true; m_privileged = value; }
310 template<
typename RepositoryCredentialsT = RepositoryCredentials>
311 void SetRepositoryCredentials(RepositoryCredentialsT&& value) { m_repositoryCredentialsHasBeenSet =
true; m_repositoryCredentials = std::forward<RepositoryCredentialsT>(value); }
312 template<
typename RepositoryCredentialsT = RepositoryCredentials>
323 template<
typename ResourceRequirementsT = Aws::Vector<ResourceRequirement>>
324 void SetResourceRequirements(ResourceRequirementsT&& value) { m_resourceRequirementsHasBeenSet =
true; m_resourceRequirements = std::forward<ResourceRequirementsT>(value); }
325 template<
typename ResourceRequirementsT = Aws::Vector<ResourceRequirement>>
327 template<
typename ResourceRequirementsT = ResourceRequirement>
339 template<
typename SecretsT = Aws::Vector<Secret>>
340 void SetSecrets(SecretsT&& value) { m_secretsHasBeenSet =
true; m_secrets = std::forward<SecretsT>(value); }
341 template<
typename SecretsT = Aws::Vector<Secret>>
343 template<
typename SecretsT = Secret>
372 template<
typename UlimitsT = Aws::Vector<Ulimit>>
373 void SetUlimits(UlimitsT&& value) { m_ulimitsHasBeenSet =
true; m_ulimits = std::forward<UlimitsT>(value); }
374 template<
typename UlimitsT = Aws::Vector<Ulimit>>
376 template<
typename UlimitsT = Ulimit>
397 template<
typename UserT = Aws::String>
398 void SetUser(UserT&& value) { m_userHasBeenSet =
true; m_user = std::forward<UserT>(value); }
399 template<
typename UserT = Aws::String>
405 bool m_commandHasBeenSet =
false;
408 bool m_dependsOnHasBeenSet =
false;
411 bool m_environmentHasBeenSet =
false;
413 bool m_essential{
false};
414 bool m_essentialHasBeenSet =
false;
416 FirelensConfiguration m_firelensConfiguration;
417 bool m_firelensConfigurationHasBeenSet =
false;
420 bool m_imageHasBeenSet =
false;
422 LinuxParameters m_linuxParameters;
423 bool m_linuxParametersHasBeenSet =
false;
425 LogConfiguration m_logConfiguration;
426 bool m_logConfigurationHasBeenSet =
false;
429 bool m_mountPointsHasBeenSet =
false;
432 bool m_nameHasBeenSet =
false;
434 bool m_privileged{
false};
435 bool m_privilegedHasBeenSet =
false;
437 bool m_readonlyRootFilesystem{
false};
438 bool m_readonlyRootFilesystemHasBeenSet =
false;
440 RepositoryCredentials m_repositoryCredentials;
441 bool m_repositoryCredentialsHasBeenSet =
false;
444 bool m_resourceRequirementsHasBeenSet =
false;
447 bool m_secretsHasBeenSet =
false;
450 bool m_ulimitsHasBeenSet =
false;
453 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