AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsLambdaFunctionDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/AwsLambdaFunctionCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityhub/model/AwsLambdaFunctionDeadLetterConfig.h>
11#include <aws/securityhub/model/AwsLambdaFunctionEnvironment.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/securityhub/model/AwsLambdaFunctionTracingConfig.h>
14#include <aws/securityhub/model/AwsLambdaFunctionVpcConfig.h>
15#include <aws/securityhub/model/AwsLambdaFunctionLayer.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace SecurityHub
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_SECURITYHUB_API AwsLambdaFunctionDetails() = default;
45 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const AwsLambdaFunctionCode& GetCode() const { return m_code; }
53 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
54 template<typename CodeT = AwsLambdaFunctionCode>
55 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
56 template<typename CodeT = AwsLambdaFunctionCode>
57 AwsLambdaFunctionDetails& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
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) { m_codeSha256HasBeenSet = true; m_codeSha256 = std::forward<CodeSha256T>(value); }
68 template<typename CodeSha256T = Aws::String>
69 AwsLambdaFunctionDetails& WithCodeSha256(CodeSha256T&& value) { SetCodeSha256(std::forward<CodeSha256T>(value)); return *this;}
71
73
76 inline const AwsLambdaFunctionDeadLetterConfig& GetDeadLetterConfig() const { return m_deadLetterConfig; }
77 inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
78 template<typename DeadLetterConfigT = AwsLambdaFunctionDeadLetterConfig>
79 void SetDeadLetterConfig(DeadLetterConfigT&& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = std::forward<DeadLetterConfigT>(value); }
80 template<typename DeadLetterConfigT = AwsLambdaFunctionDeadLetterConfig>
81 AwsLambdaFunctionDetails& WithDeadLetterConfig(DeadLetterConfigT&& value) { SetDeadLetterConfig(std::forward<DeadLetterConfigT>(value)); return *this;}
83
85
88 inline const AwsLambdaFunctionEnvironment& GetEnvironment() const { return m_environment; }
89 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
90 template<typename EnvironmentT = AwsLambdaFunctionEnvironment>
91 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
92 template<typename EnvironmentT = AwsLambdaFunctionEnvironment>
93 AwsLambdaFunctionDetails& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
95
97
100 inline const Aws::String& GetFunctionName() const { return m_functionName; }
101 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
102 template<typename FunctionNameT = Aws::String>
103 void SetFunctionName(FunctionNameT&& value) { m_functionNameHasBeenSet = true; m_functionName = std::forward<FunctionNameT>(value); }
104 template<typename FunctionNameT = Aws::String>
105 AwsLambdaFunctionDetails& WithFunctionName(FunctionNameT&& value) { SetFunctionName(std::forward<FunctionNameT>(value)); return *this;}
107
109
112 inline const Aws::String& GetHandler() const { return m_handler; }
113 inline bool HandlerHasBeenSet() const { return m_handlerHasBeenSet; }
114 template<typename HandlerT = Aws::String>
115 void SetHandler(HandlerT&& value) { m_handlerHasBeenSet = true; m_handler = std::forward<HandlerT>(value); }
116 template<typename HandlerT = Aws::String>
117 AwsLambdaFunctionDetails& WithHandler(HandlerT&& value) { SetHandler(std::forward<HandlerT>(value)); return *this;}
119
121
126 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
127 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
128 template<typename KmsKeyArnT = Aws::String>
129 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
130 template<typename KmsKeyArnT = Aws::String>
131 AwsLambdaFunctionDetails& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
133
135
140 inline const Aws::String& GetLastModified() const { return m_lastModified; }
141 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
142 template<typename LastModifiedT = Aws::String>
143 void SetLastModified(LastModifiedT&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::forward<LastModifiedT>(value); }
144 template<typename LastModifiedT = Aws::String>
145 AwsLambdaFunctionDetails& WithLastModified(LastModifiedT&& value) { SetLastModified(std::forward<LastModifiedT>(value)); return *this;}
147
149
152 inline const Aws::Vector<AwsLambdaFunctionLayer>& GetLayers() const { return m_layers; }
153 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
154 template<typename LayersT = Aws::Vector<AwsLambdaFunctionLayer>>
155 void SetLayers(LayersT&& value) { m_layersHasBeenSet = true; m_layers = std::forward<LayersT>(value); }
156 template<typename LayersT = Aws::Vector<AwsLambdaFunctionLayer>>
157 AwsLambdaFunctionDetails& WithLayers(LayersT&& value) { SetLayers(std::forward<LayersT>(value)); return *this;}
158 template<typename LayersT = AwsLambdaFunctionLayer>
159 AwsLambdaFunctionDetails& AddLayers(LayersT&& value) { m_layersHasBeenSet = true; m_layers.emplace_back(std::forward<LayersT>(value)); return *this; }
161
163
166 inline const Aws::String& GetMasterArn() const { return m_masterArn; }
167 inline bool MasterArnHasBeenSet() const { return m_masterArnHasBeenSet; }
168 template<typename MasterArnT = Aws::String>
169 void SetMasterArn(MasterArnT&& value) { m_masterArnHasBeenSet = true; m_masterArn = std::forward<MasterArnT>(value); }
170 template<typename MasterArnT = Aws::String>
171 AwsLambdaFunctionDetails& WithMasterArn(MasterArnT&& value) { SetMasterArn(std::forward<MasterArnT>(value)); return *this;}
173
175
178 inline int GetMemorySize() const { return m_memorySize; }
179 inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; }
180 inline void SetMemorySize(int value) { m_memorySizeHasBeenSet = true; m_memorySize = value; }
181 inline AwsLambdaFunctionDetails& WithMemorySize(int value) { SetMemorySize(value); return *this;}
183
185
188 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
189 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
190 template<typename RevisionIdT = Aws::String>
191 void SetRevisionId(RevisionIdT&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::forward<RevisionIdT>(value); }
192 template<typename RevisionIdT = Aws::String>
193 AwsLambdaFunctionDetails& WithRevisionId(RevisionIdT&& value) { SetRevisionId(std::forward<RevisionIdT>(value)); return *this;}
195
197
200 inline const Aws::String& GetRole() const { return m_role; }
201 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
202 template<typename RoleT = Aws::String>
203 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
204 template<typename RoleT = Aws::String>
205 AwsLambdaFunctionDetails& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
207
209
212 inline const Aws::String& GetRuntime() const { return m_runtime; }
213 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
214 template<typename RuntimeT = Aws::String>
215 void SetRuntime(RuntimeT&& value) { m_runtimeHasBeenSet = true; m_runtime = std::forward<RuntimeT>(value); }
216 template<typename RuntimeT = Aws::String>
217 AwsLambdaFunctionDetails& WithRuntime(RuntimeT&& value) { SetRuntime(std::forward<RuntimeT>(value)); return *this;}
219
221
225 inline int GetTimeout() const { return m_timeout; }
226 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
227 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
228 inline AwsLambdaFunctionDetails& WithTimeout(int value) { SetTimeout(value); return *this;}
230
232
235 inline const AwsLambdaFunctionTracingConfig& GetTracingConfig() const { return m_tracingConfig; }
236 inline bool TracingConfigHasBeenSet() const { return m_tracingConfigHasBeenSet; }
237 template<typename TracingConfigT = AwsLambdaFunctionTracingConfig>
238 void SetTracingConfig(TracingConfigT&& value) { m_tracingConfigHasBeenSet = true; m_tracingConfig = std::forward<TracingConfigT>(value); }
239 template<typename TracingConfigT = AwsLambdaFunctionTracingConfig>
240 AwsLambdaFunctionDetails& WithTracingConfig(TracingConfigT&& value) { SetTracingConfig(std::forward<TracingConfigT>(value)); return *this;}
242
244
247 inline const AwsLambdaFunctionVpcConfig& GetVpcConfig() const { return m_vpcConfig; }
248 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
249 template<typename VpcConfigT = AwsLambdaFunctionVpcConfig>
250 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
251 template<typename VpcConfigT = AwsLambdaFunctionVpcConfig>
252 AwsLambdaFunctionDetails& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
254
256
259 inline const Aws::String& GetVersion() const { return m_version; }
260 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
261 template<typename VersionT = Aws::String>
262 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
263 template<typename VersionT = Aws::String>
264 AwsLambdaFunctionDetails& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
266
268
272 inline const Aws::Vector<Aws::String>& GetArchitectures() const { return m_architectures; }
273 inline bool ArchitecturesHasBeenSet() const { return m_architecturesHasBeenSet; }
274 template<typename ArchitecturesT = Aws::Vector<Aws::String>>
275 void SetArchitectures(ArchitecturesT&& value) { m_architecturesHasBeenSet = true; m_architectures = std::forward<ArchitecturesT>(value); }
276 template<typename ArchitecturesT = Aws::Vector<Aws::String>>
277 AwsLambdaFunctionDetails& WithArchitectures(ArchitecturesT&& value) { SetArchitectures(std::forward<ArchitecturesT>(value)); return *this;}
278 template<typename ArchitecturesT = Aws::String>
279 AwsLambdaFunctionDetails& AddArchitectures(ArchitecturesT&& value) { m_architecturesHasBeenSet = true; m_architectures.emplace_back(std::forward<ArchitecturesT>(value)); return *this; }
281
283
288 inline const Aws::String& GetPackageType() const { return m_packageType; }
289 inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; }
290 template<typename PackageTypeT = Aws::String>
291 void SetPackageType(PackageTypeT&& value) { m_packageTypeHasBeenSet = true; m_packageType = std::forward<PackageTypeT>(value); }
292 template<typename PackageTypeT = Aws::String>
293 AwsLambdaFunctionDetails& WithPackageType(PackageTypeT&& value) { SetPackageType(std::forward<PackageTypeT>(value)); return *this;}
295 private:
296
298 bool m_codeHasBeenSet = false;
299
300 Aws::String m_codeSha256;
301 bool m_codeSha256HasBeenSet = false;
302
303 AwsLambdaFunctionDeadLetterConfig m_deadLetterConfig;
304 bool m_deadLetterConfigHasBeenSet = false;
305
306 AwsLambdaFunctionEnvironment m_environment;
307 bool m_environmentHasBeenSet = false;
308
309 Aws::String m_functionName;
310 bool m_functionNameHasBeenSet = false;
311
312 Aws::String m_handler;
313 bool m_handlerHasBeenSet = false;
314
315 Aws::String m_kmsKeyArn;
316 bool m_kmsKeyArnHasBeenSet = false;
317
318 Aws::String m_lastModified;
319 bool m_lastModifiedHasBeenSet = false;
320
322 bool m_layersHasBeenSet = false;
323
324 Aws::String m_masterArn;
325 bool m_masterArnHasBeenSet = false;
326
327 int m_memorySize{0};
328 bool m_memorySizeHasBeenSet = false;
329
330 Aws::String m_revisionId;
331 bool m_revisionIdHasBeenSet = false;
332
333 Aws::String m_role;
334 bool m_roleHasBeenSet = false;
335
336 Aws::String m_runtime;
337 bool m_runtimeHasBeenSet = false;
338
339 int m_timeout{0};
340 bool m_timeoutHasBeenSet = false;
341
342 AwsLambdaFunctionTracingConfig m_tracingConfig;
343 bool m_tracingConfigHasBeenSet = false;
344
345 AwsLambdaFunctionVpcConfig m_vpcConfig;
346 bool m_vpcConfigHasBeenSet = false;
347
348 Aws::String m_version;
349 bool m_versionHasBeenSet = false;
350
351 Aws::Vector<Aws::String> m_architectures;
352 bool m_architecturesHasBeenSet = false;
353
354 Aws::String m_packageType;
355 bool m_packageTypeHasBeenSet = false;
356 };
357
358} // namespace Model
359} // namespace SecurityHub
360} // 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