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/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/inspector2/model/PackageType.h>
12#include <aws/inspector2/model/Runtime.h>
13#include <aws/inspector2/model/LambdaVpcConfig.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
53 inline const Aws::Vector<Architecture>& GetArchitectures() const { return m_architectures; }
54 inline bool ArchitecturesHasBeenSet() const { return m_architecturesHasBeenSet; }
55 template<typename ArchitecturesT = Aws::Vector<Architecture>>
56 void SetArchitectures(ArchitecturesT&& value) { m_architecturesHasBeenSet = true; m_architectures = std::forward<ArchitecturesT>(value); }
57 template<typename ArchitecturesT = Aws::Vector<Architecture>>
58 AwsLambdaFunctionDetails& WithArchitectures(ArchitecturesT&& value) { SetArchitectures(std::forward<ArchitecturesT>(value)); return *this;}
59 inline AwsLambdaFunctionDetails& AddArchitectures(Architecture value) { m_architecturesHasBeenSet = true; m_architectures.push_back(value); return *this; }
61
63
67 inline const Aws::String& GetCodeSha256() const { return m_codeSha256; }
68 inline bool CodeSha256HasBeenSet() const { return m_codeSha256HasBeenSet; }
69 template<typename CodeSha256T = Aws::String>
70 void SetCodeSha256(CodeSha256T&& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = std::forward<CodeSha256T>(value); }
71 template<typename CodeSha256T = Aws::String>
72 AwsLambdaFunctionDetails& WithCodeSha256(CodeSha256T&& value) { SetCodeSha256(std::forward<CodeSha256T>(value)); return *this;}
74
76
79 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
80 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
81 template<typename ExecutionRoleArnT = Aws::String>
82 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
83 template<typename ExecutionRoleArnT = Aws::String>
84 AwsLambdaFunctionDetails& WithExecutionRoleArn(ExecutionRoleArnT&& value) { SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value)); return *this;}
86
88
91 inline const Aws::String& GetFunctionName() const { return m_functionName; }
92 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
93 template<typename FunctionNameT = Aws::String>
94 void SetFunctionName(FunctionNameT&& value) { m_functionNameHasBeenSet = true; m_functionName = std::forward<FunctionNameT>(value); }
95 template<typename FunctionNameT = Aws::String>
96 AwsLambdaFunctionDetails& WithFunctionName(FunctionNameT&& value) { SetFunctionName(std::forward<FunctionNameT>(value)); return *this;}
98
100
105 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
106 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
107 template<typename LastModifiedAtT = Aws::Utils::DateTime>
108 void SetLastModifiedAt(LastModifiedAtT&& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = std::forward<LastModifiedAtT>(value); }
109 template<typename LastModifiedAtT = Aws::Utils::DateTime>
110 AwsLambdaFunctionDetails& WithLastModifiedAt(LastModifiedAtT&& value) { SetLastModifiedAt(std::forward<LastModifiedAtT>(value)); return *this;}
112
114
119 inline const Aws::Vector<Aws::String>& GetLayers() const { return m_layers; }
120 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
121 template<typename LayersT = Aws::Vector<Aws::String>>
122 void SetLayers(LayersT&& value) { m_layersHasBeenSet = true; m_layers = std::forward<LayersT>(value); }
123 template<typename LayersT = Aws::Vector<Aws::String>>
124 AwsLambdaFunctionDetails& WithLayers(LayersT&& value) { SetLayers(std::forward<LayersT>(value)); return *this;}
125 template<typename LayersT = Aws::String>
126 AwsLambdaFunctionDetails& AddLayers(LayersT&& value) { m_layersHasBeenSet = true; m_layers.emplace_back(std::forward<LayersT>(value)); return *this; }
128
130
134 inline PackageType GetPackageType() const { return m_packageType; }
135 inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; }
136 inline void SetPackageType(PackageType value) { m_packageTypeHasBeenSet = true; m_packageType = value; }
139
141
144 inline Runtime GetRuntime() const { return m_runtime; }
145 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
146 inline void SetRuntime(Runtime value) { m_runtimeHasBeenSet = true; m_runtime = value; }
147 inline AwsLambdaFunctionDetails& WithRuntime(Runtime value) { SetRuntime(value); return *this;}
149
151
154 inline const Aws::String& GetVersion() const { return m_version; }
155 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
156 template<typename VersionT = Aws::String>
157 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
158 template<typename VersionT = Aws::String>
159 AwsLambdaFunctionDetails& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
161
163
166 inline const LambdaVpcConfig& GetVpcConfig() const { return m_vpcConfig; }
167 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
168 template<typename VpcConfigT = LambdaVpcConfig>
169 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
170 template<typename VpcConfigT = LambdaVpcConfig>
171 AwsLambdaFunctionDetails& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
173 private:
174
175 Aws::Vector<Architecture> m_architectures;
176 bool m_architecturesHasBeenSet = false;
177
178 Aws::String m_codeSha256;
179 bool m_codeSha256HasBeenSet = false;
180
181 Aws::String m_executionRoleArn;
182 bool m_executionRoleArnHasBeenSet = false;
183
184 Aws::String m_functionName;
185 bool m_functionNameHasBeenSet = false;
186
187 Aws::Utils::DateTime m_lastModifiedAt{};
188 bool m_lastModifiedAtHasBeenSet = false;
189
191 bool m_layersHasBeenSet = false;
192
193 PackageType m_packageType{PackageType::NOT_SET};
194 bool m_packageTypeHasBeenSet = false;
195
196 Runtime m_runtime{Runtime::NOT_SET};
197 bool m_runtimeHasBeenSet = false;
198
199 Aws::String m_version;
200 bool m_versionHasBeenSet = false;
201
202 LambdaVpcConfig m_vpcConfig;
203 bool m_vpcConfigHasBeenSet = 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