AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LinuxParameters.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/Device.h>
9#include <aws/batch/model/Tmpfs.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Batch {
22namespace Model {
23
31 public:
32 AWS_BATCH_API LinuxParameters() = default;
35 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
49 inline const Aws::Vector<Device>& GetDevices() const { return m_devices; }
50 inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
51 template <typename DevicesT = Aws::Vector<Device>>
52 void SetDevices(DevicesT&& value) {
53 m_devicesHasBeenSet = true;
54 m_devices = std::forward<DevicesT>(value);
55 }
56 template <typename DevicesT = Aws::Vector<Device>>
57 LinuxParameters& WithDevices(DevicesT&& value) {
58 SetDevices(std::forward<DevicesT>(value));
59 return *this;
60 }
61 template <typename DevicesT = Device>
62 LinuxParameters& AddDevices(DevicesT&& value) {
63 m_devicesHasBeenSet = true;
64 m_devices.emplace_back(std::forward<DevicesT>(value));
65 return *this;
66 }
68
70
79 inline bool GetInitProcessEnabled() const { return m_initProcessEnabled; }
80 inline bool InitProcessEnabledHasBeenSet() const { return m_initProcessEnabledHasBeenSet; }
81 inline void SetInitProcessEnabled(bool value) {
82 m_initProcessEnabledHasBeenSet = true;
83 m_initProcessEnabled = value;
84 }
87 return *this;
88 }
90
92
99 inline int GetSharedMemorySize() const { return m_sharedMemorySize; }
100 inline bool SharedMemorySizeHasBeenSet() const { return m_sharedMemorySizeHasBeenSet; }
101 inline void SetSharedMemorySize(int value) {
102 m_sharedMemorySizeHasBeenSet = true;
103 m_sharedMemorySize = value;
104 }
106 SetSharedMemorySize(value);
107 return *this;
108 }
110
112
119 inline const Aws::Vector<Tmpfs>& GetTmpfs() const { return m_tmpfs; }
120 inline bool TmpfsHasBeenSet() const { return m_tmpfsHasBeenSet; }
121 template <typename TmpfsT = Aws::Vector<Tmpfs>>
122 void SetTmpfs(TmpfsT&& value) {
123 m_tmpfsHasBeenSet = true;
124 m_tmpfs = std::forward<TmpfsT>(value);
125 }
126 template <typename TmpfsT = Aws::Vector<Tmpfs>>
127 LinuxParameters& WithTmpfs(TmpfsT&& value) {
128 SetTmpfs(std::forward<TmpfsT>(value));
129 return *this;
130 }
131 template <typename TmpfsT = Tmpfs>
132 LinuxParameters& AddTmpfs(TmpfsT&& value) {
133 m_tmpfsHasBeenSet = true;
134 m_tmpfs.emplace_back(std::forward<TmpfsT>(value));
135 return *this;
136 }
138
140
156 inline int GetMaxSwap() const { return m_maxSwap; }
157 inline bool MaxSwapHasBeenSet() const { return m_maxSwapHasBeenSet; }
158 inline void SetMaxSwap(int value) {
159 m_maxSwapHasBeenSet = true;
160 m_maxSwap = value;
161 }
162 inline LinuxParameters& WithMaxSwap(int value) {
163 SetMaxSwap(value);
164 return *this;
165 }
167
169
199 inline int GetSwappiness() const { return m_swappiness; }
200 inline bool SwappinessHasBeenSet() const { return m_swappinessHasBeenSet; }
201 inline void SetSwappiness(int value) {
202 m_swappinessHasBeenSet = true;
203 m_swappiness = value;
204 }
205 inline LinuxParameters& WithSwappiness(int value) {
206 SetSwappiness(value);
207 return *this;
208 }
210 private:
211 Aws::Vector<Device> m_devices;
212
213 bool m_initProcessEnabled{false};
214
215 int m_sharedMemorySize{0};
216
217 Aws::Vector<Tmpfs> m_tmpfs;
218
219 int m_maxSwap{0};
220
221 int m_swappiness{0};
222 bool m_devicesHasBeenSet = false;
223 bool m_initProcessEnabledHasBeenSet = false;
224 bool m_sharedMemorySizeHasBeenSet = false;
225 bool m_tmpfsHasBeenSet = false;
226 bool m_maxSwapHasBeenSet = false;
227 bool m_swappinessHasBeenSet = false;
228};
229
230} // namespace Model
231} // namespace Batch
232} // namespace Aws
AWS_BATCH_API LinuxParameters()=default
LinuxParameters & WithTmpfs(TmpfsT &&value)
void SetDevices(DevicesT &&value)
LinuxParameters & WithDevices(DevicesT &&value)
LinuxParameters & WithInitProcessEnabled(bool value)
LinuxParameters & WithSharedMemorySize(int value)
AWS_BATCH_API LinuxParameters(Aws::Utils::Json::JsonView jsonValue)
LinuxParameters & AddTmpfs(TmpfsT &&value)
LinuxParameters & AddDevices(DevicesT &&value)
const Aws::Vector< Device > & GetDevices() const
LinuxParameters & WithSwappiness(int value)
AWS_BATCH_API LinuxParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Tmpfs > & GetTmpfs() const
LinuxParameters & WithMaxSwap(int value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue