AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
ServerlessFunction.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/inspector2/Inspector2_EXPORTS.h>
11#include <aws/inspector2/model/Architecture.h>
12#include <aws/inspector2/model/PackageType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2 {
24namespace Model {
25
33 public:
34 AWS_INSPECTOR2_API ServerlessFunction() = default;
35 AWS_INSPECTOR2_API ServerlessFunction(Aws::Utils::Json::JsonView jsonValue);
37 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetServerlessFunctionName() const { return m_serverlessFunctionName; }
44 inline bool ServerlessFunctionNameHasBeenSet() const { return m_serverlessFunctionNameHasBeenSet; }
45 template <typename ServerlessFunctionNameT = Aws::String>
46 void SetServerlessFunctionName(ServerlessFunctionNameT&& value) {
47 m_serverlessFunctionNameHasBeenSet = true;
48 m_serverlessFunctionName = std::forward<ServerlessFunctionNameT>(value);
49 }
50 template <typename ServerlessFunctionNameT = Aws::String>
51 ServerlessFunction& WithServerlessFunctionName(ServerlessFunctionNameT&& value) {
52 SetServerlessFunctionName(std::forward<ServerlessFunctionNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetRuntime() const { return m_runtime; }
62 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
63 template <typename RuntimeT = Aws::String>
64 void SetRuntime(RuntimeT&& value) {
65 m_runtimeHasBeenSet = true;
66 m_runtime = std::forward<RuntimeT>(value);
67 }
68 template <typename RuntimeT = Aws::String>
69 ServerlessFunction& WithRuntime(RuntimeT&& value) {
70 SetRuntime(std::forward<RuntimeT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetVersion() const { return m_version; }
80 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
81 template <typename VersionT = Aws::String>
82 void SetVersion(VersionT&& value) {
83 m_versionHasBeenSet = true;
84 m_version = std::forward<VersionT>(value);
85 }
86 template <typename VersionT = Aws::String>
87 ServerlessFunction& WithVersion(VersionT&& value) {
88 SetVersion(std::forward<VersionT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetCodeDigest() const { return m_codeDigest; }
98 inline bool CodeDigestHasBeenSet() const { return m_codeDigestHasBeenSet; }
99 template <typename CodeDigestT = Aws::String>
100 void SetCodeDigest(CodeDigestT&& value) {
101 m_codeDigestHasBeenSet = true;
102 m_codeDigest = std::forward<CodeDigestT>(value);
103 }
104 template <typename CodeDigestT = Aws::String>
105 ServerlessFunction& WithCodeDigest(CodeDigestT&& value) {
106 SetCodeDigest(std::forward<CodeDigestT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
116 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
117 template <typename LastModifiedAtT = Aws::Utils::DateTime>
118 void SetLastModifiedAt(LastModifiedAtT&& value) {
119 m_lastModifiedAtHasBeenSet = true;
120 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
121 }
122 template <typename LastModifiedAtT = Aws::Utils::DateTime>
123 ServerlessFunction& WithLastModifiedAt(LastModifiedAtT&& value) {
124 SetLastModifiedAt(std::forward<LastModifiedAtT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetNetworkId() const { return m_networkId; }
134 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
135 template <typename NetworkIdT = Aws::String>
136 void SetNetworkId(NetworkIdT&& value) {
137 m_networkIdHasBeenSet = true;
138 m_networkId = std::forward<NetworkIdT>(value);
139 }
140 template <typename NetworkIdT = Aws::String>
141 ServerlessFunction& WithNetworkId(NetworkIdT&& value) {
142 SetNetworkId(std::forward<NetworkIdT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
152 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
153 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
154 void SetSubnetIds(SubnetIdsT&& value) {
155 m_subnetIdsHasBeenSet = true;
156 m_subnetIds = std::forward<SubnetIdsT>(value);
157 }
158 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
159 ServerlessFunction& WithSubnetIds(SubnetIdsT&& value) {
160 SetSubnetIds(std::forward<SubnetIdsT>(value));
161 return *this;
162 }
163 template <typename SubnetIdsT = Aws::String>
164 ServerlessFunction& AddSubnetIds(SubnetIdsT&& value) {
165 m_subnetIdsHasBeenSet = true;
166 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
176 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
177 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
178 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
179 m_securityGroupIdsHasBeenSet = true;
180 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
181 }
182 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
183 ServerlessFunction& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
184 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
185 return *this;
186 }
187 template <typename SecurityGroupIdsT = Aws::String>
188 ServerlessFunction& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
189 m_securityGroupIdsHasBeenSet = true;
190 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
200 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
201 template <typename ExecutionRoleT = Aws::String>
202 void SetExecutionRole(ExecutionRoleT&& value) {
203 m_executionRoleHasBeenSet = true;
204 m_executionRole = std::forward<ExecutionRoleT>(value);
205 }
206 template <typename ExecutionRoleT = Aws::String>
207 ServerlessFunction& WithExecutionRole(ExecutionRoleT&& value) {
208 SetExecutionRole(std::forward<ExecutionRoleT>(value));
209 return *this;
210 }
212
214
217 inline PackageType GetPackageType() const { return m_packageType; }
218 inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; }
219 inline void SetPackageType(PackageType value) {
220 m_packageTypeHasBeenSet = true;
221 m_packageType = value;
222 }
224 SetPackageType(value);
225 return *this;
226 }
228
230
233 inline const Aws::Vector<Architecture>& GetArchitectures() const { return m_architectures; }
234 inline bool ArchitecturesHasBeenSet() const { return m_architecturesHasBeenSet; }
235 template <typename ArchitecturesT = Aws::Vector<Architecture>>
236 void SetArchitectures(ArchitecturesT&& value) {
237 m_architecturesHasBeenSet = true;
238 m_architectures = std::forward<ArchitecturesT>(value);
239 }
240 template <typename ArchitecturesT = Aws::Vector<Architecture>>
241 ServerlessFunction& WithArchitectures(ArchitecturesT&& value) {
242 SetArchitectures(std::forward<ArchitecturesT>(value));
243 return *this;
244 }
246 m_architecturesHasBeenSet = true;
247 m_architectures.push_back(value);
248 return *this;
249 }
251
253
256 inline const Aws::Vector<Aws::String>& GetLayers() const { return m_layers; }
257 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
258 template <typename LayersT = Aws::Vector<Aws::String>>
259 void SetLayers(LayersT&& value) {
260 m_layersHasBeenSet = true;
261 m_layers = std::forward<LayersT>(value);
262 }
263 template <typename LayersT = Aws::Vector<Aws::String>>
264 ServerlessFunction& WithLayers(LayersT&& value) {
265 SetLayers(std::forward<LayersT>(value));
266 return *this;
267 }
268 template <typename LayersT = Aws::String>
269 ServerlessFunction& AddLayers(LayersT&& value) {
270 m_layersHasBeenSet = true;
271 m_layers.emplace_back(std::forward<LayersT>(value));
272 return *this;
273 }
275 private:
276 Aws::String m_serverlessFunctionName;
277
278 Aws::String m_runtime;
279
280 Aws::String m_version;
281
282 Aws::String m_codeDigest;
283
284 Aws::Utils::DateTime m_lastModifiedAt{};
285
286 Aws::String m_networkId;
287
288 Aws::Vector<Aws::String> m_subnetIds;
289
290 Aws::Vector<Aws::String> m_securityGroupIds;
291
292 Aws::String m_executionRole;
293
294 PackageType m_packageType{PackageType::NOT_SET};
295
296 Aws::Vector<Architecture> m_architectures;
297
299 bool m_serverlessFunctionNameHasBeenSet = false;
300 bool m_runtimeHasBeenSet = false;
301 bool m_versionHasBeenSet = false;
302 bool m_codeDigestHasBeenSet = false;
303 bool m_lastModifiedAtHasBeenSet = false;
304 bool m_networkIdHasBeenSet = false;
305 bool m_subnetIdsHasBeenSet = false;
306 bool m_securityGroupIdsHasBeenSet = false;
307 bool m_executionRoleHasBeenSet = false;
308 bool m_packageTypeHasBeenSet = false;
309 bool m_architecturesHasBeenSet = false;
310 bool m_layersHasBeenSet = false;
311};
312
313} // namespace Model
314} // namespace Inspector2
315} // namespace Aws
ServerlessFunction & WithRuntime(RuntimeT &&value)
AWS_INSPECTOR2_API ServerlessFunction & operator=(Aws::Utils::Json::JsonView jsonValue)
ServerlessFunction & WithNetworkId(NetworkIdT &&value)
AWS_INSPECTOR2_API ServerlessFunction(Aws::Utils::Json::JsonView jsonValue)
ServerlessFunction & AddSubnetIds(SubnetIdsT &&value)
ServerlessFunction & WithArchitectures(ArchitecturesT &&value)
ServerlessFunction & WithExecutionRole(ExecutionRoleT &&value)
const Aws::Vector< Architecture > & GetArchitectures() const
ServerlessFunction & WithCodeDigest(CodeDigestT &&value)
ServerlessFunction & WithSubnetIds(SubnetIdsT &&value)
AWS_INSPECTOR2_API ServerlessFunction()=default
ServerlessFunction & AddArchitectures(Architecture value)
void SetExecutionRole(ExecutionRoleT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
void SetLastModifiedAt(LastModifiedAtT &&value)
ServerlessFunction & WithServerlessFunctionName(ServerlessFunctionNameT &&value)
ServerlessFunction & AddSecurityGroupIds(SecurityGroupIdsT &&value)
ServerlessFunction & WithLastModifiedAt(LastModifiedAtT &&value)
ServerlessFunction & WithVersion(VersionT &&value)
ServerlessFunction & WithLayers(LayersT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
const Aws::Vector< Aws::String > & GetLayers() const
const Aws::String & GetServerlessFunctionName() const
void SetServerlessFunctionName(ServerlessFunctionNameT &&value)
void SetArchitectures(ArchitecturesT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::Utils::DateTime & GetLastModifiedAt() const
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
ServerlessFunction & WithSecurityGroupIds(SecurityGroupIdsT &&value)
ServerlessFunction & WithPackageType(PackageType value)
ServerlessFunction & AddLayers(LayersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue