AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LinuxParameters.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/KernelCapabilities.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/model/Device.h>
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
38 {
39 public:
40 AWS_ECS_API LinuxParameters();
44
45
47
54 inline const KernelCapabilities& GetCapabilities() const{ return m_capabilities; }
55 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
56 inline void SetCapabilities(const KernelCapabilities& value) { m_capabilitiesHasBeenSet = true; m_capabilities = value; }
57 inline void SetCapabilities(KernelCapabilities&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::move(value); }
58 inline LinuxParameters& WithCapabilities(const KernelCapabilities& value) { SetCapabilities(value); return *this;}
59 inline LinuxParameters& WithCapabilities(KernelCapabilities&& value) { SetCapabilities(std::move(value)); return *this;}
61
63
70 inline const Aws::Vector<Device>& GetDevices() const{ return m_devices; }
71 inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
72 inline void SetDevices(const Aws::Vector<Device>& value) { m_devicesHasBeenSet = true; m_devices = value; }
73 inline void SetDevices(Aws::Vector<Device>&& value) { m_devicesHasBeenSet = true; m_devices = std::move(value); }
74 inline LinuxParameters& WithDevices(const Aws::Vector<Device>& value) { SetDevices(value); return *this;}
75 inline LinuxParameters& WithDevices(Aws::Vector<Device>&& value) { SetDevices(std::move(value)); return *this;}
76 inline LinuxParameters& AddDevices(const Device& value) { m_devicesHasBeenSet = true; m_devices.push_back(value); return *this; }
77 inline LinuxParameters& AddDevices(Device&& value) { m_devicesHasBeenSet = true; m_devices.push_back(std::move(value)); return *this; }
79
81
89 inline bool GetInitProcessEnabled() const{ return m_initProcessEnabled; }
90 inline bool InitProcessEnabledHasBeenSet() const { return m_initProcessEnabledHasBeenSet; }
91 inline void SetInitProcessEnabled(bool value) { m_initProcessEnabledHasBeenSet = true; m_initProcessEnabled = value; }
92 inline LinuxParameters& WithInitProcessEnabled(bool value) { SetInitProcessEnabled(value); return *this;}
94
96
102 inline int GetSharedMemorySize() const{ return m_sharedMemorySize; }
103 inline bool SharedMemorySizeHasBeenSet() const { return m_sharedMemorySizeHasBeenSet; }
104 inline void SetSharedMemorySize(int value) { m_sharedMemorySizeHasBeenSet = true; m_sharedMemorySize = value; }
105 inline LinuxParameters& WithSharedMemorySize(int value) { SetSharedMemorySize(value); return *this;}
107
109
115 inline const Aws::Vector<Tmpfs>& GetTmpfs() const{ return m_tmpfs; }
116 inline bool TmpfsHasBeenSet() const { return m_tmpfsHasBeenSet; }
117 inline void SetTmpfs(const Aws::Vector<Tmpfs>& value) { m_tmpfsHasBeenSet = true; m_tmpfs = value; }
118 inline void SetTmpfs(Aws::Vector<Tmpfs>&& value) { m_tmpfsHasBeenSet = true; m_tmpfs = std::move(value); }
119 inline LinuxParameters& WithTmpfs(const Aws::Vector<Tmpfs>& value) { SetTmpfs(value); return *this;}
120 inline LinuxParameters& WithTmpfs(Aws::Vector<Tmpfs>&& value) { SetTmpfs(std::move(value)); return *this;}
121 inline LinuxParameters& AddTmpfs(const Tmpfs& value) { m_tmpfsHasBeenSet = true; m_tmpfs.push_back(value); return *this; }
122 inline LinuxParameters& AddTmpfs(Tmpfs&& value) { m_tmpfsHasBeenSet = true; m_tmpfs.push_back(std::move(value)); return *this; }
124
126
140 inline int GetMaxSwap() const{ return m_maxSwap; }
141 inline bool MaxSwapHasBeenSet() const { return m_maxSwapHasBeenSet; }
142 inline void SetMaxSwap(int value) { m_maxSwapHasBeenSet = true; m_maxSwap = value; }
143 inline LinuxParameters& WithMaxSwap(int value) { SetMaxSwap(value); return *this;}
145
147
161 inline int GetSwappiness() const{ return m_swappiness; }
162 inline bool SwappinessHasBeenSet() const { return m_swappinessHasBeenSet; }
163 inline void SetSwappiness(int value) { m_swappinessHasBeenSet = true; m_swappiness = value; }
164 inline LinuxParameters& WithSwappiness(int value) { SetSwappiness(value); return *this;}
166 private:
167
168 KernelCapabilities m_capabilities;
169 bool m_capabilitiesHasBeenSet = false;
170
171 Aws::Vector<Device> m_devices;
172 bool m_devicesHasBeenSet = false;
173
174 bool m_initProcessEnabled;
175 bool m_initProcessEnabledHasBeenSet = false;
176
177 int m_sharedMemorySize;
178 bool m_sharedMemorySizeHasBeenSet = false;
179
180 Aws::Vector<Tmpfs> m_tmpfs;
181 bool m_tmpfsHasBeenSet = false;
182
183 int m_maxSwap;
184 bool m_maxSwapHasBeenSet = false;
185
186 int m_swappiness;
187 bool m_swappinessHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace ECS
192} // namespace Aws
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
Aws::Utils::Json::JsonValue JsonValue