AWS SDK for C++  1.9.129
AWS SDK for C++
LambdaContainerParams.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace GreengrassV2
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
47  inline int GetMemorySizeInKB() const{ return m_memorySizeInKB; }
48 
53  inline bool MemorySizeInKBHasBeenSet() const { return m_memorySizeInKBHasBeenSet; }
54 
59  inline void SetMemorySizeInKB(int value) { m_memorySizeInKBHasBeenSet = true; m_memorySizeInKB = value; }
60 
65  inline LambdaContainerParams& WithMemorySizeInKB(int value) { SetMemorySizeInKB(value); return *this;}
66 
67 
72  inline bool GetMountROSysfs() const{ return m_mountROSysfs; }
73 
78  inline bool MountROSysfsHasBeenSet() const { return m_mountROSysfsHasBeenSet; }
79 
84  inline void SetMountROSysfs(bool value) { m_mountROSysfsHasBeenSet = true; m_mountROSysfs = value; }
85 
90  inline LambdaContainerParams& WithMountROSysfs(bool value) { SetMountROSysfs(value); return *this;}
91 
92 
96  inline const Aws::Vector<LambdaVolumeMount>& GetVolumes() const{ return m_volumes; }
97 
101  inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
102 
106  inline void SetVolumes(const Aws::Vector<LambdaVolumeMount>& value) { m_volumesHasBeenSet = true; m_volumes = value; }
107 
111  inline void SetVolumes(Aws::Vector<LambdaVolumeMount>&& value) { m_volumesHasBeenSet = true; m_volumes = std::move(value); }
112 
116  inline LambdaContainerParams& WithVolumes(const Aws::Vector<LambdaVolumeMount>& value) { SetVolumes(value); return *this;}
117 
121  inline LambdaContainerParams& WithVolumes(Aws::Vector<LambdaVolumeMount>&& value) { SetVolumes(std::move(value)); return *this;}
122 
126  inline LambdaContainerParams& AddVolumes(const LambdaVolumeMount& value) { m_volumesHasBeenSet = true; m_volumes.push_back(value); return *this; }
127 
131  inline LambdaContainerParams& AddVolumes(LambdaVolumeMount&& value) { m_volumesHasBeenSet = true; m_volumes.push_back(std::move(value)); return *this; }
132 
133 
137  inline const Aws::Vector<LambdaDeviceMount>& GetDevices() const{ return m_devices; }
138 
142  inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
143 
147  inline void SetDevices(const Aws::Vector<LambdaDeviceMount>& value) { m_devicesHasBeenSet = true; m_devices = value; }
148 
152  inline void SetDevices(Aws::Vector<LambdaDeviceMount>&& value) { m_devicesHasBeenSet = true; m_devices = std::move(value); }
153 
157  inline LambdaContainerParams& WithDevices(const Aws::Vector<LambdaDeviceMount>& value) { SetDevices(value); return *this;}
158 
162  inline LambdaContainerParams& WithDevices(Aws::Vector<LambdaDeviceMount>&& value) { SetDevices(std::move(value)); return *this;}
163 
167  inline LambdaContainerParams& AddDevices(const LambdaDeviceMount& value) { m_devicesHasBeenSet = true; m_devices.push_back(value); return *this; }
168 
172  inline LambdaContainerParams& AddDevices(LambdaDeviceMount&& value) { m_devicesHasBeenSet = true; m_devices.push_back(std::move(value)); return *this; }
173 
174  private:
175 
176  int m_memorySizeInKB;
177  bool m_memorySizeInKBHasBeenSet;
178 
179  bool m_mountROSysfs;
180  bool m_mountROSysfsHasBeenSet;
181 
183  bool m_volumesHasBeenSet;
184 
186  bool m_devicesHasBeenSet;
187  };
188 
189 } // namespace Model
190 } // namespace GreengrassV2
191 } // namespace Aws
Aws::GreengrassV2::Model::LambdaContainerParams::WithVolumes
LambdaContainerParams & WithVolumes(const Aws::Vector< LambdaVolumeMount > &value)
Definition: LambdaContainerParams.h:116
Aws::GreengrassV2::Model::LambdaContainerParams::SetDevices
void SetDevices(Aws::Vector< LambdaDeviceMount > &&value)
Definition: LambdaContainerParams.h:152
Aws::GreengrassV2::Model::LambdaVolumeMount
Definition: LambdaVolumeMount.h:36
Aws::GreengrassV2::Model::LambdaContainerParams::VolumesHasBeenSet
bool VolumesHasBeenSet() const
Definition: LambdaContainerParams.h:101
Aws::GreengrassV2::Model::LambdaContainerParams::AddDevices
LambdaContainerParams & AddDevices(LambdaDeviceMount &&value)
Definition: LambdaContainerParams.h:172
Aws::GreengrassV2::Model::LambdaDeviceMount
Definition: LambdaDeviceMount.h:34
Aws::GreengrassV2::Model::LambdaContainerParams::GetMemorySizeInKB
int GetMemorySizeInKB() const
Definition: LambdaContainerParams.h:47
Aws::GreengrassV2::Model::LambdaContainerParams::GetVolumes
const Aws::Vector< LambdaVolumeMount > & GetVolumes() const
Definition: LambdaContainerParams.h:96
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::LambdaContainerParams::MemorySizeInKBHasBeenSet
bool MemorySizeInKBHasBeenSet() const
Definition: LambdaContainerParams.h:53
Aws::GreengrassV2::Model::LambdaContainerParams::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::GreengrassV2::Model::LambdaContainerParams::SetDevices
void SetDevices(const Aws::Vector< LambdaDeviceMount > &value)
Definition: LambdaContainerParams.h:147
Aws::GreengrassV2::Model::LambdaContainerParams::SetVolumes
void SetVolumes(Aws::Vector< LambdaVolumeMount > &&value)
Definition: LambdaContainerParams.h:111
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::LambdaContainerParams::WithDevices
LambdaContainerParams & WithDevices(const Aws::Vector< LambdaDeviceMount > &value)
Definition: LambdaContainerParams.h:157
Aws::GreengrassV2::Model::LambdaContainerParams::WithDevices
LambdaContainerParams & WithDevices(Aws::Vector< LambdaDeviceMount > &&value)
Definition: LambdaContainerParams.h:162
Aws::GreengrassV2::Model::LambdaContainerParams::operator=
LambdaContainerParams & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::LambdaContainerParams::GetDevices
const Aws::Vector< LambdaDeviceMount > & GetDevices() const
Definition: LambdaContainerParams.h:137
Aws::GreengrassV2::Model::LambdaContainerParams::MountROSysfsHasBeenSet
bool MountROSysfsHasBeenSet() const
Definition: LambdaContainerParams.h:78
Aws::GreengrassV2::Model::LambdaContainerParams::WithMemorySizeInKB
LambdaContainerParams & WithMemorySizeInKB(int value)
Definition: LambdaContainerParams.h:65
LambdaVolumeMount.h
Aws::GreengrassV2::Model::LambdaContainerParams::SetMountROSysfs
void SetMountROSysfs(bool value)
Definition: LambdaContainerParams.h:84
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
LambdaDeviceMount.h
Aws::GreengrassV2::Model::LambdaContainerParams::AddDevices
LambdaContainerParams & AddDevices(const LambdaDeviceMount &value)
Definition: LambdaContainerParams.h:167
Aws::GreengrassV2::Model::LambdaContainerParams::LambdaContainerParams
LambdaContainerParams()
Aws::GreengrassV2::Model::LambdaContainerParams::GetMountROSysfs
bool GetMountROSysfs() const
Definition: LambdaContainerParams.h:72
Aws::GreengrassV2::Model::LambdaContainerParams
Definition: LambdaContainerParams.h:35
Aws::GreengrassV2::Model::LambdaContainerParams::SetMemorySizeInKB
void SetMemorySizeInKB(int value)
Definition: LambdaContainerParams.h:59
Aws::GreengrassV2::Model::LambdaContainerParams::LambdaContainerParams
LambdaContainerParams(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::LambdaContainerParams::AddVolumes
LambdaContainerParams & AddVolumes(LambdaVolumeMount &&value)
Definition: LambdaContainerParams.h:131
Aws::GreengrassV2::Model::LambdaContainerParams::DevicesHasBeenSet
bool DevicesHasBeenSet() const
Definition: LambdaContainerParams.h:142
Aws::GreengrassV2::Model::LambdaContainerParams::WithMountROSysfs
LambdaContainerParams & WithMountROSysfs(bool value)
Definition: LambdaContainerParams.h:90
Aws::GreengrassV2::Model::LambdaContainerParams::AddVolumes
LambdaContainerParams & AddVolumes(const LambdaVolumeMount &value)
Definition: LambdaContainerParams.h:126
Aws::GreengrassV2::Model::LambdaContainerParams::SetVolumes
void SetVolumes(const Aws::Vector< LambdaVolumeMount > &value)
Definition: LambdaContainerParams.h:106
Aws::GreengrassV2::Model::LambdaContainerParams::WithVolumes
LambdaContainerParams & WithVolumes(Aws::Vector< LambdaVolumeMount > &&value)
Definition: LambdaContainerParams.h:121