AWS SDK for C++

AWS SDK for C++ Version 1.11.632

Loading...
Searching...
No Matches
AwsLambdaFunctionDetails.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/model/Runtime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/inspector2/model/LambdaVpcConfig.h>
12#include <aws/inspector2/model/PackageType.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/inspector2/model/Architecture.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Inspector2
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_INSPECTOR2_API AwsLambdaFunctionDetails() = default;
44 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetFunctionName() const { return m_functionName; }
52 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
53 template<typename FunctionNameT = Aws::String>
54 void SetFunctionName(FunctionNameT&& value) { m_functionNameHasBeenSet = true; m_functionName = std::forward<FunctionNameT>(value); }
55 template<typename FunctionNameT = Aws::String>
56 AwsLambdaFunctionDetails& WithFunctionName(FunctionNameT&& value) { SetFunctionName(std::forward<FunctionNameT>(value)); return *this;}
58
60
63 inline Runtime GetRuntime() const { return m_runtime; }
64 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
65 inline void SetRuntime(Runtime value) { m_runtimeHasBeenSet = true; m_runtime = value; }
66 inline AwsLambdaFunctionDetails& WithRuntime(Runtime value) { SetRuntime(value); return *this;}
68
70
74 inline const Aws::String& GetCodeSha256() const { return m_codeSha256; }
75 inline bool CodeSha256HasBeenSet() const { return m_codeSha256HasBeenSet; }
76 template<typename CodeSha256T = Aws::String>
77 void SetCodeSha256(CodeSha256T&& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = std::forward<CodeSha256T>(value); }
78 template<typename CodeSha256T = Aws::String>
79 AwsLambdaFunctionDetails& WithCodeSha256(CodeSha256T&& value) { SetCodeSha256(std::forward<CodeSha256T>(value)); return *this;}
81
83
86 inline const Aws::String& GetVersion() const { return m_version; }
87 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
88 template<typename VersionT = Aws::String>
89 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
90 template<typename VersionT = Aws::String>
91 AwsLambdaFunctionDetails& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
93
95
98 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
99 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
100 template<typename ExecutionRoleArnT = Aws::String>
101 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
102 template<typename ExecutionRoleArnT = Aws::String>
103 AwsLambdaFunctionDetails& WithExecutionRoleArn(ExecutionRoleArnT&& value) { SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value)); return *this;}
105
107
112 inline const Aws::Vector<Aws::String>& GetLayers() const { return m_layers; }
113 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
114 template<typename LayersT = Aws::Vector<Aws::String>>
115 void SetLayers(LayersT&& value) { m_layersHasBeenSet = true; m_layers = std::forward<LayersT>(value); }
116 template<typename LayersT = Aws::Vector<Aws::String>>
117 AwsLambdaFunctionDetails& WithLayers(LayersT&& value) { SetLayers(std::forward<LayersT>(value)); return *this;}
118 template<typename LayersT = Aws::String>
119 AwsLambdaFunctionDetails& AddLayers(LayersT&& value) { m_layersHasBeenSet = true; m_layers.emplace_back(std::forward<LayersT>(value)); return *this; }
121
123
126 inline const LambdaVpcConfig& GetVpcConfig() const { return m_vpcConfig; }
127 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
128 template<typename VpcConfigT = LambdaVpcConfig>
129 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
130 template<typename VpcConfigT = LambdaVpcConfig>
131 AwsLambdaFunctionDetails& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
133
135
139 inline PackageType GetPackageType() const { return m_packageType; }
140 inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; }
141 inline void SetPackageType(PackageType value) { m_packageTypeHasBeenSet = true; m_packageType = value; }
144
146
151 inline const Aws::Vector<Architecture>& GetArchitectures() const { return m_architectures; }
152 inline bool ArchitecturesHasBeenSet() const { return m_architecturesHasBeenSet; }
153 template<typename ArchitecturesT = Aws::Vector<Architecture>>
154 void SetArchitectures(ArchitecturesT&& value) { m_architecturesHasBeenSet = true; m_architectures = std::forward<ArchitecturesT>(value); }
155 template<typename ArchitecturesT = Aws::Vector<Architecture>>
156 AwsLambdaFunctionDetails& WithArchitectures(ArchitecturesT&& value) { SetArchitectures(std::forward<ArchitecturesT>(value)); return *this;}
157 inline AwsLambdaFunctionDetails& AddArchitectures(Architecture value) { m_architecturesHasBeenSet = true; m_architectures.push_back(value); return *this; }
159
161
166 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
167 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
168 template<typename LastModifiedAtT = Aws::Utils::DateTime>
169 void SetLastModifiedAt(LastModifiedAtT&& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = std::forward<LastModifiedAtT>(value); }
170 template<typename LastModifiedAtT = Aws::Utils::DateTime>
171 AwsLambdaFunctionDetails& WithLastModifiedAt(LastModifiedAtT&& value) { SetLastModifiedAt(std::forward<LastModifiedAtT>(value)); return *this;}
173 private:
174
175 Aws::String m_functionName;
176 bool m_functionNameHasBeenSet = false;
177
178 Runtime m_runtime{Runtime::NOT_SET};
179 bool m_runtimeHasBeenSet = false;
180
181 Aws::String m_codeSha256;
182 bool m_codeSha256HasBeenSet = false;
183
184 Aws::String m_version;
185 bool m_versionHasBeenSet = false;
186
187 Aws::String m_executionRoleArn;
188 bool m_executionRoleArnHasBeenSet = false;
189
191 bool m_layersHasBeenSet = false;
192
193 LambdaVpcConfig m_vpcConfig;
194 bool m_vpcConfigHasBeenSet = false;
195
196 PackageType m_packageType{PackageType::NOT_SET};
197 bool m_packageTypeHasBeenSet = false;
198
199 Aws::Vector<Architecture> m_architectures;
200 bool m_architecturesHasBeenSet = false;
201
202 Aws::Utils::DateTime m_lastModifiedAt{};
203 bool m_lastModifiedAtHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace Inspector2
208} // namespace Aws
AWS_INSPECTOR2_API AwsLambdaFunctionDetails()=default
AwsLambdaFunctionDetails & WithCodeSha256(CodeSha256T &&value)
AwsLambdaFunctionDetails & WithPackageType(PackageType value)
AwsLambdaFunctionDetails & WithLayers(LayersT &&value)
AwsLambdaFunctionDetails & WithFunctionName(FunctionNameT &&value)
AWS_INSPECTOR2_API AwsLambdaFunctionDetails(Aws::Utils::Json::JsonView jsonValue)
AwsLambdaFunctionDetails & AddLayers(LayersT &&value)
const Aws::Vector< Aws::String > & GetLayers() const
AwsLambdaFunctionDetails & WithExecutionRoleArn(ExecutionRoleArnT &&value)
AwsLambdaFunctionDetails & WithLastModifiedAt(LastModifiedAtT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AwsLambdaFunctionDetails & WithVersion(VersionT &&value)
AwsLambdaFunctionDetails & WithVpcConfig(VpcConfigT &&value)
const Aws::Utils::DateTime & GetLastModifiedAt() const
AwsLambdaFunctionDetails & WithArchitectures(ArchitecturesT &&value)
AwsLambdaFunctionDetails & WithRuntime(Runtime value)
const Aws::Vector< Architecture > & GetArchitectures() const
AwsLambdaFunctionDetails & AddArchitectures(Architecture value)
AWS_INSPECTOR2_API AwsLambdaFunctionDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue