AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
LambdaContainerParams.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
9#include <aws/greengrassv2/model/LambdaDeviceMount.h>
10#include <aws/greengrassv2/model/LambdaVolumeMount.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GreengrassV2 {
22namespace Model {
23
31 public:
32 AWS_GREENGRASSV2_API LambdaContainerParams() = default;
33 AWS_GREENGRASSV2_API LambdaContainerParams(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline int GetMemorySizeInKB() const { return m_memorySizeInKB; }
43 inline bool MemorySizeInKBHasBeenSet() const { return m_memorySizeInKBHasBeenSet; }
44 inline void SetMemorySizeInKB(int value) {
45 m_memorySizeInKBHasBeenSet = true;
46 m_memorySizeInKB = value;
47 }
49 SetMemorySizeInKB(value);
50 return *this;
51 }
53
55
59 inline bool GetMountROSysfs() const { return m_mountROSysfs; }
60 inline bool MountROSysfsHasBeenSet() const { return m_mountROSysfsHasBeenSet; }
61 inline void SetMountROSysfs(bool value) {
62 m_mountROSysfsHasBeenSet = true;
63 m_mountROSysfs = value;
64 }
66 SetMountROSysfs(value);
67 return *this;
68 }
70
72
75 inline const Aws::Vector<LambdaVolumeMount>& GetVolumes() const { return m_volumes; }
76 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
77 template <typename VolumesT = Aws::Vector<LambdaVolumeMount>>
78 void SetVolumes(VolumesT&& value) {
79 m_volumesHasBeenSet = true;
80 m_volumes = std::forward<VolumesT>(value);
81 }
82 template <typename VolumesT = Aws::Vector<LambdaVolumeMount>>
84 SetVolumes(std::forward<VolumesT>(value));
85 return *this;
86 }
87 template <typename VolumesT = LambdaVolumeMount>
88 LambdaContainerParams& AddVolumes(VolumesT&& value) {
89 m_volumesHasBeenSet = true;
90 m_volumes.emplace_back(std::forward<VolumesT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Vector<LambdaDeviceMount>& GetDevices() const { return m_devices; }
100 inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
101 template <typename DevicesT = Aws::Vector<LambdaDeviceMount>>
102 void SetDevices(DevicesT&& value) {
103 m_devicesHasBeenSet = true;
104 m_devices = std::forward<DevicesT>(value);
105 }
106 template <typename DevicesT = Aws::Vector<LambdaDeviceMount>>
108 SetDevices(std::forward<DevicesT>(value));
109 return *this;
110 }
111 template <typename DevicesT = LambdaDeviceMount>
113 m_devicesHasBeenSet = true;
114 m_devices.emplace_back(std::forward<DevicesT>(value));
115 return *this;
116 }
118 private:
119 int m_memorySizeInKB{0};
120
121 bool m_mountROSysfs{false};
122
124
126 bool m_memorySizeInKBHasBeenSet = false;
127 bool m_mountROSysfsHasBeenSet = false;
128 bool m_volumesHasBeenSet = false;
129 bool m_devicesHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace GreengrassV2
134} // 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