AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArchitectures(const Aws::Vector<Architecture>& value) { m_architecturesHasBeenSet = true; m_architectures = value; }
56 inline void SetArchitectures(Aws::Vector<Architecture>&& value) { m_architecturesHasBeenSet = true; m_architectures = std::move(value); }
58 inline AwsLambdaFunctionDetails& WithArchitectures(Aws::Vector<Architecture>&& value) { SetArchitectures(std::move(value)); return *this;}
59 inline AwsLambdaFunctionDetails& AddArchitectures(const Architecture& value) { m_architecturesHasBeenSet = true; m_architectures.push_back(value); return *this; }
60 inline AwsLambdaFunctionDetails& AddArchitectures(Architecture&& value) { m_architecturesHasBeenSet = true; m_architectures.push_back(std::move(value)); return *this; }
62
64
68 inline const Aws::String& GetCodeSha256() const{ return m_codeSha256; }
69 inline bool CodeSha256HasBeenSet() const { return m_codeSha256HasBeenSet; }
70 inline void SetCodeSha256(const Aws::String& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = value; }
71 inline void SetCodeSha256(Aws::String&& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = std::move(value); }
72 inline void SetCodeSha256(const char* value) { m_codeSha256HasBeenSet = true; m_codeSha256.assign(value); }
73 inline AwsLambdaFunctionDetails& WithCodeSha256(const Aws::String& value) { SetCodeSha256(value); return *this;}
74 inline AwsLambdaFunctionDetails& WithCodeSha256(Aws::String&& value) { SetCodeSha256(std::move(value)); return *this;}
75 inline AwsLambdaFunctionDetails& WithCodeSha256(const char* value) { SetCodeSha256(value); return *this;}
77
79
82 inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
83 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
84 inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
85 inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
86 inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
88 inline AwsLambdaFunctionDetails& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
89 inline AwsLambdaFunctionDetails& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
91
93
96 inline const Aws::String& GetFunctionName() const{ return m_functionName; }
97 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
98 inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
99 inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
100 inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
101 inline AwsLambdaFunctionDetails& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
102 inline AwsLambdaFunctionDetails& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
103 inline AwsLambdaFunctionDetails& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
105
107
112 inline const Aws::Utils::DateTime& GetLastModifiedAt() const{ return m_lastModifiedAt; }
113 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
114 inline void SetLastModifiedAt(const Aws::Utils::DateTime& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = value; }
115 inline void SetLastModifiedAt(Aws::Utils::DateTime&& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = std::move(value); }
117 inline AwsLambdaFunctionDetails& WithLastModifiedAt(Aws::Utils::DateTime&& value) { SetLastModifiedAt(std::move(value)); return *this;}
119
121
126 inline const Aws::Vector<Aws::String>& GetLayers() const{ return m_layers; }
127 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
128 inline void SetLayers(const Aws::Vector<Aws::String>& value) { m_layersHasBeenSet = true; m_layers = value; }
129 inline void SetLayers(Aws::Vector<Aws::String>&& value) { m_layersHasBeenSet = true; m_layers = std::move(value); }
130 inline AwsLambdaFunctionDetails& WithLayers(const Aws::Vector<Aws::String>& value) { SetLayers(value); return *this;}
131 inline AwsLambdaFunctionDetails& WithLayers(Aws::Vector<Aws::String>&& value) { SetLayers(std::move(value)); return *this;}
132 inline AwsLambdaFunctionDetails& AddLayers(const Aws::String& value) { m_layersHasBeenSet = true; m_layers.push_back(value); return *this; }
133 inline AwsLambdaFunctionDetails& AddLayers(Aws::String&& value) { m_layersHasBeenSet = true; m_layers.push_back(std::move(value)); return *this; }
134 inline AwsLambdaFunctionDetails& AddLayers(const char* value) { m_layersHasBeenSet = true; m_layers.push_back(value); return *this; }
136
138
142 inline const PackageType& GetPackageType() const{ return m_packageType; }
143 inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; }
144 inline void SetPackageType(const PackageType& value) { m_packageTypeHasBeenSet = true; m_packageType = value; }
145 inline void SetPackageType(PackageType&& value) { m_packageTypeHasBeenSet = true; m_packageType = std::move(value); }
146 inline AwsLambdaFunctionDetails& WithPackageType(const PackageType& value) { SetPackageType(value); return *this;}
147 inline AwsLambdaFunctionDetails& WithPackageType(PackageType&& value) { SetPackageType(std::move(value)); return *this;}
149
151
154 inline const Runtime& GetRuntime() const{ return m_runtime; }
155 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
156 inline void SetRuntime(const Runtime& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
157 inline void SetRuntime(Runtime&& value) { m_runtimeHasBeenSet = true; m_runtime = std::move(value); }
158 inline AwsLambdaFunctionDetails& WithRuntime(const Runtime& value) { SetRuntime(value); return *this;}
159 inline AwsLambdaFunctionDetails& WithRuntime(Runtime&& value) { SetRuntime(std::move(value)); return *this;}
161
163
166 inline const Aws::String& GetVersion() const{ return m_version; }
167 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
168 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
169 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
170 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
171 inline AwsLambdaFunctionDetails& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
172 inline AwsLambdaFunctionDetails& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
173 inline AwsLambdaFunctionDetails& WithVersion(const char* value) { SetVersion(value); return *this;}
175
177
180 inline const LambdaVpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
181 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
182 inline void SetVpcConfig(const LambdaVpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
183 inline void SetVpcConfig(LambdaVpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
184 inline AwsLambdaFunctionDetails& WithVpcConfig(const LambdaVpcConfig& value) { SetVpcConfig(value); return *this;}
185 inline AwsLambdaFunctionDetails& WithVpcConfig(LambdaVpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
187 private:
188
189 Aws::Vector<Architecture> m_architectures;
190 bool m_architecturesHasBeenSet = false;
191
192 Aws::String m_codeSha256;
193 bool m_codeSha256HasBeenSet = false;
194
195 Aws::String m_executionRoleArn;
196 bool m_executionRoleArnHasBeenSet = false;
197
198 Aws::String m_functionName;
199 bool m_functionNameHasBeenSet = false;
200
201 Aws::Utils::DateTime m_lastModifiedAt;
202 bool m_lastModifiedAtHasBeenSet = false;
203
205 bool m_layersHasBeenSet = false;
206
207 PackageType m_packageType;
208 bool m_packageTypeHasBeenSet = false;
209
210 Runtime m_runtime;
211 bool m_runtimeHasBeenSet = false;
212
213 Aws::String m_version;
214 bool m_versionHasBeenSet = false;
215
216 LambdaVpcConfig m_vpcConfig;
217 bool m_vpcConfigHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace Inspector2
222} // namespace Aws
AwsLambdaFunctionDetails & WithVpcConfig(const LambdaVpcConfig &value)
AwsLambdaFunctionDetails & WithFunctionName(Aws::String &&value)
AwsLambdaFunctionDetails & WithCodeSha256(Aws::String &&value)
AwsLambdaFunctionDetails & WithExecutionRoleArn(const char *value)
AwsLambdaFunctionDetails & WithPackageType(const PackageType &value)
AwsLambdaFunctionDetails & WithExecutionRoleArn(const Aws::String &value)
AwsLambdaFunctionDetails & WithFunctionName(const Aws::String &value)
AwsLambdaFunctionDetails & WithLayers(Aws::Vector< Aws::String > &&value)
AwsLambdaFunctionDetails & AddArchitectures(Architecture &&value)
AwsLambdaFunctionDetails & WithLayers(const Aws::Vector< Aws::String > &value)
void SetArchitectures(const Aws::Vector< Architecture > &value)
AwsLambdaFunctionDetails & WithArchitectures(const Aws::Vector< Architecture > &value)
AwsLambdaFunctionDetails & AddArchitectures(const Architecture &value)
void SetLastModifiedAt(const Aws::Utils::DateTime &value)
void SetLayers(const Aws::Vector< Aws::String > &value)
AwsLambdaFunctionDetails & WithLastModifiedAt(const Aws::Utils::DateTime &value)
AwsLambdaFunctionDetails & WithVersion(const Aws::String &value)
AwsLambdaFunctionDetails & WithVersion(Aws::String &&value)
AWS_INSPECTOR2_API AwsLambdaFunctionDetails(Aws::Utils::Json::JsonView jsonValue)
AwsLambdaFunctionDetails & WithLastModifiedAt(Aws::Utils::DateTime &&value)
const Aws::Vector< Aws::String > & GetLayers() const
AwsLambdaFunctionDetails & AddLayers(Aws::String &&value)
AwsLambdaFunctionDetails & AddLayers(const char *value)
void SetLayers(Aws::Vector< Aws::String > &&value)
void SetArchitectures(Aws::Vector< Architecture > &&value)
AwsLambdaFunctionDetails & WithFunctionName(const char *value)
AwsLambdaFunctionDetails & WithPackageType(PackageType &&value)
AwsLambdaFunctionDetails & WithArchitectures(Aws::Vector< Architecture > &&value)
AwsLambdaFunctionDetails & WithVersion(const char *value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AwsLambdaFunctionDetails & WithExecutionRoleArn(Aws::String &&value)
AwsLambdaFunctionDetails & WithVpcConfig(LambdaVpcConfig &&value)
AwsLambdaFunctionDetails & WithRuntime(Runtime &&value)
const Aws::Utils::DateTime & GetLastModifiedAt() const
AwsLambdaFunctionDetails & WithRuntime(const Runtime &value)
AwsLambdaFunctionDetails & AddLayers(const Aws::String &value)
AwsLambdaFunctionDetails & WithCodeSha256(const char *value)
const Aws::Vector< Architecture > & GetArchitectures() const
AwsLambdaFunctionDetails & WithCodeSha256(const Aws::String &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