AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
LinuxParameters.h
Go to the documentation of this file.
1
6#pragma once
11#include <aws/ecs/model/Tmpfs.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ECS
25{
26namespace 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 = false;
492
493 Aws::Vector<Device> m_devices;
494 bool m_devicesHasBeenSet = false;
495
496 bool m_initProcessEnabled;
497 bool m_initProcessEnabledHasBeenSet = false;
498
499 int m_sharedMemorySize;
500 bool m_sharedMemorySizeHasBeenSet = false;
501
502 Aws::Vector<Tmpfs> m_tmpfs;
503 bool m_tmpfsHasBeenSet = false;
504
505 int m_maxSwap;
506 bool m_maxSwapHasBeenSet = false;
507
508 int m_swappiness;
509 bool m_swappinessHasBeenSet = false;
510 };
511
512} // namespace Model
513} // namespace ECS
514} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
LinuxParameters & AddTmpfs(Tmpfs &&value)
LinuxParameters & AddDevices(Device &&value)
void SetCapabilities(const KernelCapabilities &value)
const KernelCapabilities & GetCapabilities() const
void SetDevices(const Aws::Vector< Device > &value)
void SetTmpfs(const Aws::Vector< Tmpfs > &value)
void SetCapabilities(KernelCapabilities &&value)
LinuxParameters & WithCapabilities(const KernelCapabilities &value)
LinuxParameters & WithTmpfs(const Aws::Vector< Tmpfs > &value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
LinuxParameters & WithSharedMemorySize(int value)
LinuxParameters & WithCapabilities(KernelCapabilities &&value)
LinuxParameters & AddTmpfs(const Tmpfs &value)
LinuxParameters & WithSwappiness(int value)
LinuxParameters & WithDevices(Aws::Vector< Device > &&value)
LinuxParameters & WithTmpfs(Aws::Vector< Tmpfs > &&value)
AWS_ECS_API LinuxParameters(Aws::Utils::Json::JsonView jsonValue)
void SetTmpfs(Aws::Vector< Tmpfs > &&value)
AWS_ECS_API LinuxParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Device > & GetDevices() const
LinuxParameters & WithDevices(const Aws::Vector< Device > &value)
const Aws::Vector< Tmpfs > & GetTmpfs() const
LinuxParameters & AddDevices(const Device &value)
void SetDevices(Aws::Vector< Device > &&value)
LinuxParameters & WithInitProcessEnabled(bool value)
LinuxParameters & WithMaxSwap(int value)
std::vector< T, Aws::Allocator< T > > Vector