AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/core/utils/memory/stl/AWSString.h>
10#include <aws/batch/model/LinuxParameters.h>
11#include <aws/batch/model/LogConfiguration.h>
12#include <aws/batch/model/RepositoryCredentials.h>
13#include <aws/batch/model/TaskContainerDependency.h>
14#include <aws/batch/model/KeyValuePair.h>
15#include <aws/batch/model/MountPoint.h>
16#include <aws/batch/model/ResourceRequirement.h>
17#include <aws/batch/model/Secret.h>
18#include <aws/batch/model/Ulimit.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28 class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace Batch
32{
33namespace Model
34{
35
44 {
45 public:
46 AWS_BATCH_API TaskContainerProperties();
49 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
65 inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
66 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
67 inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
68 inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
69 inline TaskContainerProperties& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
70 inline TaskContainerProperties& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
71 inline TaskContainerProperties& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
72 inline TaskContainerProperties& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
73 inline TaskContainerProperties& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(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 inline void SetDependsOn(const Aws::Vector<TaskContainerDependency>& value) { m_dependsOnHasBeenSet = true; m_dependsOn = value; }
83 inline void SetDependsOn(Aws::Vector<TaskContainerDependency>&& value) { m_dependsOnHasBeenSet = true; m_dependsOn = std::move(value); }
86 inline TaskContainerProperties& AddDependsOn(const TaskContainerDependency& value) { m_dependsOnHasBeenSet = true; m_dependsOn.push_back(value); return *this; }
87 inline TaskContainerProperties& AddDependsOn(TaskContainerDependency&& value) { m_dependsOnHasBeenSet = true; m_dependsOn.push_back(std::move(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 inline void SetEnvironment(const Aws::Vector<KeyValuePair>& value) { m_environmentHasBeenSet = true; m_environment = value; }
107 inline void SetEnvironment(Aws::Vector<KeyValuePair>&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
109 inline TaskContainerProperties& WithEnvironment(Aws::Vector<KeyValuePair>&& value) { SetEnvironment(std::move(value)); return *this;}
110 inline TaskContainerProperties& AddEnvironment(const KeyValuePair& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; }
111 inline TaskContainerProperties& AddEnvironment(KeyValuePair&& value) { m_environmentHasBeenSet = true; m_environment.push_back(std::move(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
151 inline const Aws::String& GetImage() const{ return m_image; }
152 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
153 inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; }
154 inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
155 inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); }
156 inline TaskContainerProperties& WithImage(const Aws::String& value) { SetImage(value); return *this;}
157 inline TaskContainerProperties& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;}
158 inline TaskContainerProperties& WithImage(const char* value) { SetImage(value); return *this;}
160
162
167 inline const LinuxParameters& GetLinuxParameters() const{ return m_linuxParameters; }
168 inline bool LinuxParametersHasBeenSet() const { return m_linuxParametersHasBeenSet; }
169 inline void SetLinuxParameters(const LinuxParameters& value) { m_linuxParametersHasBeenSet = true; m_linuxParameters = value; }
170 inline void SetLinuxParameters(LinuxParameters&& value) { m_linuxParametersHasBeenSet = true; m_linuxParameters = std::move(value); }
172 inline TaskContainerProperties& WithLinuxParameters(LinuxParameters&& value) { SetLinuxParameters(std::move(value)); return *this;}
174
176
209 inline const LogConfiguration& GetLogConfiguration() const{ return m_logConfiguration; }
210 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
211 inline void SetLogConfiguration(const LogConfiguration& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = value; }
212 inline void SetLogConfiguration(LogConfiguration&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::move(value); }
214 inline TaskContainerProperties& WithLogConfiguration(LogConfiguration&& value) { SetLogConfiguration(std::move(value)); return *this;}
216
218
230 inline const Aws::Vector<MountPoint>& GetMountPoints() const{ return m_mountPoints; }
231 inline bool MountPointsHasBeenSet() const { return m_mountPointsHasBeenSet; }
232 inline void SetMountPoints(const Aws::Vector<MountPoint>& value) { m_mountPointsHasBeenSet = true; m_mountPoints = value; }
233 inline void SetMountPoints(Aws::Vector<MountPoint>&& value) { m_mountPointsHasBeenSet = true; m_mountPoints = std::move(value); }
235 inline TaskContainerProperties& WithMountPoints(Aws::Vector<MountPoint>&& value) { SetMountPoints(std::move(value)); return *this;}
236 inline TaskContainerProperties& AddMountPoints(const MountPoint& value) { m_mountPointsHasBeenSet = true; m_mountPoints.push_back(value); return *this; }
237 inline TaskContainerProperties& AddMountPoints(MountPoint&& value) { m_mountPointsHasBeenSet = true; m_mountPoints.push_back(std::move(value)); return *this; }
239
241
245 inline const Aws::String& GetName() const{ return m_name; }
246 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
247 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
248 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
249 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
250 inline TaskContainerProperties& WithName(const Aws::String& value) { SetName(value); return *this;}
251 inline TaskContainerProperties& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
252 inline TaskContainerProperties& WithName(const char* value) { SetName(value); return *this;}
254
256
268 inline bool GetPrivileged() const{ return m_privileged; }
269 inline bool PrivilegedHasBeenSet() const { return m_privilegedHasBeenSet; }
270 inline void SetPrivileged(bool value) { m_privilegedHasBeenSet = true; m_privileged = value; }
271 inline TaskContainerProperties& WithPrivileged(bool value) { SetPrivileged(value); return *this;}
273
275
286 inline bool GetReadonlyRootFilesystem() const{ return m_readonlyRootFilesystem; }
287 inline bool ReadonlyRootFilesystemHasBeenSet() const { return m_readonlyRootFilesystemHasBeenSet; }
288 inline void SetReadonlyRootFilesystem(bool value) { m_readonlyRootFilesystemHasBeenSet = true; m_readonlyRootFilesystem = value; }
291
293
296 inline const RepositoryCredentials& GetRepositoryCredentials() const{ return m_repositoryCredentials; }
297 inline bool RepositoryCredentialsHasBeenSet() const { return m_repositoryCredentialsHasBeenSet; }
298 inline void SetRepositoryCredentials(const RepositoryCredentials& value) { m_repositoryCredentialsHasBeenSet = true; m_repositoryCredentials = value; }
299 inline void SetRepositoryCredentials(RepositoryCredentials&& value) { m_repositoryCredentialsHasBeenSet = true; m_repositoryCredentials = std::move(value); }
303
305
309 inline const Aws::Vector<ResourceRequirement>& GetResourceRequirements() const{ return m_resourceRequirements; }
310 inline bool ResourceRequirementsHasBeenSet() const { return m_resourceRequirementsHasBeenSet; }
311 inline void SetResourceRequirements(const Aws::Vector<ResourceRequirement>& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = value; }
312 inline void SetResourceRequirements(Aws::Vector<ResourceRequirement>&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = std::move(value); }
315 inline TaskContainerProperties& AddResourceRequirements(const ResourceRequirement& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(value); return *this; }
316 inline TaskContainerProperties& AddResourceRequirements(ResourceRequirement&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(std::move(value)); return *this; }
318
320
325 inline const Aws::Vector<Secret>& GetSecrets() const{ return m_secrets; }
326 inline bool SecretsHasBeenSet() const { return m_secretsHasBeenSet; }
327 inline void SetSecrets(const Aws::Vector<Secret>& value) { m_secretsHasBeenSet = true; m_secrets = value; }
328 inline void SetSecrets(Aws::Vector<Secret>&& value) { m_secretsHasBeenSet = true; m_secrets = std::move(value); }
329 inline TaskContainerProperties& WithSecrets(const Aws::Vector<Secret>& value) { SetSecrets(value); return *this;}
330 inline TaskContainerProperties& WithSecrets(Aws::Vector<Secret>&& value) { SetSecrets(std::move(value)); return *this;}
331 inline TaskContainerProperties& AddSecrets(const Secret& value) { m_secretsHasBeenSet = true; m_secrets.push_back(value); return *this; }
332 inline TaskContainerProperties& AddSecrets(Secret&& value) { m_secretsHasBeenSet = true; m_secrets.push_back(std::move(value)); return *this; }
334
336
358 inline const Aws::Vector<Ulimit>& GetUlimits() const{ return m_ulimits; }
359 inline bool UlimitsHasBeenSet() const { return m_ulimitsHasBeenSet; }
360 inline void SetUlimits(const Aws::Vector<Ulimit>& value) { m_ulimitsHasBeenSet = true; m_ulimits = value; }
361 inline void SetUlimits(Aws::Vector<Ulimit>&& value) { m_ulimitsHasBeenSet = true; m_ulimits = std::move(value); }
362 inline TaskContainerProperties& WithUlimits(const Aws::Vector<Ulimit>& value) { SetUlimits(value); return *this;}
363 inline TaskContainerProperties& WithUlimits(Aws::Vector<Ulimit>&& value) { SetUlimits(std::move(value)); return *this;}
364 inline TaskContainerProperties& AddUlimits(const Ulimit& value) { m_ulimitsHasBeenSet = true; m_ulimits.push_back(value); return *this; }
365 inline TaskContainerProperties& AddUlimits(Ulimit&& value) { m_ulimitsHasBeenSet = true; m_ulimits.push_back(std::move(value)); return *this; }
367
369
383 inline const Aws::String& GetUser() const{ return m_user; }
384 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
385 inline void SetUser(const Aws::String& value) { m_userHasBeenSet = true; m_user = value; }
386 inline void SetUser(Aws::String&& value) { m_userHasBeenSet = true; m_user = std::move(value); }
387 inline void SetUser(const char* value) { m_userHasBeenSet = true; m_user.assign(value); }
388 inline TaskContainerProperties& WithUser(const Aws::String& value) { SetUser(value); return *this;}
389 inline TaskContainerProperties& WithUser(Aws::String&& value) { SetUser(std::move(value)); return *this;}
390 inline TaskContainerProperties& WithUser(const char* value) { SetUser(value); return *this;}
392 private:
393
394 Aws::Vector<Aws::String> m_command;
395 bool m_commandHasBeenSet = false;
396
398 bool m_dependsOnHasBeenSet = false;
399
400 Aws::Vector<KeyValuePair> m_environment;
401 bool m_environmentHasBeenSet = false;
402
403 bool m_essential;
404 bool m_essentialHasBeenSet = false;
405
406 Aws::String m_image;
407 bool m_imageHasBeenSet = false;
408
409 LinuxParameters m_linuxParameters;
410 bool m_linuxParametersHasBeenSet = false;
411
412 LogConfiguration m_logConfiguration;
413 bool m_logConfigurationHasBeenSet = false;
414
415 Aws::Vector<MountPoint> m_mountPoints;
416 bool m_mountPointsHasBeenSet = false;
417
418 Aws::String m_name;
419 bool m_nameHasBeenSet = false;
420
421 bool m_privileged;
422 bool m_privilegedHasBeenSet = false;
423
424 bool m_readonlyRootFilesystem;
425 bool m_readonlyRootFilesystemHasBeenSet = false;
426
427 RepositoryCredentials m_repositoryCredentials;
428 bool m_repositoryCredentialsHasBeenSet = false;
429
430 Aws::Vector<ResourceRequirement> m_resourceRequirements;
431 bool m_resourceRequirementsHasBeenSet = false;
432
433 Aws::Vector<Secret> m_secrets;
434 bool m_secretsHasBeenSet = false;
435
436 Aws::Vector<Ulimit> m_ulimits;
437 bool m_ulimitsHasBeenSet = false;
438
439 Aws::String m_user;
440 bool m_userHasBeenSet = false;
441 };
442
443} // namespace Model
444} // namespace Batch
445} // namespace Aws
const Aws::Vector< ResourceRequirement > & GetResourceRequirements() const
void SetSecrets(const Aws::Vector< Secret > &value)
void SetLinuxParameters(const LinuxParameters &value)
TaskContainerProperties & WithDependsOn(Aws::Vector< TaskContainerDependency > &&value)
TaskContainerProperties & AddUlimits(const Ulimit &value)
TaskContainerProperties & WithName(const Aws::String &value)
void SetCommand(const Aws::Vector< Aws::String > &value)
TaskContainerProperties & AddCommand(Aws::String &&value)
const Aws::Vector< Secret > & GetSecrets() const
TaskContainerProperties & WithName(Aws::String &&value)
TaskContainerProperties & WithUlimits(Aws::Vector< Ulimit > &&value)
TaskContainerProperties & AddDependsOn(TaskContainerDependency &&value)
TaskContainerProperties & WithPrivileged(bool value)
TaskContainerProperties & AddCommand(const Aws::String &value)
const RepositoryCredentials & GetRepositoryCredentials() const
void SetDependsOn(Aws::Vector< TaskContainerDependency > &&value)
const Aws::Vector< TaskContainerDependency > & GetDependsOn() const
TaskContainerProperties & WithUser(const Aws::String &value)
TaskContainerProperties & WithMountPoints(const Aws::Vector< MountPoint > &value)
TaskContainerProperties & WithName(const char *value)
TaskContainerProperties & AddEnvironment(KeyValuePair &&value)
TaskContainerProperties & AddResourceRequirements(ResourceRequirement &&value)
const LinuxParameters & GetLinuxParameters() const
TaskContainerProperties & AddMountPoints(const MountPoint &value)
const Aws::Vector< Aws::String > & GetCommand() const
TaskContainerProperties & WithLogConfiguration(const LogConfiguration &value)
void SetResourceRequirements(Aws::Vector< ResourceRequirement > &&value)
TaskContainerProperties & WithCommand(Aws::Vector< Aws::String > &&value)
TaskContainerProperties & AddUlimits(Ulimit &&value)
TaskContainerProperties & WithMountPoints(Aws::Vector< MountPoint > &&value)
TaskContainerProperties & WithSecrets(Aws::Vector< Secret > &&value)
TaskContainerProperties & AddSecrets(const Secret &value)
AWS_BATCH_API TaskContainerProperties(Aws::Utils::Json::JsonView jsonValue)
TaskContainerProperties & WithUser(Aws::String &&value)
void SetUlimits(Aws::Vector< Ulimit > &&value)
TaskContainerProperties & WithImage(const Aws::String &value)
TaskContainerProperties & WithReadonlyRootFilesystem(bool value)
const Aws::Vector< Ulimit > & GetUlimits() const
void SetMountPoints(Aws::Vector< MountPoint > &&value)
TaskContainerProperties & AddEnvironment(const KeyValuePair &value)
TaskContainerProperties & WithCommand(const Aws::Vector< Aws::String > &value)
TaskContainerProperties & WithEnvironment(Aws::Vector< KeyValuePair > &&value)
void SetSecrets(Aws::Vector< Secret > &&value)
TaskContainerProperties & AddDependsOn(const TaskContainerDependency &value)
TaskContainerProperties & AddSecrets(Secret &&value)
TaskContainerProperties & AddCommand(const char *value)
const Aws::Vector< KeyValuePair > & GetEnvironment() const
TaskContainerProperties & WithLinuxParameters(const LinuxParameters &value)
TaskContainerProperties & WithImage(const char *value)
AWS_BATCH_API TaskContainerProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUlimits(const Aws::Vector< Ulimit > &value)
TaskContainerProperties & AddResourceRequirements(const ResourceRequirement &value)
void SetResourceRequirements(const Aws::Vector< ResourceRequirement > &value)
void SetMountPoints(const Aws::Vector< MountPoint > &value)
TaskContainerProperties & WithLinuxParameters(LinuxParameters &&value)
TaskContainerProperties & WithRepositoryCredentials(const RepositoryCredentials &value)
TaskContainerProperties & WithResourceRequirements(const Aws::Vector< ResourceRequirement > &value)
TaskContainerProperties & WithLogConfiguration(LogConfiguration &&value)
TaskContainerProperties & WithEssential(bool value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogConfiguration(const LogConfiguration &value)
TaskContainerProperties & WithSecrets(const Aws::Vector< Secret > &value)
TaskContainerProperties & WithImage(Aws::String &&value)
TaskContainerProperties & WithUser(const char *value)
void SetDependsOn(const Aws::Vector< TaskContainerDependency > &value)
TaskContainerProperties & WithResourceRequirements(Aws::Vector< ResourceRequirement > &&value)
TaskContainerProperties & WithRepositoryCredentials(RepositoryCredentials &&value)
const LogConfiguration & GetLogConfiguration() const
void SetRepositoryCredentials(const RepositoryCredentials &value)
TaskContainerProperties & AddMountPoints(MountPoint &&value)
const Aws::Vector< MountPoint > & GetMountPoints() const
TaskContainerProperties & WithEnvironment(const Aws::Vector< KeyValuePair > &value)
void SetRepositoryCredentials(RepositoryCredentials &&value)
void SetEnvironment(const Aws::Vector< KeyValuePair > &value)
TaskContainerProperties & WithDependsOn(const Aws::Vector< TaskContainerDependency > &value)
TaskContainerProperties & WithUlimits(const Aws::Vector< Ulimit > &value)
void SetCommand(Aws::Vector< Aws::String > &&value)
void SetEnvironment(Aws::Vector< KeyValuePair > &&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