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>
20#include <aws/batch/model/NetworkInterface.h>
67 template<
typename CommandT = Aws::Vector<Aws::String>>
68 void SetCommand(CommandT&& value) { m_commandHasBeenSet =
true; m_command = std::forward<CommandT>(value); }
69 template<
typename CommandT = Aws::Vector<Aws::String>>
71 template<
typename CommandT = Aws::String>
81 template<
typename DependsOnT = Aws::Vector<TaskContainerDependency>>
82 void SetDependsOn(DependsOnT&& value) { m_dependsOnHasBeenSet =
true; m_dependsOn = std::forward<DependsOnT>(value); }
83 template<
typename DependsOnT = Aws::Vector<TaskContainerDependency>>
85 template<
typename DependsOnT = TaskContainerDependency>
103 template<
typename EnvironmentT = Aws::Vector<KeyValuePair>>
104 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet =
true; m_environment = std::forward<EnvironmentT>(value); }
105 template<
typename EnvironmentT = Aws::Vector<KeyValuePair>>
107 template<
typename EnvironmentT = KeyValuePair>
128 inline void SetEssential(
bool value) { m_essentialHasBeenSet =
true; m_essential = value; }
142 template<
typename FirelensConfigurationT = FirelensConfiguration>
143 void SetFirelensConfiguration(FirelensConfigurationT&& value) { m_firelensConfigurationHasBeenSet =
true; m_firelensConfiguration = std::forward<FirelensConfigurationT>(value); }
144 template<
typename FirelensConfigurationT = FirelensConfiguration>
166 template<
typename ImageT = Aws::String>
167 void SetImage(ImageT&& value) { m_imageHasBeenSet =
true; m_image = std::forward<ImageT>(value); }
168 template<
typename ImageT = Aws::String>
181 template<
typename LinuxParametersT = LinuxParameters>
182 void SetLinuxParameters(LinuxParametersT&& value) { m_linuxParametersHasBeenSet =
true; m_linuxParameters = std::forward<LinuxParametersT>(value); }
183 template<
typename LinuxParametersT = LinuxParameters>
223 template<
typename LogConfigurationT = LogConfiguration>
224 void SetLogConfiguration(LogConfigurationT&& value) { m_logConfigurationHasBeenSet =
true; m_logConfiguration = std::forward<LogConfigurationT>(value); }
225 template<
typename LogConfigurationT = LogConfiguration>
244 template<
typename MountPo
intsT = Aws::Vector<MountPo
int>>
245 void SetMountPoints(MountPointsT&& value) { m_mountPointsHasBeenSet =
true; m_mountPoints = std::forward<MountPointsT>(value); }
246 template<
typename MountPo
intsT = Aws::Vector<MountPo
int>>
248 template<
typename MountPo
intsT = MountPo
int>
258 template<
typename NameT = Aws::String>
259 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
260 template<
typename NameT = Aws::String>
279 inline void SetPrivileged(
bool value) { m_privilegedHasBeenSet =
true; m_privileged = value; }
307 template<
typename RepositoryCredentialsT = RepositoryCredentials>
308 void SetRepositoryCredentials(RepositoryCredentialsT&& value) { m_repositoryCredentialsHasBeenSet =
true; m_repositoryCredentials = std::forward<RepositoryCredentialsT>(value); }
309 template<
typename RepositoryCredentialsT = RepositoryCredentials>
320 template<
typename ResourceRequirementsT = Aws::Vector<ResourceRequirement>>
321 void SetResourceRequirements(ResourceRequirementsT&& value) { m_resourceRequirementsHasBeenSet =
true; m_resourceRequirements = std::forward<ResourceRequirementsT>(value); }
322 template<
typename ResourceRequirementsT = Aws::Vector<ResourceRequirement>>
324 template<
typename ResourceRequirementsT = ResourceRequirement>
336 template<
typename SecretsT = Aws::Vector<Secret>>
337 void SetSecrets(SecretsT&& value) { m_secretsHasBeenSet =
true; m_secrets = std::forward<SecretsT>(value); }
338 template<
typename SecretsT = Aws::Vector<Secret>>
340 template<
typename SecretsT = Secret>
369 template<
typename UlimitsT = Aws::Vector<Ulimit>>
370 void SetUlimits(UlimitsT&& value) { m_ulimitsHasBeenSet =
true; m_ulimits = std::forward<UlimitsT>(value); }
371 template<
typename UlimitsT = Aws::Vector<Ulimit>>
373 template<
typename UlimitsT = Ulimit>
394 template<
typename UserT = Aws::String>
395 void SetUser(UserT&& value) { m_userHasBeenSet =
true; m_user = std::forward<UserT>(value); }
396 template<
typename UserT = Aws::String>
406 inline void SetExitCode(
int value) { m_exitCodeHasBeenSet =
true; m_exitCode = value; }
417 template<
typename ReasonT = Aws::String>
418 void SetReason(ReasonT&& value) { m_reasonHasBeenSet =
true; m_reason = std::forward<ReasonT>(value); }
419 template<
typename ReasonT = Aws::String>
432 template<
typename LogStreamNameT = Aws::String>
433 void SetLogStreamName(LogStreamNameT&& value) { m_logStreamNameHasBeenSet =
true; m_logStreamName = std::forward<LogStreamNameT>(value); }
434 template<
typename LogStreamNameT = Aws::String>
444 template<
typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
445 void SetNetworkInterfaces(NetworkInterfacesT&& value) { m_networkInterfacesHasBeenSet =
true; m_networkInterfaces = std::forward<NetworkInterfacesT>(value); }
446 template<
typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
448 template<
typename NetworkInterfacesT = NetworkInterface>
454 bool m_commandHasBeenSet =
false;
457 bool m_dependsOnHasBeenSet =
false;
460 bool m_environmentHasBeenSet =
false;
462 bool m_essential{
false};
463 bool m_essentialHasBeenSet =
false;
465 FirelensConfiguration m_firelensConfiguration;
466 bool m_firelensConfigurationHasBeenSet =
false;
469 bool m_imageHasBeenSet =
false;
471 LinuxParameters m_linuxParameters;
472 bool m_linuxParametersHasBeenSet =
false;
474 LogConfiguration m_logConfiguration;
475 bool m_logConfigurationHasBeenSet =
false;
478 bool m_mountPointsHasBeenSet =
false;
481 bool m_nameHasBeenSet =
false;
483 bool m_privileged{
false};
484 bool m_privilegedHasBeenSet =
false;
486 bool m_readonlyRootFilesystem{
false};
487 bool m_readonlyRootFilesystemHasBeenSet =
false;
489 RepositoryCredentials m_repositoryCredentials;
490 bool m_repositoryCredentialsHasBeenSet =
false;
493 bool m_resourceRequirementsHasBeenSet =
false;
496 bool m_secretsHasBeenSet =
false;
499 bool m_ulimitsHasBeenSet =
false;
502 bool m_userHasBeenSet =
false;
505 bool m_exitCodeHasBeenSet =
false;
508 bool m_reasonHasBeenSet =
false;
511 bool m_logStreamNameHasBeenSet =
false;
514 bool m_networkInterfacesHasBeenSet =
false;
void SetLinuxParameters(LinuxParametersT &&value)
bool UlimitsHasBeenSet() const
const Aws::Vector< Aws::String > & GetCommand() const
TaskContainerDetails & WithDependsOn(DependsOnT &&value)
bool LogStreamNameHasBeenSet() const
bool GetPrivileged() const
bool ExitCodeHasBeenSet() const
bool NameHasBeenSet() const
const Aws::Vector< ResourceRequirement > & GetResourceRequirements() const
TaskContainerDetails & AddDependsOn(DependsOnT &&value)
TaskContainerDetails & WithMountPoints(MountPointsT &&value)
TaskContainerDetails & WithLogStreamName(LogStreamNameT &&value)
void SetUlimits(UlimitsT &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetImage(ImageT &&value)
const Aws::String & GetLogStreamName() const
const Aws::Vector< TaskContainerDependency > & GetDependsOn() const
TaskContainerDetails & WithNetworkInterfaces(NetworkInterfacesT &&value)
void SetReason(ReasonT &&value)
void SetName(NameT &&value)
void SetNetworkInterfaces(NetworkInterfacesT &&value)
bool GetEssential() const
TaskContainerDetails & WithLinuxParameters(LinuxParametersT &&value)
TaskContainerDetails & WithReason(ReasonT &&value)
const Aws::String & GetReason() const
void SetPrivileged(bool value)
const FirelensConfiguration & GetFirelensConfiguration() const
const Aws::Vector< KeyValuePair > & GetEnvironment() const
void SetLogConfiguration(LogConfigurationT &&value)
TaskContainerDetails & WithFirelensConfiguration(FirelensConfigurationT &&value)
const RepositoryCredentials & GetRepositoryCredentials() const
bool SecretsHasBeenSet() const
TaskContainerDetails & WithEssential(bool value)
void SetCommand(CommandT &&value)
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
TaskContainerDetails & WithPrivileged(bool value)
bool ReadonlyRootFilesystemHasBeenSet() const
TaskContainerDetails & WithUser(UserT &&value)
const Aws::String & GetUser() const
void SetRepositoryCredentials(RepositoryCredentialsT &&value)
void SetReadonlyRootFilesystem(bool value)
bool GetReadonlyRootFilesystem() const
TaskContainerDetails & AddUlimits(UlimitsT &&value)
bool RepositoryCredentialsHasBeenSet() const
bool LogConfigurationHasBeenSet() const
const LinuxParameters & GetLinuxParameters() const
void SetDependsOn(DependsOnT &&value)
void SetLogStreamName(LogStreamNameT &&value)
TaskContainerDetails & WithName(NameT &&value)
AWS_BATCH_API TaskContainerDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const LogConfiguration & GetLogConfiguration() const
TaskContainerDetails & WithEnvironment(EnvironmentT &&value)
bool EnvironmentHasBeenSet() const
TaskContainerDetails & WithExitCode(int value)
AWS_BATCH_API TaskContainerDetails(Aws::Utils::Json::JsonView jsonValue)
bool EssentialHasBeenSet() const
TaskContainerDetails & AddNetworkInterfaces(NetworkInterfacesT &&value)
bool ReasonHasBeenSet() const
TaskContainerDetails & AddEnvironment(EnvironmentT &&value)
void SetSecrets(SecretsT &&value)
TaskContainerDetails & AddResourceRequirements(ResourceRequirementsT &&value)
bool DependsOnHasBeenSet() const
const Aws::String & GetName() const
const Aws::Vector< Secret > & GetSecrets() const
bool PrivilegedHasBeenSet() const
void SetExitCode(int value)
TaskContainerDetails & WithCommand(CommandT &&value)
const Aws::Vector< MountPoint > & GetMountPoints() const
bool LinuxParametersHasBeenSet() const
TaskContainerDetails & AddCommand(CommandT &&value)
AWS_BATCH_API TaskContainerDetails()=default
TaskContainerDetails & WithLogConfiguration(LogConfigurationT &&value)
bool ImageHasBeenSet() const
const Aws::String & GetImage() const
bool NetworkInterfacesHasBeenSet() const
TaskContainerDetails & WithRepositoryCredentials(RepositoryCredentialsT &&value)
TaskContainerDetails & WithReadonlyRootFilesystem(bool value)
void SetEssential(bool value)
void SetMountPoints(MountPointsT &&value)
bool UserHasBeenSet() const
bool CommandHasBeenSet() const
TaskContainerDetails & WithImage(ImageT &&value)
TaskContainerDetails & WithResourceRequirements(ResourceRequirementsT &&value)
TaskContainerDetails & WithSecrets(SecretsT &&value)
void SetUser(UserT &&value)
bool FirelensConfigurationHasBeenSet() const
void SetEnvironment(EnvironmentT &&value)
TaskContainerDetails & AddMountPoints(MountPointsT &&value)
TaskContainerDetails & WithUlimits(UlimitsT &&value)
void SetResourceRequirements(ResourceRequirementsT &&value)
const Aws::Vector< Ulimit > & GetUlimits() const
bool ResourceRequirementsHasBeenSet() const
bool MountPointsHasBeenSet() const
void SetFirelensConfiguration(FirelensConfigurationT &&value)
TaskContainerDetails & AddSecrets(SecretsT &&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