AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TaskContainerDetails.h
1
6#pragma once
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>
21#include <utility>
22
23namespace Aws
24{
25namespace Utils
26{
27namespace Json
28{
29 class JsonValue;
30 class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace Batch
34{
35namespace Model
36{
37
45 {
46 public:
47 AWS_BATCH_API TaskContainerDetails() = default;
50 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
65 inline const Aws::Vector<Aws::String>& GetCommand() const { return m_command; }
66 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
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>>
70 TaskContainerDetails& WithCommand(CommandT&& value) { SetCommand(std::forward<CommandT>(value)); return *this;}
71 template<typename CommandT = Aws::String>
72 TaskContainerDetails& AddCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command.emplace_back(std::forward<CommandT>(value)); return *this; }
74
76
79 inline const Aws::Vector<TaskContainerDependency>& GetDependsOn() const { return m_dependsOn; }
80 inline bool DependsOnHasBeenSet() const { return m_dependsOnHasBeenSet; }
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>>
84 TaskContainerDetails& WithDependsOn(DependsOnT&& value) { SetDependsOn(std::forward<DependsOnT>(value)); return *this;}
85 template<typename DependsOnT = TaskContainerDependency>
86 TaskContainerDetails& AddDependsOn(DependsOnT&& value) { m_dependsOnHasBeenSet = true; m_dependsOn.emplace_back(std::forward<DependsOnT>(value)); return *this; }
88
90
101 inline const Aws::Vector<KeyValuePair>& GetEnvironment() const { return m_environment; }
102 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
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>>
106 TaskContainerDetails& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
107 template<typename EnvironmentT = KeyValuePair>
108 TaskContainerDetails& AddEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment.emplace_back(std::forward<EnvironmentT>(value)); return *this; }
110
112
126 inline bool GetEssential() const { return m_essential; }
127 inline bool EssentialHasBeenSet() const { return m_essentialHasBeenSet; }
128 inline void SetEssential(bool value) { m_essentialHasBeenSet = true; m_essential = value; }
129 inline TaskContainerDetails& WithEssential(bool value) { SetEssential(value); return *this;}
131
133
140 inline const FirelensConfiguration& GetFirelensConfiguration() const { return m_firelensConfiguration; }
141 inline bool FirelensConfigurationHasBeenSet() const { return m_firelensConfigurationHasBeenSet; }
142 template<typename FirelensConfigurationT = FirelensConfiguration>
143 void SetFirelensConfiguration(FirelensConfigurationT&& value) { m_firelensConfigurationHasBeenSet = true; m_firelensConfiguration = std::forward<FirelensConfigurationT>(value); }
144 template<typename FirelensConfigurationT = FirelensConfiguration>
145 TaskContainerDetails& WithFirelensConfiguration(FirelensConfigurationT&& value) { SetFirelensConfiguration(std::forward<FirelensConfigurationT>(value)); return *this;}
147
149
164 inline const Aws::String& GetImage() const { return m_image; }
165 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
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>
169 TaskContainerDetails& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
171
173
179 inline const LinuxParameters& GetLinuxParameters() const { return m_linuxParameters; }
180 inline bool LinuxParametersHasBeenSet() const { return m_linuxParametersHasBeenSet; }
181 template<typename LinuxParametersT = LinuxParameters>
182 void SetLinuxParameters(LinuxParametersT&& value) { m_linuxParametersHasBeenSet = true; m_linuxParameters = std::forward<LinuxParametersT>(value); }
183 template<typename LinuxParametersT = LinuxParameters>
184 TaskContainerDetails& WithLinuxParameters(LinuxParametersT&& value) { SetLinuxParameters(std::forward<LinuxParametersT>(value)); return *this;}
186
188
221 inline const LogConfiguration& GetLogConfiguration() const { return m_logConfiguration; }
222 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
223 template<typename LogConfigurationT = LogConfiguration>
224 void SetLogConfiguration(LogConfigurationT&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::forward<LogConfigurationT>(value); }
225 template<typename LogConfigurationT = LogConfiguration>
226 TaskContainerDetails& WithLogConfiguration(LogConfigurationT&& value) { SetLogConfiguration(std::forward<LogConfigurationT>(value)); return *this;}
228
230
242 inline const Aws::Vector<MountPoint>& GetMountPoints() const { return m_mountPoints; }
243 inline bool MountPointsHasBeenSet() const { return m_mountPointsHasBeenSet; }
244 template<typename MountPointsT = Aws::Vector<MountPoint>>
245 void SetMountPoints(MountPointsT&& value) { m_mountPointsHasBeenSet = true; m_mountPoints = std::forward<MountPointsT>(value); }
246 template<typename MountPointsT = Aws::Vector<MountPoint>>
247 TaskContainerDetails& WithMountPoints(MountPointsT&& value) { SetMountPoints(std::forward<MountPointsT>(value)); return *this;}
248 template<typename MountPointsT = MountPoint>
249 TaskContainerDetails& AddMountPoints(MountPointsT&& value) { m_mountPointsHasBeenSet = true; m_mountPoints.emplace_back(std::forward<MountPointsT>(value)); return *this; }
251
253
256 inline const Aws::String& GetName() const { return m_name; }
257 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
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>
261 TaskContainerDetails& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
263
265
277 inline bool GetPrivileged() const { return m_privileged; }
278 inline bool PrivilegedHasBeenSet() const { return m_privilegedHasBeenSet; }
279 inline void SetPrivileged(bool value) { m_privilegedHasBeenSet = true; m_privileged = value; }
280 inline TaskContainerDetails& WithPrivileged(bool value) { SetPrivileged(value); return *this;}
282
284
295 inline bool GetReadonlyRootFilesystem() const { return m_readonlyRootFilesystem; }
296 inline bool ReadonlyRootFilesystemHasBeenSet() const { return m_readonlyRootFilesystemHasBeenSet; }
297 inline void SetReadonlyRootFilesystem(bool value) { m_readonlyRootFilesystemHasBeenSet = true; m_readonlyRootFilesystem = value; }
300
302
305 inline const RepositoryCredentials& GetRepositoryCredentials() const { return m_repositoryCredentials; }
306 inline bool RepositoryCredentialsHasBeenSet() const { return m_repositoryCredentialsHasBeenSet; }
307 template<typename RepositoryCredentialsT = RepositoryCredentials>
308 void SetRepositoryCredentials(RepositoryCredentialsT&& value) { m_repositoryCredentialsHasBeenSet = true; m_repositoryCredentials = std::forward<RepositoryCredentialsT>(value); }
309 template<typename RepositoryCredentialsT = RepositoryCredentials>
310 TaskContainerDetails& WithRepositoryCredentials(RepositoryCredentialsT&& value) { SetRepositoryCredentials(std::forward<RepositoryCredentialsT>(value)); return *this;}
312
314
318 inline const Aws::Vector<ResourceRequirement>& GetResourceRequirements() const { return m_resourceRequirements; }
319 inline bool ResourceRequirementsHasBeenSet() const { return m_resourceRequirementsHasBeenSet; }
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>>
323 TaskContainerDetails& WithResourceRequirements(ResourceRequirementsT&& value) { SetResourceRequirements(std::forward<ResourceRequirementsT>(value)); return *this;}
324 template<typename ResourceRequirementsT = ResourceRequirement>
325 TaskContainerDetails& AddResourceRequirements(ResourceRequirementsT&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.emplace_back(std::forward<ResourceRequirementsT>(value)); return *this; }
327
329
334 inline const Aws::Vector<Secret>& GetSecrets() const { return m_secrets; }
335 inline bool SecretsHasBeenSet() const { return m_secretsHasBeenSet; }
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>>
339 TaskContainerDetails& WithSecrets(SecretsT&& value) { SetSecrets(std::forward<SecretsT>(value)); return *this;}
340 template<typename SecretsT = Secret>
341 TaskContainerDetails& AddSecrets(SecretsT&& value) { m_secretsHasBeenSet = true; m_secrets.emplace_back(std::forward<SecretsT>(value)); return *this; }
343
345
367 inline const Aws::Vector<Ulimit>& GetUlimits() const { return m_ulimits; }
368 inline bool UlimitsHasBeenSet() const { return m_ulimitsHasBeenSet; }
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>>
372 TaskContainerDetails& WithUlimits(UlimitsT&& value) { SetUlimits(std::forward<UlimitsT>(value)); return *this;}
373 template<typename UlimitsT = Ulimit>
374 TaskContainerDetails& AddUlimits(UlimitsT&& value) { m_ulimitsHasBeenSet = true; m_ulimits.emplace_back(std::forward<UlimitsT>(value)); return *this; }
376
378
392 inline const Aws::String& GetUser() const { return m_user; }
393 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
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>
397 TaskContainerDetails& WithUser(UserT&& value) { SetUser(std::forward<UserT>(value)); return *this;}
399
401
404 inline int GetExitCode() const { return m_exitCode; }
405 inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
406 inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; }
407 inline TaskContainerDetails& WithExitCode(int value) { SetExitCode(value); return *this;}
409
411
415 inline const Aws::String& GetReason() const { return m_reason; }
416 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
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>
420 TaskContainerDetails& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
422
424
430 inline const Aws::String& GetLogStreamName() const { return m_logStreamName; }
431 inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; }
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>
435 TaskContainerDetails& WithLogStreamName(LogStreamNameT&& value) { SetLogStreamName(std::forward<LogStreamNameT>(value)); return *this;}
437
439
442 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const { return m_networkInterfaces; }
443 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
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>>
447 TaskContainerDetails& WithNetworkInterfaces(NetworkInterfacesT&& value) { SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value)); return *this;}
448 template<typename NetworkInterfacesT = NetworkInterface>
449 TaskContainerDetails& AddNetworkInterfaces(NetworkInterfacesT&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value)); return *this; }
451 private:
452
453 Aws::Vector<Aws::String> m_command;
454 bool m_commandHasBeenSet = false;
455
457 bool m_dependsOnHasBeenSet = false;
458
459 Aws::Vector<KeyValuePair> m_environment;
460 bool m_environmentHasBeenSet = false;
461
462 bool m_essential{false};
463 bool m_essentialHasBeenSet = false;
464
465 FirelensConfiguration m_firelensConfiguration;
466 bool m_firelensConfigurationHasBeenSet = false;
467
468 Aws::String m_image;
469 bool m_imageHasBeenSet = false;
470
471 LinuxParameters m_linuxParameters;
472 bool m_linuxParametersHasBeenSet = false;
473
474 LogConfiguration m_logConfiguration;
475 bool m_logConfigurationHasBeenSet = false;
476
477 Aws::Vector<MountPoint> m_mountPoints;
478 bool m_mountPointsHasBeenSet = false;
479
480 Aws::String m_name;
481 bool m_nameHasBeenSet = false;
482
483 bool m_privileged{false};
484 bool m_privilegedHasBeenSet = false;
485
486 bool m_readonlyRootFilesystem{false};
487 bool m_readonlyRootFilesystemHasBeenSet = false;
488
489 RepositoryCredentials m_repositoryCredentials;
490 bool m_repositoryCredentialsHasBeenSet = false;
491
492 Aws::Vector<ResourceRequirement> m_resourceRequirements;
493 bool m_resourceRequirementsHasBeenSet = false;
494
495 Aws::Vector<Secret> m_secrets;
496 bool m_secretsHasBeenSet = false;
497
498 Aws::Vector<Ulimit> m_ulimits;
499 bool m_ulimitsHasBeenSet = false;
500
501 Aws::String m_user;
502 bool m_userHasBeenSet = false;
503
504 int m_exitCode{0};
505 bool m_exitCodeHasBeenSet = false;
506
507 Aws::String m_reason;
508 bool m_reasonHasBeenSet = false;
509
510 Aws::String m_logStreamName;
511 bool m_logStreamNameHasBeenSet = false;
512
513 Aws::Vector<NetworkInterface> m_networkInterfaces;
514 bool m_networkInterfacesHasBeenSet = false;
515 };
516
517} // namespace Model
518} // namespace Batch
519} // namespace Aws
void SetLinuxParameters(LinuxParametersT &&value)
const Aws::Vector< Aws::String > & GetCommand() const
TaskContainerDetails & WithDependsOn(DependsOnT &&value)
const Aws::Vector< ResourceRequirement > & GetResourceRequirements() const
TaskContainerDetails & AddDependsOn(DependsOnT &&value)
TaskContainerDetails & WithMountPoints(MountPointsT &&value)
TaskContainerDetails & WithLogStreamName(LogStreamNameT &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< TaskContainerDependency > & GetDependsOn() const
TaskContainerDetails & WithNetworkInterfaces(NetworkInterfacesT &&value)
void SetNetworkInterfaces(NetworkInterfacesT &&value)
TaskContainerDetails & WithLinuxParameters(LinuxParametersT &&value)
TaskContainerDetails & WithReason(ReasonT &&value)
const FirelensConfiguration & GetFirelensConfiguration() const
const Aws::Vector< KeyValuePair > & GetEnvironment() const
void SetLogConfiguration(LogConfigurationT &&value)
TaskContainerDetails & WithFirelensConfiguration(FirelensConfigurationT &&value)
const RepositoryCredentials & GetRepositoryCredentials() const
TaskContainerDetails & WithEssential(bool value)
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
TaskContainerDetails & WithPrivileged(bool value)
TaskContainerDetails & WithUser(UserT &&value)
void SetRepositoryCredentials(RepositoryCredentialsT &&value)
TaskContainerDetails & AddUlimits(UlimitsT &&value)
const LinuxParameters & GetLinuxParameters() const
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)
TaskContainerDetails & WithExitCode(int value)
AWS_BATCH_API TaskContainerDetails(Aws::Utils::Json::JsonView jsonValue)
TaskContainerDetails & AddNetworkInterfaces(NetworkInterfacesT &&value)
TaskContainerDetails & AddEnvironment(EnvironmentT &&value)
TaskContainerDetails & AddResourceRequirements(ResourceRequirementsT &&value)
const Aws::Vector< Secret > & GetSecrets() const
TaskContainerDetails & WithCommand(CommandT &&value)
const Aws::Vector< MountPoint > & GetMountPoints() const
TaskContainerDetails & AddCommand(CommandT &&value)
AWS_BATCH_API TaskContainerDetails()=default
TaskContainerDetails & WithLogConfiguration(LogConfigurationT &&value)
TaskContainerDetails & WithRepositoryCredentials(RepositoryCredentialsT &&value)
TaskContainerDetails & WithReadonlyRootFilesystem(bool value)
TaskContainerDetails & WithImage(ImageT &&value)
TaskContainerDetails & WithResourceRequirements(ResourceRequirementsT &&value)
TaskContainerDetails & WithSecrets(SecretsT &&value)
TaskContainerDetails & AddMountPoints(MountPointsT &&value)
TaskContainerDetails & WithUlimits(UlimitsT &&value)
void SetResourceRequirements(ResourceRequirementsT &&value)
const Aws::Vector< Ulimit > & GetUlimits() 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