AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AwsLambdaFunctionDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsLambdaFunctionCode.h>
11#include <aws/securityhub/model/AwsLambdaFunctionDeadLetterConfig.h>
12#include <aws/securityhub/model/AwsLambdaFunctionEnvironment.h>
13#include <aws/securityhub/model/AwsLambdaFunctionLayer.h>
14#include <aws/securityhub/model/AwsLambdaFunctionTracingConfig.h>
15#include <aws/securityhub/model/AwsLambdaFunctionVpcConfig.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SecurityHub {
27namespace Model {
28
36 public:
37 AWS_SECURITYHUB_API AwsLambdaFunctionDetails() = default;
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const AwsLambdaFunctionCode& GetCode() const { return m_code; }
47 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
48 template <typename CodeT = AwsLambdaFunctionCode>
49 void SetCode(CodeT&& value) {
50 m_codeHasBeenSet = true;
51 m_code = std::forward<CodeT>(value);
52 }
53 template <typename CodeT = AwsLambdaFunctionCode>
55 SetCode(std::forward<CodeT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetCodeSha256() const { return m_codeSha256; }
65 inline bool CodeSha256HasBeenSet() const { return m_codeSha256HasBeenSet; }
66 template <typename CodeSha256T = Aws::String>
67 void SetCodeSha256(CodeSha256T&& value) {
68 m_codeSha256HasBeenSet = true;
69 m_codeSha256 = std::forward<CodeSha256T>(value);
70 }
71 template <typename CodeSha256T = Aws::String>
73 SetCodeSha256(std::forward<CodeSha256T>(value));
74 return *this;
75 }
77
79
82 inline const AwsLambdaFunctionDeadLetterConfig& GetDeadLetterConfig() const { return m_deadLetterConfig; }
83 inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
84 template <typename DeadLetterConfigT = AwsLambdaFunctionDeadLetterConfig>
85 void SetDeadLetterConfig(DeadLetterConfigT&& value) {
86 m_deadLetterConfigHasBeenSet = true;
87 m_deadLetterConfig = std::forward<DeadLetterConfigT>(value);
88 }
89 template <typename DeadLetterConfigT = AwsLambdaFunctionDeadLetterConfig>
90 AwsLambdaFunctionDetails& WithDeadLetterConfig(DeadLetterConfigT&& value) {
91 SetDeadLetterConfig(std::forward<DeadLetterConfigT>(value));
92 return *this;
93 }
95
97
100 inline const AwsLambdaFunctionEnvironment& GetEnvironment() const { return m_environment; }
101 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
102 template <typename EnvironmentT = AwsLambdaFunctionEnvironment>
103 void SetEnvironment(EnvironmentT&& value) {
104 m_environmentHasBeenSet = true;
105 m_environment = std::forward<EnvironmentT>(value);
106 }
107 template <typename EnvironmentT = AwsLambdaFunctionEnvironment>
109 SetEnvironment(std::forward<EnvironmentT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetFunctionName() const { return m_functionName; }
119 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
120 template <typename FunctionNameT = Aws::String>
121 void SetFunctionName(FunctionNameT&& value) {
122 m_functionNameHasBeenSet = true;
123 m_functionName = std::forward<FunctionNameT>(value);
124 }
125 template <typename FunctionNameT = Aws::String>
127 SetFunctionName(std::forward<FunctionNameT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetHandler() const { return m_handler; }
137 inline bool HandlerHasBeenSet() const { return m_handlerHasBeenSet; }
138 template <typename HandlerT = Aws::String>
139 void SetHandler(HandlerT&& value) {
140 m_handlerHasBeenSet = true;
141 m_handler = std::forward<HandlerT>(value);
142 }
143 template <typename HandlerT = Aws::String>
145 SetHandler(std::forward<HandlerT>(value));
146 return *this;
147 }
149
151
156 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
157 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
158 template <typename KmsKeyArnT = Aws::String>
159 void SetKmsKeyArn(KmsKeyArnT&& value) {
160 m_kmsKeyArnHasBeenSet = true;
161 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
162 }
163 template <typename KmsKeyArnT = Aws::String>
165 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
166 return *this;
167 }
169
171
176 inline const Aws::String& GetLastModified() const { return m_lastModified; }
177 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
178 template <typename LastModifiedT = Aws::String>
179 void SetLastModified(LastModifiedT&& value) {
180 m_lastModifiedHasBeenSet = true;
181 m_lastModified = std::forward<LastModifiedT>(value);
182 }
183 template <typename LastModifiedT = Aws::String>
185 SetLastModified(std::forward<LastModifiedT>(value));
186 return *this;
187 }
189
191
194 inline const Aws::Vector<AwsLambdaFunctionLayer>& GetLayers() const { return m_layers; }
195 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
196 template <typename LayersT = Aws::Vector<AwsLambdaFunctionLayer>>
197 void SetLayers(LayersT&& value) {
198 m_layersHasBeenSet = true;
199 m_layers = std::forward<LayersT>(value);
200 }
201 template <typename LayersT = Aws::Vector<AwsLambdaFunctionLayer>>
203 SetLayers(std::forward<LayersT>(value));
204 return *this;
205 }
206 template <typename LayersT = AwsLambdaFunctionLayer>
208 m_layersHasBeenSet = true;
209 m_layers.emplace_back(std::forward<LayersT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::String& GetMasterArn() const { return m_masterArn; }
219 inline bool MasterArnHasBeenSet() const { return m_masterArnHasBeenSet; }
220 template <typename MasterArnT = Aws::String>
221 void SetMasterArn(MasterArnT&& value) {
222 m_masterArnHasBeenSet = true;
223 m_masterArn = std::forward<MasterArnT>(value);
224 }
225 template <typename MasterArnT = Aws::String>
227 SetMasterArn(std::forward<MasterArnT>(value));
228 return *this;
229 }
231
233
236 inline int GetMemorySize() const { return m_memorySize; }
237 inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; }
238 inline void SetMemorySize(int value) {
239 m_memorySizeHasBeenSet = true;
240 m_memorySize = value;
241 }
243 SetMemorySize(value);
244 return *this;
245 }
247
249
252 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
253 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
254 template <typename RevisionIdT = Aws::String>
255 void SetRevisionId(RevisionIdT&& value) {
256 m_revisionIdHasBeenSet = true;
257 m_revisionId = std::forward<RevisionIdT>(value);
258 }
259 template <typename RevisionIdT = Aws::String>
261 SetRevisionId(std::forward<RevisionIdT>(value));
262 return *this;
263 }
265
267
270 inline const Aws::String& GetRole() const { return m_role; }
271 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
272 template <typename RoleT = Aws::String>
273 void SetRole(RoleT&& value) {
274 m_roleHasBeenSet = true;
275 m_role = std::forward<RoleT>(value);
276 }
277 template <typename RoleT = Aws::String>
279 SetRole(std::forward<RoleT>(value));
280 return *this;
281 }
283
285
288 inline const Aws::String& GetRuntime() const { return m_runtime; }
289 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
290 template <typename RuntimeT = Aws::String>
291 void SetRuntime(RuntimeT&& value) {
292 m_runtimeHasBeenSet = true;
293 m_runtime = std::forward<RuntimeT>(value);
294 }
295 template <typename RuntimeT = Aws::String>
297 SetRuntime(std::forward<RuntimeT>(value));
298 return *this;
299 }
301
303
307 inline int GetTimeout() const { return m_timeout; }
308 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
309 inline void SetTimeout(int value) {
310 m_timeoutHasBeenSet = true;
311 m_timeout = value;
312 }
314 SetTimeout(value);
315 return *this;
316 }
318
320
323 inline const AwsLambdaFunctionTracingConfig& GetTracingConfig() const { return m_tracingConfig; }
324 inline bool TracingConfigHasBeenSet() const { return m_tracingConfigHasBeenSet; }
325 template <typename TracingConfigT = AwsLambdaFunctionTracingConfig>
326 void SetTracingConfig(TracingConfigT&& value) {
327 m_tracingConfigHasBeenSet = true;
328 m_tracingConfig = std::forward<TracingConfigT>(value);
329 }
330 template <typename TracingConfigT = AwsLambdaFunctionTracingConfig>
332 SetTracingConfig(std::forward<TracingConfigT>(value));
333 return *this;
334 }
336
338
341 inline const AwsLambdaFunctionVpcConfig& GetVpcConfig() const { return m_vpcConfig; }
342 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
343 template <typename VpcConfigT = AwsLambdaFunctionVpcConfig>
344 void SetVpcConfig(VpcConfigT&& value) {
345 m_vpcConfigHasBeenSet = true;
346 m_vpcConfig = std::forward<VpcConfigT>(value);
347 }
348 template <typename VpcConfigT = AwsLambdaFunctionVpcConfig>
350 SetVpcConfig(std::forward<VpcConfigT>(value));
351 return *this;
352 }
354
356
359 inline const Aws::String& GetVersion() const { return m_version; }
360 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
361 template <typename VersionT = Aws::String>
362 void SetVersion(VersionT&& value) {
363 m_versionHasBeenSet = true;
364 m_version = std::forward<VersionT>(value);
365 }
366 template <typename VersionT = Aws::String>
368 SetVersion(std::forward<VersionT>(value));
369 return *this;
370 }
372
374
378 inline const Aws::Vector<Aws::String>& GetArchitectures() const { return m_architectures; }
379 inline bool ArchitecturesHasBeenSet() const { return m_architecturesHasBeenSet; }
380 template <typename ArchitecturesT = Aws::Vector<Aws::String>>
381 void SetArchitectures(ArchitecturesT&& value) {
382 m_architecturesHasBeenSet = true;
383 m_architectures = std::forward<ArchitecturesT>(value);
384 }
385 template <typename ArchitecturesT = Aws::Vector<Aws::String>>
387 SetArchitectures(std::forward<ArchitecturesT>(value));
388 return *this;
389 }
390 template <typename ArchitecturesT = Aws::String>
392 m_architecturesHasBeenSet = true;
393 m_architectures.emplace_back(std::forward<ArchitecturesT>(value));
394 return *this;
395 }
397
399
404 inline const Aws::String& GetPackageType() const { return m_packageType; }
405 inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; }
406 template <typename PackageTypeT = Aws::String>
407 void SetPackageType(PackageTypeT&& value) {
408 m_packageTypeHasBeenSet = true;
409 m_packageType = std::forward<PackageTypeT>(value);
410 }
411 template <typename PackageTypeT = Aws::String>
413 SetPackageType(std::forward<PackageTypeT>(value));
414 return *this;
415 }
417 private:
419
420 Aws::String m_codeSha256;
421
422 AwsLambdaFunctionDeadLetterConfig m_deadLetterConfig;
423
424 AwsLambdaFunctionEnvironment m_environment;
425
426 Aws::String m_functionName;
427
428 Aws::String m_handler;
429
430 Aws::String m_kmsKeyArn;
431
432 Aws::String m_lastModified;
433
435
436 Aws::String m_masterArn;
437
438 int m_memorySize{0};
439
440 Aws::String m_revisionId;
441
442 Aws::String m_role;
443
444 Aws::String m_runtime;
445
446 int m_timeout{0};
447
448 AwsLambdaFunctionTracingConfig m_tracingConfig;
449
450 AwsLambdaFunctionVpcConfig m_vpcConfig;
451
452 Aws::String m_version;
453
454 Aws::Vector<Aws::String> m_architectures;
455
456 Aws::String m_packageType;
457 bool m_codeHasBeenSet = false;
458 bool m_codeSha256HasBeenSet = false;
459 bool m_deadLetterConfigHasBeenSet = false;
460 bool m_environmentHasBeenSet = false;
461 bool m_functionNameHasBeenSet = false;
462 bool m_handlerHasBeenSet = false;
463 bool m_kmsKeyArnHasBeenSet = false;
464 bool m_lastModifiedHasBeenSet = false;
465 bool m_layersHasBeenSet = false;
466 bool m_masterArnHasBeenSet = false;
467 bool m_memorySizeHasBeenSet = false;
468 bool m_revisionIdHasBeenSet = false;
469 bool m_roleHasBeenSet = false;
470 bool m_runtimeHasBeenSet = false;
471 bool m_timeoutHasBeenSet = false;
472 bool m_tracingConfigHasBeenSet = false;
473 bool m_vpcConfigHasBeenSet = false;
474 bool m_versionHasBeenSet = false;
475 bool m_architecturesHasBeenSet = false;
476 bool m_packageTypeHasBeenSet = false;
477};
478
479} // namespace Model
480} // namespace SecurityHub
481} // namespace Aws
AWS_SECURITYHUB_API AwsLambdaFunctionDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsLambdaFunctionDetails & WithArchitectures(ArchitecturesT &&value)
AwsLambdaFunctionDetails & WithCodeSha256(CodeSha256T &&value)
AwsLambdaFunctionDetails & WithVpcConfig(VpcConfigT &&value)
AwsLambdaFunctionDetails & WithRuntime(RuntimeT &&value)
AwsLambdaFunctionDetails & AddLayers(LayersT &&value)
AwsLambdaFunctionDetails & WithPackageType(PackageTypeT &&value)
const AwsLambdaFunctionEnvironment & GetEnvironment() const
AwsLambdaFunctionDetails & WithRevisionId(RevisionIdT &&value)
AwsLambdaFunctionDetails & WithEnvironment(EnvironmentT &&value)
const Aws::Vector< Aws::String > & GetArchitectures() const
AwsLambdaFunctionDetails & WithVersion(VersionT &&value)
AwsLambdaFunctionDetails & WithLayers(LayersT &&value)
AWS_SECURITYHUB_API AwsLambdaFunctionDetails(Aws::Utils::Json::JsonView jsonValue)
AwsLambdaFunctionDetails & WithCode(CodeT &&value)
const AwsLambdaFunctionVpcConfig & GetVpcConfig() const
AwsLambdaFunctionDetails & AddArchitectures(ArchitecturesT &&value)
AWS_SECURITYHUB_API AwsLambdaFunctionDetails()=default
AwsLambdaFunctionDetails & WithFunctionName(FunctionNameT &&value)
AwsLambdaFunctionDetails & WithDeadLetterConfig(DeadLetterConfigT &&value)
AwsLambdaFunctionDetails & WithKmsKeyArn(KmsKeyArnT &&value)
AwsLambdaFunctionDetails & WithLastModified(LastModifiedT &&value)
AwsLambdaFunctionDetails & WithRole(RoleT &&value)
const Aws::Vector< AwsLambdaFunctionLayer > & GetLayers() const
AwsLambdaFunctionDetails & WithTracingConfig(TracingConfigT &&value)
const AwsLambdaFunctionDeadLetterConfig & GetDeadLetterConfig() const
AwsLambdaFunctionDetails & WithHandler(HandlerT &&value)
AwsLambdaFunctionDetails & WithMasterArn(MasterArnT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const AwsLambdaFunctionTracingConfig & GetTracingConfig() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue