AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TaskContainerProperties.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 <utility>
21
22namespace Aws
23{
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29 class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace Batch
33{
34namespace Model
35{
36
45 {
46 public:
47 AWS_BATCH_API TaskContainerProperties() = default;
50 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
66 inline const Aws::Vector<Aws::String>& GetCommand() const { return m_command; }
67 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
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>>
71 TaskContainerProperties& WithCommand(CommandT&& value) { SetCommand(std::forward<CommandT>(value)); return *this;}
72 template<typename CommandT = Aws::String>
73 TaskContainerProperties& AddCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command.emplace_back(std::forward<CommandT>(value)); return *this; }
75
77
80 inline const Aws::Vector<TaskContainerDependency>& GetDependsOn() const { return m_dependsOn; }
81 inline bool DependsOnHasBeenSet() const { return m_dependsOnHasBeenSet; }
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>>
85 TaskContainerProperties& WithDependsOn(DependsOnT&& value) { SetDependsOn(std::forward<DependsOnT>(value)); return *this;}
86 template<typename DependsOnT = TaskContainerDependency>
87 TaskContainerProperties& AddDependsOn(DependsOnT&& value) { m_dependsOnHasBeenSet = true; m_dependsOn.emplace_back(std::forward<DependsOnT>(value)); return *this; }
89
91
104 inline const Aws::Vector<KeyValuePair>& GetEnvironment() const { return m_environment; }
105 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
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>>
109 TaskContainerProperties& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
110 template<typename EnvironmentT = KeyValuePair>
111 TaskContainerProperties& AddEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment.emplace_back(std::forward<EnvironmentT>(value)); return *this; }
113
115
129 inline bool GetEssential() const { return m_essential; }
130 inline bool EssentialHasBeenSet() const { return m_essentialHasBeenSet; }
131 inline void SetEssential(bool value) { m_essentialHasBeenSet = true; m_essential = value; }
132 inline TaskContainerProperties& WithEssential(bool value) { SetEssential(value); return *this;}
134
136
143 inline const FirelensConfiguration& GetFirelensConfiguration() const { return m_firelensConfiguration; }
144 inline bool FirelensConfigurationHasBeenSet() const { return m_firelensConfigurationHasBeenSet; }
145 template<typename FirelensConfigurationT = FirelensConfiguration>
146 void SetFirelensConfiguration(FirelensConfigurationT&& value) { m_firelensConfigurationHasBeenSet = true; m_firelensConfiguration = std::forward<FirelensConfigurationT>(value); }
147 template<typename FirelensConfigurationT = FirelensConfiguration>
148 TaskContainerProperties& WithFirelensConfiguration(FirelensConfigurationT&& value) { SetFirelensConfiguration(std::forward<FirelensConfigurationT>(value)); return *this;}
150
152
167 inline const Aws::String& GetImage() const { return m_image; }
168 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
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>
172 TaskContainerProperties& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
174
176
181 inline const LinuxParameters& GetLinuxParameters() const { return m_linuxParameters; }
182 inline bool LinuxParametersHasBeenSet() const { return m_linuxParametersHasBeenSet; }
183 template<typename LinuxParametersT = LinuxParameters>
184 void SetLinuxParameters(LinuxParametersT&& value) { m_linuxParametersHasBeenSet = true; m_linuxParameters = std::forward<LinuxParametersT>(value); }
185 template<typename LinuxParametersT = LinuxParameters>
186 TaskContainerProperties& WithLinuxParameters(LinuxParametersT&& value) { SetLinuxParameters(std::forward<LinuxParametersT>(value)); return *this;}
188
190
223 inline const LogConfiguration& GetLogConfiguration() const { return m_logConfiguration; }
224 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
225 template<typename LogConfigurationT = LogConfiguration>
226 void SetLogConfiguration(LogConfigurationT&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::forward<LogConfigurationT>(value); }
227 template<typename LogConfigurationT = LogConfiguration>
228 TaskContainerProperties& WithLogConfiguration(LogConfigurationT&& value) { SetLogConfiguration(std::forward<LogConfigurationT>(value)); return *this;}
230
232
244 inline const Aws::Vector<MountPoint>& GetMountPoints() const { return m_mountPoints; }
245 inline bool MountPointsHasBeenSet() const { return m_mountPointsHasBeenSet; }
246 template<typename MountPointsT = Aws::Vector<MountPoint>>
247 void SetMountPoints(MountPointsT&& value) { m_mountPointsHasBeenSet = true; m_mountPoints = std::forward<MountPointsT>(value); }
248 template<typename MountPointsT = Aws::Vector<MountPoint>>
249 TaskContainerProperties& WithMountPoints(MountPointsT&& value) { SetMountPoints(std::forward<MountPointsT>(value)); return *this;}
250 template<typename MountPointsT = MountPoint>
251 TaskContainerProperties& AddMountPoints(MountPointsT&& value) { m_mountPointsHasBeenSet = true; m_mountPoints.emplace_back(std::forward<MountPointsT>(value)); return *this; }
253
255
259 inline const Aws::String& GetName() const { return m_name; }
260 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
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>
264 TaskContainerProperties& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
266
268
280 inline bool GetPrivileged() const { return m_privileged; }
281 inline bool PrivilegedHasBeenSet() const { return m_privilegedHasBeenSet; }
282 inline void SetPrivileged(bool value) { m_privilegedHasBeenSet = true; m_privileged = value; }
283 inline TaskContainerProperties& WithPrivileged(bool value) { SetPrivileged(value); return *this;}
285
287
298 inline bool GetReadonlyRootFilesystem() const { return m_readonlyRootFilesystem; }
299 inline bool ReadonlyRootFilesystemHasBeenSet() const { return m_readonlyRootFilesystemHasBeenSet; }
300 inline void SetReadonlyRootFilesystem(bool value) { m_readonlyRootFilesystemHasBeenSet = true; m_readonlyRootFilesystem = value; }
303
305
308 inline const RepositoryCredentials& GetRepositoryCredentials() const { return m_repositoryCredentials; }
309 inline bool RepositoryCredentialsHasBeenSet() const { return m_repositoryCredentialsHasBeenSet; }
310 template<typename RepositoryCredentialsT = RepositoryCredentials>
311 void SetRepositoryCredentials(RepositoryCredentialsT&& value) { m_repositoryCredentialsHasBeenSet = true; m_repositoryCredentials = std::forward<RepositoryCredentialsT>(value); }
312 template<typename RepositoryCredentialsT = RepositoryCredentials>
313 TaskContainerProperties& WithRepositoryCredentials(RepositoryCredentialsT&& value) { SetRepositoryCredentials(std::forward<RepositoryCredentialsT>(value)); return *this;}
315
317
321 inline const Aws::Vector<ResourceRequirement>& GetResourceRequirements() const { return m_resourceRequirements; }
322 inline bool ResourceRequirementsHasBeenSet() const { return m_resourceRequirementsHasBeenSet; }
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>>
326 TaskContainerProperties& WithResourceRequirements(ResourceRequirementsT&& value) { SetResourceRequirements(std::forward<ResourceRequirementsT>(value)); return *this;}
327 template<typename ResourceRequirementsT = ResourceRequirement>
328 TaskContainerProperties& AddResourceRequirements(ResourceRequirementsT&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.emplace_back(std::forward<ResourceRequirementsT>(value)); return *this; }
330
332
337 inline const Aws::Vector<Secret>& GetSecrets() const { return m_secrets; }
338 inline bool SecretsHasBeenSet() const { return m_secretsHasBeenSet; }
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>>
342 TaskContainerProperties& WithSecrets(SecretsT&& value) { SetSecrets(std::forward<SecretsT>(value)); return *this;}
343 template<typename SecretsT = Secret>
344 TaskContainerProperties& AddSecrets(SecretsT&& value) { m_secretsHasBeenSet = true; m_secrets.emplace_back(std::forward<SecretsT>(value)); return *this; }
346
348
370 inline const Aws::Vector<Ulimit>& GetUlimits() const { return m_ulimits; }
371 inline bool UlimitsHasBeenSet() const { return m_ulimitsHasBeenSet; }
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>>
375 TaskContainerProperties& WithUlimits(UlimitsT&& value) { SetUlimits(std::forward<UlimitsT>(value)); return *this;}
376 template<typename UlimitsT = Ulimit>
377 TaskContainerProperties& AddUlimits(UlimitsT&& value) { m_ulimitsHasBeenSet = true; m_ulimits.emplace_back(std::forward<UlimitsT>(value)); return *this; }
379
381
395 inline const Aws::String& GetUser() const { return m_user; }
396 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
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>
400 TaskContainerProperties& WithUser(UserT&& value) { SetUser(std::forward<UserT>(value)); return *this;}
402 private:
403
404 Aws::Vector<Aws::String> m_command;
405 bool m_commandHasBeenSet = false;
406
408 bool m_dependsOnHasBeenSet = false;
409
410 Aws::Vector<KeyValuePair> m_environment;
411 bool m_environmentHasBeenSet = false;
412
413 bool m_essential{false};
414 bool m_essentialHasBeenSet = false;
415
416 FirelensConfiguration m_firelensConfiguration;
417 bool m_firelensConfigurationHasBeenSet = false;
418
419 Aws::String m_image;
420 bool m_imageHasBeenSet = false;
421
422 LinuxParameters m_linuxParameters;
423 bool m_linuxParametersHasBeenSet = false;
424
425 LogConfiguration m_logConfiguration;
426 bool m_logConfigurationHasBeenSet = false;
427
428 Aws::Vector<MountPoint> m_mountPoints;
429 bool m_mountPointsHasBeenSet = false;
430
431 Aws::String m_name;
432 bool m_nameHasBeenSet = false;
433
434 bool m_privileged{false};
435 bool m_privilegedHasBeenSet = false;
436
437 bool m_readonlyRootFilesystem{false};
438 bool m_readonlyRootFilesystemHasBeenSet = false;
439
440 RepositoryCredentials m_repositoryCredentials;
441 bool m_repositoryCredentialsHasBeenSet = false;
442
443 Aws::Vector<ResourceRequirement> m_resourceRequirements;
444 bool m_resourceRequirementsHasBeenSet = false;
445
446 Aws::Vector<Secret> m_secrets;
447 bool m_secretsHasBeenSet = false;
448
449 Aws::Vector<Ulimit> m_ulimits;
450 bool m_ulimitsHasBeenSet = false;
451
452 Aws::String m_user;
453 bool m_userHasBeenSet = false;
454 };
455
456} // namespace Model
457} // namespace Batch
458} // namespace Aws
const Aws::Vector< ResourceRequirement > & GetResourceRequirements() const
TaskContainerProperties & WithFirelensConfiguration(FirelensConfigurationT &&value)
TaskContainerProperties & WithResourceRequirements(ResourceRequirementsT &&value)
const Aws::Vector< Secret > & GetSecrets() const
void SetResourceRequirements(ResourceRequirementsT &&value)
TaskContainerProperties & WithPrivileged(bool value)
TaskContainerProperties & WithCommand(CommandT &&value)
const RepositoryCredentials & GetRepositoryCredentials() const
TaskContainerProperties & WithName(NameT &&value)
const Aws::Vector< TaskContainerDependency > & GetDependsOn() 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)
void SetLogConfiguration(LogConfigurationT &&value)
TaskContainerProperties & WithRepositoryCredentials(RepositoryCredentialsT &&value)
AWS_BATCH_API TaskContainerProperties(Aws::Utils::Json::JsonView jsonValue)
TaskContainerProperties & WithUlimits(UlimitsT &&value)
TaskContainerProperties & WithReadonlyRootFilesystem(bool value)
TaskContainerProperties & AddCommand(CommandT &&value)
const Aws::Vector< Ulimit > & GetUlimits() const
const FirelensConfiguration & GetFirelensConfiguration() const
TaskContainerProperties & WithEnvironment(EnvironmentT &&value)
void SetRepositoryCredentials(RepositoryCredentialsT &&value)
const Aws::Vector< KeyValuePair > & GetEnvironment() const
TaskContainerProperties & WithMountPoints(MountPointsT &&value)
AWS_BATCH_API TaskContainerProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
TaskContainerProperties & AddResourceRequirements(ResourceRequirementsT &&value)
TaskContainerProperties & WithEssential(bool value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
TaskContainerProperties & AddMountPoints(MountPointsT &&value)
const LogConfiguration & GetLogConfiguration() const
TaskContainerProperties & WithDependsOn(DependsOnT &&value)
TaskContainerProperties & WithImage(ImageT &&value)
const Aws::Vector< MountPoint > & GetMountPoints() const
TaskContainerProperties & WithLogConfiguration(LogConfigurationT &&value)
TaskContainerProperties & WithSecrets(SecretsT &&value)
TaskContainerProperties & AddUlimits(UlimitsT &&value)
TaskContainerProperties & 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