AWS SDK for C++  1.9.73
AWS SDK for C++
LinuxParameters.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
10 #include <aws/ecs/model/Device.h>
11 #include <aws/ecs/model/Tmpfs.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace ECS
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
51  inline const KernelCapabilities& GetCapabilities() const{ return m_capabilities; }
52 
60  inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
61 
69  inline void SetCapabilities(const KernelCapabilities& value) { m_capabilitiesHasBeenSet = true; m_capabilities = value; }
70 
78  inline void SetCapabilities(KernelCapabilities&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::move(value); }
79 
87  inline LinuxParameters& WithCapabilities(const KernelCapabilities& value) { SetCapabilities(value); return *this;}
88 
96  inline LinuxParameters& WithCapabilities(KernelCapabilities&& value) { SetCapabilities(std::move(value)); return *this;}
97 
98 
110  inline const Aws::Vector<Device>& GetDevices() const{ return m_devices; }
111 
123  inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
124 
136  inline void SetDevices(const Aws::Vector<Device>& value) { m_devicesHasBeenSet = true; m_devices = value; }
137 
149  inline void SetDevices(Aws::Vector<Device>&& value) { m_devicesHasBeenSet = true; m_devices = std::move(value); }
150 
162  inline LinuxParameters& WithDevices(const Aws::Vector<Device>& value) { SetDevices(value); return *this;}
163 
175  inline LinuxParameters& WithDevices(Aws::Vector<Device>&& value) { SetDevices(std::move(value)); return *this;}
176 
188  inline LinuxParameters& AddDevices(const Device& value) { m_devicesHasBeenSet = true; m_devices.push_back(value); return *this; }
189 
201  inline LinuxParameters& AddDevices(Device&& value) { m_devicesHasBeenSet = true; m_devices.push_back(std::move(value)); return *this; }
202 
203 
213  inline bool GetInitProcessEnabled() const{ return m_initProcessEnabled; }
214 
224  inline bool InitProcessEnabledHasBeenSet() const { return m_initProcessEnabledHasBeenSet; }
225 
235  inline void SetInitProcessEnabled(bool value) { m_initProcessEnabledHasBeenSet = true; m_initProcessEnabled = value; }
236 
246  inline LinuxParameters& WithInitProcessEnabled(bool value) { SetInitProcessEnabled(value); return *this;}
247 
248 
256  inline int GetSharedMemorySize() const{ return m_sharedMemorySize; }
257 
265  inline bool SharedMemorySizeHasBeenSet() const { return m_sharedMemorySizeHasBeenSet; }
266 
274  inline void SetSharedMemorySize(int value) { m_sharedMemorySizeHasBeenSet = true; m_sharedMemorySize = value; }
275 
283  inline LinuxParameters& WithSharedMemorySize(int value) { SetSharedMemorySize(value); return *this;}
284 
285 
293  inline const Aws::Vector<Tmpfs>& GetTmpfs() const{ return m_tmpfs; }
294 
302  inline bool TmpfsHasBeenSet() const { return m_tmpfsHasBeenSet; }
303 
311  inline void SetTmpfs(const Aws::Vector<Tmpfs>& value) { m_tmpfsHasBeenSet = true; m_tmpfs = value; }
312 
320  inline void SetTmpfs(Aws::Vector<Tmpfs>&& value) { m_tmpfsHasBeenSet = true; m_tmpfs = std::move(value); }
321 
329  inline LinuxParameters& WithTmpfs(const Aws::Vector<Tmpfs>& value) { SetTmpfs(value); return *this;}
330 
338  inline LinuxParameters& WithTmpfs(Aws::Vector<Tmpfs>&& value) { SetTmpfs(std::move(value)); return *this;}
339 
347  inline LinuxParameters& AddTmpfs(const Tmpfs& value) { m_tmpfsHasBeenSet = true; m_tmpfs.push_back(value); return *this; }
348 
356  inline LinuxParameters& AddTmpfs(Tmpfs&& value) { m_tmpfsHasBeenSet = true; m_tmpfs.push_back(std::move(value)); return *this; }
357 
358 
373  inline int GetMaxSwap() const{ return m_maxSwap; }
374 
389  inline bool MaxSwapHasBeenSet() const { return m_maxSwapHasBeenSet; }
390 
405  inline void SetMaxSwap(int value) { m_maxSwapHasBeenSet = true; m_maxSwap = value; }
406 
421  inline LinuxParameters& WithMaxSwap(int value) { SetMaxSwap(value); return *this;}
422 
423 
438  inline int GetSwappiness() const{ return m_swappiness; }
439 
454  inline bool SwappinessHasBeenSet() const { return m_swappinessHasBeenSet; }
455 
470  inline void SetSwappiness(int value) { m_swappinessHasBeenSet = true; m_swappiness = value; }
471 
486  inline LinuxParameters& WithSwappiness(int value) { SetSwappiness(value); return *this;}
487 
488  private:
489 
490  KernelCapabilities m_capabilities;
491  bool m_capabilitiesHasBeenSet;
492 
493  Aws::Vector<Device> m_devices;
494  bool m_devicesHasBeenSet;
495 
496  bool m_initProcessEnabled;
497  bool m_initProcessEnabledHasBeenSet;
498 
499  int m_sharedMemorySize;
500  bool m_sharedMemorySizeHasBeenSet;
501 
502  Aws::Vector<Tmpfs> m_tmpfs;
503  bool m_tmpfsHasBeenSet;
504 
505  int m_maxSwap;
506  bool m_maxSwapHasBeenSet;
507 
508  int m_swappiness;
509  bool m_swappinessHasBeenSet;
510  };
511 
512 } // namespace Model
513 } // namespace ECS
514 } // namespace Aws
Aws::ECS::Model::LinuxParameters::LinuxParameters
LinuxParameters(Aws::Utils::Json::JsonView jsonValue)
Tmpfs.h
Aws::ECS::Model::LinuxParameters::SetSwappiness
void SetSwappiness(int value)
Definition: LinuxParameters.h:470
KernelCapabilities.h
Aws::ECS::Model::LinuxParameters::AddDevices
LinuxParameters & AddDevices(const Device &value)
Definition: LinuxParameters.h:188
Aws::ECS::Model::LinuxParameters::SetDevices
void SetDevices(const Aws::Vector< Device > &value)
Definition: LinuxParameters.h:136
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::LinuxParameters::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::LinuxParameters::MaxSwapHasBeenSet
bool MaxSwapHasBeenSet() const
Definition: LinuxParameters.h:389
Device.h
Aws::ECS::Model::LinuxParameters::SetMaxSwap
void SetMaxSwap(int value)
Definition: LinuxParameters.h:405
Aws::ECS::Model::KernelCapabilities
Definition: KernelCapabilities.h:40
Aws::ECS::Model::LinuxParameters::LinuxParameters
LinuxParameters()
Aws::ECS::Model::LinuxParameters::GetDevices
const Aws::Vector< Device > & GetDevices() const
Definition: LinuxParameters.h:110
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::LinuxParameters::CapabilitiesHasBeenSet
bool CapabilitiesHasBeenSet() const
Definition: LinuxParameters.h:60
Aws::ECS::Model::LinuxParameters::SetDevices
void SetDevices(Aws::Vector< Device > &&value)
Definition: LinuxParameters.h:149
Aws::ECS::Model::LinuxParameters::AddTmpfs
LinuxParameters & AddTmpfs(Tmpfs &&value)
Definition: LinuxParameters.h:356
AWSVector.h
Aws::ECS::Model::LinuxParameters::operator=
LinuxParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::LinuxParameters::WithMaxSwap
LinuxParameters & WithMaxSwap(int value)
Definition: LinuxParameters.h:421
Aws::ECS::Model::LinuxParameters::WithInitProcessEnabled
LinuxParameters & WithInitProcessEnabled(bool value)
Definition: LinuxParameters.h:246
Aws::ECS::Model::LinuxParameters::GetInitProcessEnabled
bool GetInitProcessEnabled() const
Definition: LinuxParameters.h:213
Aws::ECS::Model::LinuxParameters::WithCapabilities
LinuxParameters & WithCapabilities(const KernelCapabilities &value)
Definition: LinuxParameters.h:87
Aws::ECS::Model::LinuxParameters::SetInitProcessEnabled
void SetInitProcessEnabled(bool value)
Definition: LinuxParameters.h:235
Aws::ECS::Model::Device
Definition: Device.h:35
Aws::ECS::Model::LinuxParameters::TmpfsHasBeenSet
bool TmpfsHasBeenSet() const
Definition: LinuxParameters.h:302
Aws::ECS::Model::LinuxParameters::SwappinessHasBeenSet
bool SwappinessHasBeenSet() const
Definition: LinuxParameters.h:454
Aws::ECS::Model::LinuxParameters::GetCapabilities
const KernelCapabilities & GetCapabilities() const
Definition: LinuxParameters.h:51
Aws::ECS::Model::LinuxParameters::SetTmpfs
void SetTmpfs(const Aws::Vector< Tmpfs > &value)
Definition: LinuxParameters.h:311
Aws::ECS::Model::LinuxParameters::WithTmpfs
LinuxParameters & WithTmpfs(Aws::Vector< Tmpfs > &&value)
Definition: LinuxParameters.h:338
Aws::ECS::Model::LinuxParameters::WithSharedMemorySize
LinuxParameters & WithSharedMemorySize(int value)
Definition: LinuxParameters.h:283
Aws::ECS::Model::LinuxParameters::InitProcessEnabledHasBeenSet
bool InitProcessEnabledHasBeenSet() const
Definition: LinuxParameters.h:224
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::ECS::Model::LinuxParameters::SharedMemorySizeHasBeenSet
bool SharedMemorySizeHasBeenSet() const
Definition: LinuxParameters.h:265
Aws::ECS::Model::LinuxParameters::GetMaxSwap
int GetMaxSwap() const
Definition: LinuxParameters.h:373
Aws::ECS::Model::LinuxParameters::WithDevices
LinuxParameters & WithDevices(Aws::Vector< Device > &&value)
Definition: LinuxParameters.h:175
Aws::ECS::Model::LinuxParameters::SetCapabilities
void SetCapabilities(KernelCapabilities &&value)
Definition: LinuxParameters.h:78
Aws::ECS::Model::LinuxParameters::SetCapabilities
void SetCapabilities(const KernelCapabilities &value)
Definition: LinuxParameters.h:69
Aws::ECS::Model::LinuxParameters::SetTmpfs
void SetTmpfs(Aws::Vector< Tmpfs > &&value)
Definition: LinuxParameters.h:320
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::LinuxParameters::AddDevices
LinuxParameters & AddDevices(Device &&value)
Definition: LinuxParameters.h:201
Aws::ECS::Model::LinuxParameters::DevicesHasBeenSet
bool DevicesHasBeenSet() const
Definition: LinuxParameters.h:123
Aws::ECS::Model::Tmpfs
Definition: Tmpfs.h:34
Aws::ECS::Model::LinuxParameters::AddTmpfs
LinuxParameters & AddTmpfs(const Tmpfs &value)
Definition: LinuxParameters.h:347
Aws::ECS::Model::LinuxParameters::WithDevices
LinuxParameters & WithDevices(const Aws::Vector< Device > &value)
Definition: LinuxParameters.h:162
Aws::ECS::Model::LinuxParameters::SetSharedMemorySize
void SetSharedMemorySize(int value)
Definition: LinuxParameters.h:274
Aws::ECS::Model::LinuxParameters::GetSharedMemorySize
int GetSharedMemorySize() const
Definition: LinuxParameters.h:256
Aws::ECS::Model::LinuxParameters::WithCapabilities
LinuxParameters & WithCapabilities(KernelCapabilities &&value)
Definition: LinuxParameters.h:96
Aws::ECS::Model::LinuxParameters
Definition: LinuxParameters.h:36
Aws::ECS::Model::LinuxParameters::WithTmpfs
LinuxParameters & WithTmpfs(const Aws::Vector< Tmpfs > &value)
Definition: LinuxParameters.h:329
ECS_EXPORTS.h
Aws::ECS::Model::LinuxParameters::GetTmpfs
const Aws::Vector< Tmpfs > & GetTmpfs() const
Definition: LinuxParameters.h:293
Aws::ECS::Model::LinuxParameters::GetSwappiness
int GetSwappiness() const
Definition: LinuxParameters.h:438
Aws::ECS::Model::LinuxParameters::WithSwappiness
LinuxParameters & WithSwappiness(int value)
Definition: LinuxParameters.h:486