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/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/batch/model/Device.h>
10#include <aws/batch/model/Tmpfs.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Batch
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BATCH_API LinuxParameters();
40 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
55 inline const Aws::Vector<Device>& GetDevices() const{ return m_devices; }
56 inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
57 inline void SetDevices(const Aws::Vector<Device>& value) { m_devicesHasBeenSet = true; m_devices = value; }
58 inline void SetDevices(Aws::Vector<Device>&& value) { m_devicesHasBeenSet = true; m_devices = std::move(value); }
59 inline LinuxParameters& WithDevices(const Aws::Vector<Device>& value) { SetDevices(value); return *this;}
60 inline LinuxParameters& WithDevices(Aws::Vector<Device>&& value) { SetDevices(std::move(value)); return *this;}
61 inline LinuxParameters& AddDevices(const Device& value) { m_devicesHasBeenSet = true; m_devices.push_back(value); return *this; }
62 inline LinuxParameters& AddDevices(Device&& value) { m_devicesHasBeenSet = true; m_devices.push_back(std::move(value)); return *this; }
64
66
75 inline bool GetInitProcessEnabled() const{ return m_initProcessEnabled; }
76 inline bool InitProcessEnabledHasBeenSet() const { return m_initProcessEnabledHasBeenSet; }
77 inline void SetInitProcessEnabled(bool value) { m_initProcessEnabledHasBeenSet = true; m_initProcessEnabled = value; }
78 inline LinuxParameters& WithInitProcessEnabled(bool value) { SetInitProcessEnabled(value); return *this;}
80
82
89 inline int GetSharedMemorySize() const{ return m_sharedMemorySize; }
90 inline bool SharedMemorySizeHasBeenSet() const { return m_sharedMemorySizeHasBeenSet; }
91 inline void SetSharedMemorySize(int value) { m_sharedMemorySizeHasBeenSet = true; m_sharedMemorySize = value; }
92 inline LinuxParameters& WithSharedMemorySize(int value) { SetSharedMemorySize(value); return *this;}
94
96
103 inline const Aws::Vector<Tmpfs>& GetTmpfs() const{ return m_tmpfs; }
104 inline bool TmpfsHasBeenSet() const { return m_tmpfsHasBeenSet; }
105 inline void SetTmpfs(const Aws::Vector<Tmpfs>& value) { m_tmpfsHasBeenSet = true; m_tmpfs = value; }
106 inline void SetTmpfs(Aws::Vector<Tmpfs>&& value) { m_tmpfsHasBeenSet = true; m_tmpfs = std::move(value); }
107 inline LinuxParameters& WithTmpfs(const Aws::Vector<Tmpfs>& value) { SetTmpfs(value); return *this;}
108 inline LinuxParameters& WithTmpfs(Aws::Vector<Tmpfs>&& value) { SetTmpfs(std::move(value)); return *this;}
109 inline LinuxParameters& AddTmpfs(const Tmpfs& value) { m_tmpfsHasBeenSet = true; m_tmpfs.push_back(value); return *this; }
110 inline LinuxParameters& AddTmpfs(Tmpfs&& value) { m_tmpfsHasBeenSet = true; m_tmpfs.push_back(std::move(value)); return *this; }
112
114
130 inline int GetMaxSwap() const{ return m_maxSwap; }
131 inline bool MaxSwapHasBeenSet() const { return m_maxSwapHasBeenSet; }
132 inline void SetMaxSwap(int value) { m_maxSwapHasBeenSet = true; m_maxSwap = value; }
133 inline LinuxParameters& WithMaxSwap(int value) { SetMaxSwap(value); return *this;}
135
137
167 inline int GetSwappiness() const{ return m_swappiness; }
168 inline bool SwappinessHasBeenSet() const { return m_swappinessHasBeenSet; }
169 inline void SetSwappiness(int value) { m_swappinessHasBeenSet = true; m_swappiness = value; }
170 inline LinuxParameters& WithSwappiness(int value) { SetSwappiness(value); return *this;}
172 private:
173
174 Aws::Vector<Device> m_devices;
175 bool m_devicesHasBeenSet = false;
176
177 bool m_initProcessEnabled;
178 bool m_initProcessEnabledHasBeenSet = false;
179
180 int m_sharedMemorySize;
181 bool m_sharedMemorySizeHasBeenSet = false;
182
183 Aws::Vector<Tmpfs> m_tmpfs;
184 bool m_tmpfsHasBeenSet = false;
185
186 int m_maxSwap;
187 bool m_maxSwapHasBeenSet = false;
188
189 int m_swappiness;
190 bool m_swappinessHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace Batch
195} // namespace Aws
void SetTmpfs(const Aws::Vector< Tmpfs > &value)
void SetDevices(Aws::Vector< Device > &&value)
void SetDevices(const Aws::Vector< Device > &value)
LinuxParameters & WithInitProcessEnabled(bool value)
LinuxParameters & WithSharedMemorySize(int value)
void SetTmpfs(Aws::Vector< Tmpfs > &&value)
AWS_BATCH_API LinuxParameters(Aws::Utils::Json::JsonView jsonValue)
LinuxParameters & WithDevices(Aws::Vector< Device > &&value)
LinuxParameters & WithDevices(const Aws::Vector< Device > &value)
LinuxParameters & WithTmpfs(Aws::Vector< Tmpfs > &&value)
const Aws::Vector< Device > & GetDevices() const
LinuxParameters & WithSwappiness(int value)
LinuxParameters & AddTmpfs(const Tmpfs &value)
AWS_BATCH_API LinuxParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
LinuxParameters & AddTmpfs(Tmpfs &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
LinuxParameters & WithTmpfs(const Aws::Vector< Tmpfs > &value)
LinuxParameters & AddDevices(const Device &value)
const Aws::Vector< Tmpfs > & GetTmpfs() const
LinuxParameters & AddDevices(Device &&value)
LinuxParameters & WithMaxSwap(int value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue