AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AwsLambdaFunctionDetails.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/LambdaVpcConfig.h>
13#include <aws/inspector2/model/PackageType.h>
14#include <aws/inspector2/model/Runtime.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Inspector2 {
26namespace Model {
27
35 public:
36 AWS_INSPECTOR2_API AwsLambdaFunctionDetails() = default;
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetFunctionName() const { return m_functionName; }
46 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
47 template <typename FunctionNameT = Aws::String>
48 void SetFunctionName(FunctionNameT&& value) {
49 m_functionNameHasBeenSet = true;
50 m_functionName = std::forward<FunctionNameT>(value);
51 }
52 template <typename FunctionNameT = Aws::String>
54 SetFunctionName(std::forward<FunctionNameT>(value));
55 return *this;
56 }
58
60
63 inline Runtime GetRuntime() const { return m_runtime; }
64 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
65 inline void SetRuntime(Runtime value) {
66 m_runtimeHasBeenSet = true;
67 m_runtime = value;
68 }
70 SetRuntime(value);
71 return *this;
72 }
74
76
80 inline const Aws::String& GetCodeSha256() const { return m_codeSha256; }
81 inline bool CodeSha256HasBeenSet() const { return m_codeSha256HasBeenSet; }
82 template <typename CodeSha256T = Aws::String>
83 void SetCodeSha256(CodeSha256T&& value) {
84 m_codeSha256HasBeenSet = true;
85 m_codeSha256 = std::forward<CodeSha256T>(value);
86 }
87 template <typename CodeSha256T = Aws::String>
89 SetCodeSha256(std::forward<CodeSha256T>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetVersion() const { return m_version; }
99 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
100 template <typename VersionT = Aws::String>
101 void SetVersion(VersionT&& value) {
102 m_versionHasBeenSet = true;
103 m_version = std::forward<VersionT>(value);
104 }
105 template <typename VersionT = Aws::String>
107 SetVersion(std::forward<VersionT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
117 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
118 template <typename ExecutionRoleArnT = Aws::String>
119 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
120 m_executionRoleArnHasBeenSet = true;
121 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
122 }
123 template <typename ExecutionRoleArnT = Aws::String>
124 AwsLambdaFunctionDetails& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
125 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
126 return *this;
127 }
129
131
136 inline const Aws::Vector<Aws::String>& GetLayers() const { return m_layers; }
137 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
138 template <typename LayersT = Aws::Vector<Aws::String>>
139 void SetLayers(LayersT&& value) {
140 m_layersHasBeenSet = true;
141 m_layers = std::forward<LayersT>(value);
142 }
143 template <typename LayersT = Aws::Vector<Aws::String>>
145 SetLayers(std::forward<LayersT>(value));
146 return *this;
147 }
148 template <typename LayersT = Aws::String>
150 m_layersHasBeenSet = true;
151 m_layers.emplace_back(std::forward<LayersT>(value));
152 return *this;
153 }
155
157
160 inline const LambdaVpcConfig& GetVpcConfig() const { return m_vpcConfig; }
161 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
162 template <typename VpcConfigT = LambdaVpcConfig>
163 void SetVpcConfig(VpcConfigT&& value) {
164 m_vpcConfigHasBeenSet = true;
165 m_vpcConfig = std::forward<VpcConfigT>(value);
166 }
167 template <typename VpcConfigT = LambdaVpcConfig>
169 SetVpcConfig(std::forward<VpcConfigT>(value));
170 return *this;
171 }
173
175
179 inline PackageType GetPackageType() const { return m_packageType; }
180 inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; }
181 inline void SetPackageType(PackageType value) {
182 m_packageTypeHasBeenSet = true;
183 m_packageType = value;
184 }
186 SetPackageType(value);
187 return *this;
188 }
190
192
197 inline const Aws::Vector<Architecture>& GetArchitectures() const { return m_architectures; }
198 inline bool ArchitecturesHasBeenSet() const { return m_architecturesHasBeenSet; }
199 template <typename ArchitecturesT = Aws::Vector<Architecture>>
200 void SetArchitectures(ArchitecturesT&& value) {
201 m_architecturesHasBeenSet = true;
202 m_architectures = std::forward<ArchitecturesT>(value);
203 }
204 template <typename ArchitecturesT = Aws::Vector<Architecture>>
206 SetArchitectures(std::forward<ArchitecturesT>(value));
207 return *this;
208 }
210 m_architecturesHasBeenSet = true;
211 m_architectures.push_back(value);
212 return *this;
213 }
215
217
222 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
223 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
224 template <typename LastModifiedAtT = Aws::Utils::DateTime>
225 void SetLastModifiedAt(LastModifiedAtT&& value) {
226 m_lastModifiedAtHasBeenSet = true;
227 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
228 }
229 template <typename LastModifiedAtT = Aws::Utils::DateTime>
231 SetLastModifiedAt(std::forward<LastModifiedAtT>(value));
232 return *this;
233 }
235 private:
236 Aws::String m_functionName;
237
238 Runtime m_runtime{Runtime::NOT_SET};
239
240 Aws::String m_codeSha256;
241
242 Aws::String m_version;
243
244 Aws::String m_executionRoleArn;
245
247
248 LambdaVpcConfig m_vpcConfig;
249
250 PackageType m_packageType{PackageType::NOT_SET};
251
252 Aws::Vector<Architecture> m_architectures;
253
254 Aws::Utils::DateTime m_lastModifiedAt{};
255 bool m_functionNameHasBeenSet = false;
256 bool m_runtimeHasBeenSet = false;
257 bool m_codeSha256HasBeenSet = false;
258 bool m_versionHasBeenSet = false;
259 bool m_executionRoleArnHasBeenSet = false;
260 bool m_layersHasBeenSet = false;
261 bool m_vpcConfigHasBeenSet = false;
262 bool m_packageTypeHasBeenSet = false;
263 bool m_architecturesHasBeenSet = false;
264 bool m_lastModifiedAtHasBeenSet = false;
265};
266
267} // namespace Model
268} // namespace Inspector2
269} // 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