AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DaemonLinuxParameters.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9#include <aws/ecs/model/Device.h>
10#include <aws/ecs/model/KernelCapabilities.h>
11#include <aws/ecs/model/Tmpfs.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECS {
23namespace Model {
24
32 public:
33 AWS_ECS_API DaemonLinuxParameters() = default;
37
39
43 inline const KernelCapabilities& GetCapabilities() const { return m_capabilities; }
44 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
45 template <typename CapabilitiesT = KernelCapabilities>
46 void SetCapabilities(CapabilitiesT&& value) {
47 m_capabilitiesHasBeenSet = true;
48 m_capabilities = std::forward<CapabilitiesT>(value);
49 }
50 template <typename CapabilitiesT = KernelCapabilities>
51 DaemonLinuxParameters& WithCapabilities(CapabilitiesT&& value) {
52 SetCapabilities(std::forward<CapabilitiesT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<Device>& GetDevices() const { return m_devices; }
62 inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
63 template <typename DevicesT = Aws::Vector<Device>>
64 void SetDevices(DevicesT&& value) {
65 m_devicesHasBeenSet = true;
66 m_devices = std::forward<DevicesT>(value);
67 }
68 template <typename DevicesT = Aws::Vector<Device>>
70 SetDevices(std::forward<DevicesT>(value));
71 return *this;
72 }
73 template <typename DevicesT = Device>
74 DaemonLinuxParameters& AddDevices(DevicesT&& value) {
75 m_devicesHasBeenSet = true;
76 m_devices.emplace_back(std::forward<DevicesT>(value));
77 return *this;
78 }
80
82
86 inline bool GetInitProcessEnabled() const { return m_initProcessEnabled; }
87 inline bool InitProcessEnabledHasBeenSet() const { return m_initProcessEnabledHasBeenSet; }
88 inline void SetInitProcessEnabled(bool value) {
89 m_initProcessEnabledHasBeenSet = true;
90 m_initProcessEnabled = value;
91 }
94 return *this;
95 }
97
99
102 inline const Aws::Vector<Tmpfs>& GetTmpfs() const { return m_tmpfs; }
103 inline bool TmpfsHasBeenSet() const { return m_tmpfsHasBeenSet; }
104 template <typename TmpfsT = Aws::Vector<Tmpfs>>
105 void SetTmpfs(TmpfsT&& value) {
106 m_tmpfsHasBeenSet = true;
107 m_tmpfs = std::forward<TmpfsT>(value);
108 }
109 template <typename TmpfsT = Aws::Vector<Tmpfs>>
111 SetTmpfs(std::forward<TmpfsT>(value));
112 return *this;
113 }
114 template <typename TmpfsT = Tmpfs>
116 m_tmpfsHasBeenSet = true;
117 m_tmpfs.emplace_back(std::forward<TmpfsT>(value));
118 return *this;
119 }
121 private:
122 KernelCapabilities m_capabilities;
123
124 Aws::Vector<Device> m_devices;
125
126 bool m_initProcessEnabled{false};
127
128 Aws::Vector<Tmpfs> m_tmpfs;
129 bool m_capabilitiesHasBeenSet = false;
130 bool m_devicesHasBeenSet = false;
131 bool m_initProcessEnabledHasBeenSet = false;
132 bool m_tmpfsHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace ECS
137} // namespace Aws
DaemonLinuxParameters & AddTmpfs(TmpfsT &&value)
const Aws::Vector< Device > & GetDevices() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Tmpfs > & GetTmpfs() const
DaemonLinuxParameters & WithDevices(DevicesT &&value)
AWS_ECS_API DaemonLinuxParameters(Aws::Utils::Json::JsonView jsonValue)
DaemonLinuxParameters & WithCapabilities(CapabilitiesT &&value)
void SetCapabilities(CapabilitiesT &&value)
AWS_ECS_API DaemonLinuxParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
DaemonLinuxParameters & WithInitProcessEnabled(bool value)
DaemonLinuxParameters & AddDevices(DevicesT &&value)
const KernelCapabilities & GetCapabilities() const
AWS_ECS_API DaemonLinuxParameters()=default
DaemonLinuxParameters & WithTmpfs(TmpfsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue