AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
44
45
47
54 inline const KernelCapabilities& GetCapabilities() const { return m_capabilities; }
55 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
56 template<typename CapabilitiesT = KernelCapabilities>
57 void SetCapabilities(CapabilitiesT&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::forward<CapabilitiesT>(value); }
58 template<typename CapabilitiesT = KernelCapabilities>
59 LinuxParameters& WithCapabilities(CapabilitiesT&& value) { SetCapabilities(std::forward<CapabilitiesT>(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 template<typename DevicesT = Aws::Vector<Device>>
73 void SetDevices(DevicesT&& value) { m_devicesHasBeenSet = true; m_devices = std::forward<DevicesT>(value); }
74 template<typename DevicesT = Aws::Vector<Device>>
75 LinuxParameters& WithDevices(DevicesT&& value) { SetDevices(std::forward<DevicesT>(value)); return *this;}
76 template<typename DevicesT = Device>
77 LinuxParameters& AddDevices(DevicesT&& value) { m_devicesHasBeenSet = true; m_devices.emplace_back(std::forward<DevicesT>(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 template<typename TmpfsT = Aws::Vector<Tmpfs>>
118 void SetTmpfs(TmpfsT&& value) { m_tmpfsHasBeenSet = true; m_tmpfs = std::forward<TmpfsT>(value); }
119 template<typename TmpfsT = Aws::Vector<Tmpfs>>
120 LinuxParameters& WithTmpfs(TmpfsT&& value) { SetTmpfs(std::forward<TmpfsT>(value)); return *this;}
121 template<typename TmpfsT = Tmpfs>
122 LinuxParameters& AddTmpfs(TmpfsT&& value) { m_tmpfsHasBeenSet = true; m_tmpfs.emplace_back(std::forward<TmpfsT>(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{false};
175 bool m_initProcessEnabledHasBeenSet = false;
176
177 int m_sharedMemorySize{0};
178 bool m_sharedMemorySizeHasBeenSet = false;
179
180 Aws::Vector<Tmpfs> m_tmpfs;
181 bool m_tmpfsHasBeenSet = false;
182
183 int m_maxSwap{0};
184 bool m_maxSwapHasBeenSet = false;
185
186 int m_swappiness{0};
187 bool m_swappinessHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace ECS
192} // namespace Aws
LinuxParameters & WithTmpfs(TmpfsT &&value)
LinuxParameters & WithCapabilities(CapabilitiesT &&value)
const KernelCapabilities & GetCapabilities() const
LinuxParameters & AddTmpfs(TmpfsT &&value)
void SetDevices(DevicesT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
LinuxParameters & WithSharedMemorySize(int value)
LinuxParameters & WithDevices(DevicesT &&value)
AWS_ECS_API LinuxParameters()=default
LinuxParameters & WithSwappiness(int value)
LinuxParameters & AddDevices(DevicesT &&value)
AWS_ECS_API LinuxParameters(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API LinuxParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Device > & GetDevices() const
void SetCapabilities(CapabilitiesT &&value)
const Aws::Vector< Tmpfs > & GetTmpfs() const
LinuxParameters & WithInitProcessEnabled(bool value)
LinuxParameters & WithMaxSwap(int value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue