AWS SDK for C++

AWS SDK for C++ Version 1.11.786

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
177 inline const Aws::String& GetLastModified() const { return m_lastModified; }
178 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
179 template <typename LastModifiedT = Aws::String>
180 void SetLastModified(LastModifiedT&& value) {
181 m_lastModifiedHasBeenSet = true;
182 m_lastModified = std::forward<LastModifiedT>(value);
183 }
184 template <typename LastModifiedT = Aws::String>
186 SetLastModified(std::forward<LastModifiedT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::Vector<AwsLambdaFunctionLayer>& GetLayers() const { return m_layers; }
196 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
197 template <typename LayersT = Aws::Vector<AwsLambdaFunctionLayer>>
198 void SetLayers(LayersT&& value) {
199 m_layersHasBeenSet = true;
200 m_layers = std::forward<LayersT>(value);
201 }
202 template <typename LayersT = Aws::Vector<AwsLambdaFunctionLayer>>
204 SetLayers(std::forward<LayersT>(value));
205 return *this;
206 }
207 template <typename LayersT = AwsLambdaFunctionLayer>
209 m_layersHasBeenSet = true;
210 m_layers.emplace_back(std::forward<LayersT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::String& GetMasterArn() const { return m_masterArn; }
220 inline bool MasterArnHasBeenSet() const { return m_masterArnHasBeenSet; }
221 template <typename MasterArnT = Aws::String>
222 void SetMasterArn(MasterArnT&& value) {
223 m_masterArnHasBeenSet = true;
224 m_masterArn = std::forward<MasterArnT>(value);
225 }
226 template <typename MasterArnT = Aws::String>
228 SetMasterArn(std::forward<MasterArnT>(value));
229 return *this;
230 }
232
234
237 inline int GetMemorySize() const { return m_memorySize; }
238 inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; }
239 inline void SetMemorySize(int value) {
240 m_memorySizeHasBeenSet = true;
241 m_memorySize = value;
242 }
244 SetMemorySize(value);
245 return *this;
246 }
248
250
253 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
254 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
255 template <typename RevisionIdT = Aws::String>
256 void SetRevisionId(RevisionIdT&& value) {
257 m_revisionIdHasBeenSet = true;
258 m_revisionId = std::forward<RevisionIdT>(value);
259 }
260 template <typename RevisionIdT = Aws::String>
262 SetRevisionId(std::forward<RevisionIdT>(value));
263 return *this;
264 }
266
268
271 inline const Aws::String& GetRole() const { return m_role; }
272 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
273 template <typename RoleT = Aws::String>
274 void SetRole(RoleT&& value) {
275 m_roleHasBeenSet = true;
276 m_role = std::forward<RoleT>(value);
277 }
278 template <typename RoleT = Aws::String>
280 SetRole(std::forward<RoleT>(value));
281 return *this;
282 }
284
286
289 inline const Aws::String& GetRuntime() const { return m_runtime; }
290 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
291 template <typename RuntimeT = Aws::String>
292 void SetRuntime(RuntimeT&& value) {
293 m_runtimeHasBeenSet = true;
294 m_runtime = std::forward<RuntimeT>(value);
295 }
296 template <typename RuntimeT = Aws::String>
298 SetRuntime(std::forward<RuntimeT>(value));
299 return *this;
300 }
302
304
308 inline int GetTimeout() const { return m_timeout; }
309 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
310 inline void SetTimeout(int value) {
311 m_timeoutHasBeenSet = true;
312 m_timeout = value;
313 }
315 SetTimeout(value);
316 return *this;
317 }
319
321
324 inline const AwsLambdaFunctionTracingConfig& GetTracingConfig() const { return m_tracingConfig; }
325 inline bool TracingConfigHasBeenSet() const { return m_tracingConfigHasBeenSet; }
326 template <typename TracingConfigT = AwsLambdaFunctionTracingConfig>
327 void SetTracingConfig(TracingConfigT&& value) {
328 m_tracingConfigHasBeenSet = true;
329 m_tracingConfig = std::forward<TracingConfigT>(value);
330 }
331 template <typename TracingConfigT = AwsLambdaFunctionTracingConfig>
333 SetTracingConfig(std::forward<TracingConfigT>(value));
334 return *this;
335 }
337
339
342 inline const AwsLambdaFunctionVpcConfig& GetVpcConfig() const { return m_vpcConfig; }
343 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
344 template <typename VpcConfigT = AwsLambdaFunctionVpcConfig>
345 void SetVpcConfig(VpcConfigT&& value) {
346 m_vpcConfigHasBeenSet = true;
347 m_vpcConfig = std::forward<VpcConfigT>(value);
348 }
349 template <typename VpcConfigT = AwsLambdaFunctionVpcConfig>
351 SetVpcConfig(std::forward<VpcConfigT>(value));
352 return *this;
353 }
355
357
360 inline const Aws::String& GetVersion() const { return m_version; }
361 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
362 template <typename VersionT = Aws::String>
363 void SetVersion(VersionT&& value) {
364 m_versionHasBeenSet = true;
365 m_version = std::forward<VersionT>(value);
366 }
367 template <typename VersionT = Aws::String>
369 SetVersion(std::forward<VersionT>(value));
370 return *this;
371 }
373
375
379 inline const Aws::Vector<Aws::String>& GetArchitectures() const { return m_architectures; }
380 inline bool ArchitecturesHasBeenSet() const { return m_architecturesHasBeenSet; }
381 template <typename ArchitecturesT = Aws::Vector<Aws::String>>
382 void SetArchitectures(ArchitecturesT&& value) {
383 m_architecturesHasBeenSet = true;
384 m_architectures = std::forward<ArchitecturesT>(value);
385 }
386 template <typename ArchitecturesT = Aws::Vector<Aws::String>>
388 SetArchitectures(std::forward<ArchitecturesT>(value));
389 return *this;
390 }
391 template <typename ArchitecturesT = Aws::String>
393 m_architecturesHasBeenSet = true;
394 m_architectures.emplace_back(std::forward<ArchitecturesT>(value));
395 return *this;
396 }
398
400
405 inline const Aws::String& GetPackageType() const { return m_packageType; }
406 inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; }
407 template <typename PackageTypeT = Aws::String>
408 void SetPackageType(PackageTypeT&& value) {
409 m_packageTypeHasBeenSet = true;
410 m_packageType = std::forward<PackageTypeT>(value);
411 }
412 template <typename PackageTypeT = Aws::String>
414 SetPackageType(std::forward<PackageTypeT>(value));
415 return *this;
416 }
418 private:
420
421 Aws::String m_codeSha256;
422
423 AwsLambdaFunctionDeadLetterConfig m_deadLetterConfig;
424
425 AwsLambdaFunctionEnvironment m_environment;
426
427 Aws::String m_functionName;
428
429 Aws::String m_handler;
430
431 Aws::String m_kmsKeyArn;
432
433 Aws::String m_lastModified;
434
436
437 Aws::String m_masterArn;
438
439 int m_memorySize{0};
440
441 Aws::String m_revisionId;
442
443 Aws::String m_role;
444
445 Aws::String m_runtime;
446
447 int m_timeout{0};
448
449 AwsLambdaFunctionTracingConfig m_tracingConfig;
450
451 AwsLambdaFunctionVpcConfig m_vpcConfig;
452
453 Aws::String m_version;
454
455 Aws::Vector<Aws::String> m_architectures;
456
457 Aws::String m_packageType;
458 bool m_codeHasBeenSet = false;
459 bool m_codeSha256HasBeenSet = false;
460 bool m_deadLetterConfigHasBeenSet = false;
461 bool m_environmentHasBeenSet = false;
462 bool m_functionNameHasBeenSet = false;
463 bool m_handlerHasBeenSet = false;
464 bool m_kmsKeyArnHasBeenSet = false;
465 bool m_lastModifiedHasBeenSet = false;
466 bool m_layersHasBeenSet = false;
467 bool m_masterArnHasBeenSet = false;
468 bool m_memorySizeHasBeenSet = false;
469 bool m_revisionIdHasBeenSet = false;
470 bool m_roleHasBeenSet = false;
471 bool m_runtimeHasBeenSet = false;
472 bool m_timeoutHasBeenSet = false;
473 bool m_tracingConfigHasBeenSet = false;
474 bool m_vpcConfigHasBeenSet = false;
475 bool m_versionHasBeenSet = false;
476 bool m_architecturesHasBeenSet = false;
477 bool m_packageTypeHasBeenSet = false;
478};
479
480} // namespace Model
481} // namespace SecurityHub
482} // 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