AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LambdaContainerParams.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/greengrassv2/model/LambdaVolumeMount.h>
10#include <aws/greengrassv2/model/LambdaDeviceMount.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 GreengrassV2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GREENGRASSV2_API LambdaContainerParams();
38 AWS_GREENGRASSV2_API LambdaContainerParams(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline int GetMemorySizeInKB() const{ return m_memorySizeInKB; }
49 inline bool MemorySizeInKBHasBeenSet() const { return m_memorySizeInKBHasBeenSet; }
50 inline void SetMemorySizeInKB(int value) { m_memorySizeInKBHasBeenSet = true; m_memorySizeInKB = value; }
51 inline LambdaContainerParams& WithMemorySizeInKB(int value) { SetMemorySizeInKB(value); return *this;}
53
55
59 inline bool GetMountROSysfs() const{ return m_mountROSysfs; }
60 inline bool MountROSysfsHasBeenSet() const { return m_mountROSysfsHasBeenSet; }
61 inline void SetMountROSysfs(bool value) { m_mountROSysfsHasBeenSet = true; m_mountROSysfs = value; }
62 inline LambdaContainerParams& WithMountROSysfs(bool value) { SetMountROSysfs(value); return *this;}
64
66
69 inline const Aws::Vector<LambdaVolumeMount>& GetVolumes() const{ return m_volumes; }
70 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
71 inline void SetVolumes(const Aws::Vector<LambdaVolumeMount>& value) { m_volumesHasBeenSet = true; m_volumes = value; }
72 inline void SetVolumes(Aws::Vector<LambdaVolumeMount>&& value) { m_volumesHasBeenSet = true; m_volumes = std::move(value); }
73 inline LambdaContainerParams& WithVolumes(const Aws::Vector<LambdaVolumeMount>& value) { SetVolumes(value); return *this;}
74 inline LambdaContainerParams& WithVolumes(Aws::Vector<LambdaVolumeMount>&& value) { SetVolumes(std::move(value)); return *this;}
75 inline LambdaContainerParams& AddVolumes(const LambdaVolumeMount& value) { m_volumesHasBeenSet = true; m_volumes.push_back(value); return *this; }
76 inline LambdaContainerParams& AddVolumes(LambdaVolumeMount&& value) { m_volumesHasBeenSet = true; m_volumes.push_back(std::move(value)); return *this; }
78
80
83 inline const Aws::Vector<LambdaDeviceMount>& GetDevices() const{ return m_devices; }
84 inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
85 inline void SetDevices(const Aws::Vector<LambdaDeviceMount>& value) { m_devicesHasBeenSet = true; m_devices = value; }
86 inline void SetDevices(Aws::Vector<LambdaDeviceMount>&& value) { m_devicesHasBeenSet = true; m_devices = std::move(value); }
87 inline LambdaContainerParams& WithDevices(const Aws::Vector<LambdaDeviceMount>& value) { SetDevices(value); return *this;}
88 inline LambdaContainerParams& WithDevices(Aws::Vector<LambdaDeviceMount>&& value) { SetDevices(std::move(value)); return *this;}
89 inline LambdaContainerParams& AddDevices(const LambdaDeviceMount& value) { m_devicesHasBeenSet = true; m_devices.push_back(value); return *this; }
90 inline LambdaContainerParams& AddDevices(LambdaDeviceMount&& value) { m_devicesHasBeenSet = true; m_devices.push_back(std::move(value)); return *this; }
92 private:
93
94 int m_memorySizeInKB;
95 bool m_memorySizeInKBHasBeenSet = false;
96
97 bool m_mountROSysfs;
98 bool m_mountROSysfsHasBeenSet = false;
99
101 bool m_volumesHasBeenSet = false;
102
104 bool m_devicesHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace GreengrassV2
109} // namespace Aws
LambdaContainerParams & WithDevices(const Aws::Vector< LambdaDeviceMount > &value)
LambdaContainerParams & WithVolumes(const Aws::Vector< LambdaVolumeMount > &value)
LambdaContainerParams & WithMemorySizeInKB(int value)
void SetVolumes(const Aws::Vector< LambdaVolumeMount > &value)
AWS_GREENGRASSV2_API LambdaContainerParams & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDevices(Aws::Vector< LambdaDeviceMount > &&value)
LambdaContainerParams & WithMountROSysfs(bool value)
void SetVolumes(Aws::Vector< LambdaVolumeMount > &&value)
const Aws::Vector< LambdaVolumeMount > & GetVolumes() const
LambdaContainerParams & WithVolumes(Aws::Vector< LambdaVolumeMount > &&value)
LambdaContainerParams & WithDevices(Aws::Vector< LambdaDeviceMount > &&value)
AWS_GREENGRASSV2_API LambdaContainerParams(Aws::Utils::Json::JsonView jsonValue)
void SetDevices(const Aws::Vector< LambdaDeviceMount > &value)
LambdaContainerParams & AddDevices(LambdaDeviceMount &&value)
const Aws::Vector< LambdaDeviceMount > & GetDevices() const
LambdaContainerParams & AddVolumes(LambdaVolumeMount &&value)
LambdaContainerParams & AddVolumes(const LambdaVolumeMount &value)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
LambdaContainerParams & AddDevices(const LambdaDeviceMount &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue