AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename VolumesT = Aws::Vector<LambdaVolumeMount>>
72 void SetVolumes(VolumesT&& value) { m_volumesHasBeenSet = true; m_volumes = std::forward<VolumesT>(value); }
73 template<typename VolumesT = Aws::Vector<LambdaVolumeMount>>
74 LambdaContainerParams& WithVolumes(VolumesT&& value) { SetVolumes(std::forward<VolumesT>(value)); return *this;}
75 template<typename VolumesT = LambdaVolumeMount>
76 LambdaContainerParams& AddVolumes(VolumesT&& value) { m_volumesHasBeenSet = true; m_volumes.emplace_back(std::forward<VolumesT>(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 template<typename DevicesT = Aws::Vector<LambdaDeviceMount>>
86 void SetDevices(DevicesT&& value) { m_devicesHasBeenSet = true; m_devices = std::forward<DevicesT>(value); }
87 template<typename DevicesT = Aws::Vector<LambdaDeviceMount>>
88 LambdaContainerParams& WithDevices(DevicesT&& value) { SetDevices(std::forward<DevicesT>(value)); return *this;}
89 template<typename DevicesT = LambdaDeviceMount>
90 LambdaContainerParams& AddDevices(DevicesT&& value) { m_devicesHasBeenSet = true; m_devices.emplace_back(std::forward<DevicesT>(value)); return *this; }
92 private:
93
94 int m_memorySizeInKB{0};
95 bool m_memorySizeInKBHasBeenSet = false;
96
97 bool m_mountROSysfs{false};
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 & AddDevices(DevicesT &&value)
LambdaContainerParams & WithMemorySizeInKB(int value)
AWS_GREENGRASSV2_API LambdaContainerParams & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASSV2_API LambdaContainerParams()=default
LambdaContainerParams & WithMountROSysfs(bool value)
const Aws::Vector< LambdaVolumeMount > & GetVolumes() const
AWS_GREENGRASSV2_API LambdaContainerParams(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< LambdaDeviceMount > & GetDevices() const
LambdaContainerParams & WithVolumes(VolumesT &&value)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
LambdaContainerParams & AddVolumes(VolumesT &&value)
LambdaContainerParams & WithDevices(DevicesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue