AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateFunctionConfigurationRequest.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/lambda/LambdaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lambda/model/VpcConfig.h>
11#include <aws/lambda/model/Environment.h>
12#include <aws/lambda/model/Runtime.h>
13#include <aws/lambda/model/DeadLetterConfig.h>
14#include <aws/lambda/model/TracingConfig.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/lambda/model/ImageConfig.h>
17#include <aws/lambda/model/EphemeralStorage.h>
18#include <aws/lambda/model/SnapStart.h>
19#include <aws/lambda/model/LoggingConfig.h>
20#include <aws/lambda/model/FileSystemConfig.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Lambda
26{
27namespace Model
28{
29
33 {
34 public:
35 AWS_LAMBDA_API UpdateFunctionConfigurationRequest() = default;
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "UpdateFunctionConfiguration"; }
42
43 AWS_LAMBDA_API Aws::String SerializePayload() const override;
44
45
47
57 inline const Aws::String& GetFunctionName() const { return m_functionName; }
58 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
59 template<typename FunctionNameT = Aws::String>
60 void SetFunctionName(FunctionNameT&& value) { m_functionNameHasBeenSet = true; m_functionName = std::forward<FunctionNameT>(value); }
61 template<typename FunctionNameT = Aws::String>
62 UpdateFunctionConfigurationRequest& WithFunctionName(FunctionNameT&& value) { SetFunctionName(std::forward<FunctionNameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetRole() const { return m_role; }
70 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
71 template<typename RoleT = Aws::String>
72 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
73 template<typename RoleT = Aws::String>
74 UpdateFunctionConfigurationRequest& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
76
78
86 inline const Aws::String& GetHandler() const { return m_handler; }
87 inline bool HandlerHasBeenSet() const { return m_handlerHasBeenSet; }
88 template<typename HandlerT = Aws::String>
89 void SetHandler(HandlerT&& value) { m_handlerHasBeenSet = true; m_handler = std::forward<HandlerT>(value); }
90 template<typename HandlerT = Aws::String>
91 UpdateFunctionConfigurationRequest& WithHandler(HandlerT&& value) { SetHandler(std::forward<HandlerT>(value)); return *this;}
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 template<typename DescriptionT = Aws::String>
101 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
102 template<typename DescriptionT = Aws::String>
103 UpdateFunctionConfigurationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
105
107
114 inline int GetTimeout() const { return m_timeout; }
115 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
116 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
117 inline UpdateFunctionConfigurationRequest& WithTimeout(int value) { SetTimeout(value); return *this;}
119
121
128 inline int GetMemorySize() const { return m_memorySize; }
129 inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; }
130 inline void SetMemorySize(int value) { m_memorySizeHasBeenSet = true; m_memorySize = value; }
131 inline UpdateFunctionConfigurationRequest& WithMemorySize(int value) { SetMemorySize(value); return *this;}
133
135
143 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
144 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
145 template<typename VpcConfigT = VpcConfig>
146 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
147 template<typename VpcConfigT = VpcConfig>
148 UpdateFunctionConfigurationRequest& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
150
152
156 inline const Environment& GetEnvironment() const { return m_environment; }
157 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
158 template<typename EnvironmentT = Environment>
159 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
160 template<typename EnvironmentT = Environment>
161 UpdateFunctionConfigurationRequest& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
163
165
179 inline Runtime GetRuntime() const { return m_runtime; }
180 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
181 inline void SetRuntime(Runtime value) { m_runtimeHasBeenSet = true; m_runtime = value; }
182 inline UpdateFunctionConfigurationRequest& WithRuntime(Runtime value) { SetRuntime(value); return *this;}
184
186
193 inline const DeadLetterConfig& GetDeadLetterConfig() const { return m_deadLetterConfig; }
194 inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
195 template<typename DeadLetterConfigT = DeadLetterConfig>
196 void SetDeadLetterConfig(DeadLetterConfigT&& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = std::forward<DeadLetterConfigT>(value); }
197 template<typename DeadLetterConfigT = DeadLetterConfig>
198 UpdateFunctionConfigurationRequest& WithDeadLetterConfig(DeadLetterConfigT&& value) { SetDeadLetterConfig(std::forward<DeadLetterConfigT>(value)); return *this;}
200
202
225 inline const Aws::String& GetKMSKeyArn() const { return m_kMSKeyArn; }
226 inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
227 template<typename KMSKeyArnT = Aws::String>
228 void SetKMSKeyArn(KMSKeyArnT&& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = std::forward<KMSKeyArnT>(value); }
229 template<typename KMSKeyArnT = Aws::String>
230 UpdateFunctionConfigurationRequest& WithKMSKeyArn(KMSKeyArnT&& value) { SetKMSKeyArn(std::forward<KMSKeyArnT>(value)); return *this;}
232
234
239 inline const TracingConfig& GetTracingConfig() const { return m_tracingConfig; }
240 inline bool TracingConfigHasBeenSet() const { return m_tracingConfigHasBeenSet; }
241 template<typename TracingConfigT = TracingConfig>
242 void SetTracingConfig(TracingConfigT&& value) { m_tracingConfigHasBeenSet = true; m_tracingConfig = std::forward<TracingConfigT>(value); }
243 template<typename TracingConfigT = TracingConfig>
244 UpdateFunctionConfigurationRequest& WithTracingConfig(TracingConfigT&& value) { SetTracingConfig(std::forward<TracingConfigT>(value)); return *this;}
246
248
253 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
254 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
255 template<typename RevisionIdT = Aws::String>
256 void SetRevisionId(RevisionIdT&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::forward<RevisionIdT>(value); }
257 template<typename RevisionIdT = Aws::String>
258 UpdateFunctionConfigurationRequest& WithRevisionId(RevisionIdT&& value) { SetRevisionId(std::forward<RevisionIdT>(value)); return *this;}
260
262
268 inline const Aws::Vector<Aws::String>& GetLayers() const { return m_layers; }
269 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
270 template<typename LayersT = Aws::Vector<Aws::String>>
271 void SetLayers(LayersT&& value) { m_layersHasBeenSet = true; m_layers = std::forward<LayersT>(value); }
272 template<typename LayersT = Aws::Vector<Aws::String>>
273 UpdateFunctionConfigurationRequest& WithLayers(LayersT&& value) { SetLayers(std::forward<LayersT>(value)); return *this;}
274 template<typename LayersT = Aws::String>
275 UpdateFunctionConfigurationRequest& AddLayers(LayersT&& value) { m_layersHasBeenSet = true; m_layers.emplace_back(std::forward<LayersT>(value)); return *this; }
277
279
282 inline const Aws::Vector<FileSystemConfig>& GetFileSystemConfigs() const { return m_fileSystemConfigs; }
283 inline bool FileSystemConfigsHasBeenSet() const { return m_fileSystemConfigsHasBeenSet; }
284 template<typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
285 void SetFileSystemConfigs(FileSystemConfigsT&& value) { m_fileSystemConfigsHasBeenSet = true; m_fileSystemConfigs = std::forward<FileSystemConfigsT>(value); }
286 template<typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
287 UpdateFunctionConfigurationRequest& WithFileSystemConfigs(FileSystemConfigsT&& value) { SetFileSystemConfigs(std::forward<FileSystemConfigsT>(value)); return *this;}
288 template<typename FileSystemConfigsT = FileSystemConfig>
289 UpdateFunctionConfigurationRequest& AddFileSystemConfigs(FileSystemConfigsT&& value) { m_fileSystemConfigsHasBeenSet = true; m_fileSystemConfigs.emplace_back(std::forward<FileSystemConfigsT>(value)); return *this; }
291
293
299 inline const ImageConfig& GetImageConfig() const { return m_imageConfig; }
300 inline bool ImageConfigHasBeenSet() const { return m_imageConfigHasBeenSet; }
301 template<typename ImageConfigT = ImageConfig>
302 void SetImageConfig(ImageConfigT&& value) { m_imageConfigHasBeenSet = true; m_imageConfig = std::forward<ImageConfigT>(value); }
303 template<typename ImageConfigT = ImageConfig>
304 UpdateFunctionConfigurationRequest& WithImageConfig(ImageConfigT&& value) { SetImageConfig(std::forward<ImageConfigT>(value)); return *this;}
306
308
315 inline const EphemeralStorage& GetEphemeralStorage() const { return m_ephemeralStorage; }
316 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
317 template<typename EphemeralStorageT = EphemeralStorage>
318 void SetEphemeralStorage(EphemeralStorageT&& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = std::forward<EphemeralStorageT>(value); }
319 template<typename EphemeralStorageT = EphemeralStorage>
320 UpdateFunctionConfigurationRequest& WithEphemeralStorage(EphemeralStorageT&& value) { SetEphemeralStorage(std::forward<EphemeralStorageT>(value)); return *this;}
322
324
329 inline const SnapStart& GetSnapStart() const { return m_snapStart; }
330 inline bool SnapStartHasBeenSet() const { return m_snapStartHasBeenSet; }
331 template<typename SnapStartT = SnapStart>
332 void SetSnapStart(SnapStartT&& value) { m_snapStartHasBeenSet = true; m_snapStart = std::forward<SnapStartT>(value); }
333 template<typename SnapStartT = SnapStart>
334 UpdateFunctionConfigurationRequest& WithSnapStart(SnapStartT&& value) { SetSnapStart(std::forward<SnapStartT>(value)); return *this;}
336
338
341 inline const LoggingConfig& GetLoggingConfig() const { return m_loggingConfig; }
342 inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; }
343 template<typename LoggingConfigT = LoggingConfig>
344 void SetLoggingConfig(LoggingConfigT&& value) { m_loggingConfigHasBeenSet = true; m_loggingConfig = std::forward<LoggingConfigT>(value); }
345 template<typename LoggingConfigT = LoggingConfig>
346 UpdateFunctionConfigurationRequest& WithLoggingConfig(LoggingConfigT&& value) { SetLoggingConfig(std::forward<LoggingConfigT>(value)); return *this;}
348 private:
349
350 Aws::String m_functionName;
351 bool m_functionNameHasBeenSet = false;
352
353 Aws::String m_role;
354 bool m_roleHasBeenSet = false;
355
356 Aws::String m_handler;
357 bool m_handlerHasBeenSet = false;
358
359 Aws::String m_description;
360 bool m_descriptionHasBeenSet = false;
361
362 int m_timeout{0};
363 bool m_timeoutHasBeenSet = false;
364
365 int m_memorySize{0};
366 bool m_memorySizeHasBeenSet = false;
367
368 VpcConfig m_vpcConfig;
369 bool m_vpcConfigHasBeenSet = false;
370
371 Environment m_environment;
372 bool m_environmentHasBeenSet = false;
373
374 Runtime m_runtime{Runtime::NOT_SET};
375 bool m_runtimeHasBeenSet = false;
376
377 DeadLetterConfig m_deadLetterConfig;
378 bool m_deadLetterConfigHasBeenSet = false;
379
380 Aws::String m_kMSKeyArn;
381 bool m_kMSKeyArnHasBeenSet = false;
382
383 TracingConfig m_tracingConfig;
384 bool m_tracingConfigHasBeenSet = false;
385
386 Aws::String m_revisionId;
387 bool m_revisionIdHasBeenSet = false;
388
390 bool m_layersHasBeenSet = false;
391
392 Aws::Vector<FileSystemConfig> m_fileSystemConfigs;
393 bool m_fileSystemConfigsHasBeenSet = false;
394
395 ImageConfig m_imageConfig;
396 bool m_imageConfigHasBeenSet = false;
397
398 EphemeralStorage m_ephemeralStorage;
399 bool m_ephemeralStorageHasBeenSet = false;
400
401 SnapStart m_snapStart;
402 bool m_snapStartHasBeenSet = false;
403
404 LoggingConfig m_loggingConfig;
405 bool m_loggingConfigHasBeenSet = false;
406 };
407
408} // namespace Model
409} // namespace Lambda
410} // namespace Aws
UpdateFunctionConfigurationRequest & WithEphemeralStorage(EphemeralStorageT &&value)
AWS_LAMBDA_API Aws::String SerializePayload() const override
UpdateFunctionConfigurationRequest & AddFileSystemConfigs(FileSystemConfigsT &&value)
UpdateFunctionConfigurationRequest & WithLayers(LayersT &&value)
UpdateFunctionConfigurationRequest & WithRole(RoleT &&value)
UpdateFunctionConfigurationRequest & WithDeadLetterConfig(DeadLetterConfigT &&value)
UpdateFunctionConfigurationRequest & WithImageConfig(ImageConfigT &&value)
UpdateFunctionConfigurationRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< FileSystemConfig > & GetFileSystemConfigs() const
UpdateFunctionConfigurationRequest & WithFileSystemConfigs(FileSystemConfigsT &&value)
UpdateFunctionConfigurationRequest & AddLayers(LayersT &&value)
UpdateFunctionConfigurationRequest & WithLoggingConfig(LoggingConfigT &&value)
UpdateFunctionConfigurationRequest & WithTracingConfig(TracingConfigT &&value)
UpdateFunctionConfigurationRequest & WithHandler(HandlerT &&value)
UpdateFunctionConfigurationRequest & WithRevisionId(RevisionIdT &&value)
UpdateFunctionConfigurationRequest & WithRuntime(Runtime value)
UpdateFunctionConfigurationRequest & WithKMSKeyArn(KMSKeyArnT &&value)
UpdateFunctionConfigurationRequest & WithVpcConfig(VpcConfigT &&value)
UpdateFunctionConfigurationRequest & WithFunctionName(FunctionNameT &&value)
UpdateFunctionConfigurationRequest & WithEnvironment(EnvironmentT &&value)
UpdateFunctionConfigurationRequest & WithSnapStart(SnapStartT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector