AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UpdateFunctionConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lambda/LambdaRequest.h>
10#include <aws/lambda/Lambda_EXPORTS.h>
11#include <aws/lambda/model/AcceleratorConfig.h>
12#include <aws/lambda/model/CapacityProviderConfig.h>
13#include <aws/lambda/model/DeadLetterConfig.h>
14#include <aws/lambda/model/DurableConfig.h>
15#include <aws/lambda/model/Environment.h>
16#include <aws/lambda/model/EphemeralStorage.h>
17#include <aws/lambda/model/FileSystemConfig.h>
18#include <aws/lambda/model/FunctionRuntimeConfig.h>
19#include <aws/lambda/model/ImageConfig.h>
20#include <aws/lambda/model/LoggingConfig.h>
21#include <aws/lambda/model/Runtime.h>
22#include <aws/lambda/model/SnapStart.h>
23#include <aws/lambda/model/TracingConfig.h>
24#include <aws/lambda/model/VpcConfig.h>
25
26#include <utility>
27
28namespace Aws {
29namespace Lambda {
30namespace Model {
31
35 public:
36 AWS_LAMBDA_API UpdateFunctionConfigurationRequest() = default;
37
38 // Service request name is the Operation name which will send this request out,
39 // each operation should has unique request name, so that we can get operation's name from this request.
40 // Note: this is not true for response, multiple operations may have the same response name,
41 // so we can not get operation's name from response.
42 inline virtual const char* GetServiceRequestName() const override { return "UpdateFunctionConfiguration"; }
43
44 AWS_LAMBDA_API Aws::String SerializePayload() const override;
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) {
61 m_functionNameHasBeenSet = true;
62 m_functionName = std::forward<FunctionNameT>(value);
63 }
64 template <typename FunctionNameT = Aws::String>
66 SetFunctionName(std::forward<FunctionNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetRole() const { return m_role; }
76 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
77 template <typename RoleT = Aws::String>
78 void SetRole(RoleT&& value) {
79 m_roleHasBeenSet = true;
80 m_role = std::forward<RoleT>(value);
81 }
82 template <typename RoleT = Aws::String>
84 SetRole(std::forward<RoleT>(value));
85 return *this;
86 }
88
90
98 inline const Aws::String& GetHandler() const { return m_handler; }
99 inline bool HandlerHasBeenSet() const { return m_handlerHasBeenSet; }
100 template <typename HandlerT = Aws::String>
101 void SetHandler(HandlerT&& value) {
102 m_handlerHasBeenSet = true;
103 m_handler = std::forward<HandlerT>(value);
104 }
105 template <typename HandlerT = Aws::String>
107 SetHandler(std::forward<HandlerT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetDescription() const { return m_description; }
117 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
118 template <typename DescriptionT = Aws::String>
119 void SetDescription(DescriptionT&& value) {
120 m_descriptionHasBeenSet = true;
121 m_description = std::forward<DescriptionT>(value);
122 }
123 template <typename DescriptionT = Aws::String>
125 SetDescription(std::forward<DescriptionT>(value));
126 return *this;
127 }
129
131
141 inline int GetTimeout() const { return m_timeout; }
142 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
143 inline void SetTimeout(int value) {
144 m_timeoutHasBeenSet = true;
145 m_timeout = value;
146 }
148 SetTimeout(value);
149 return *this;
150 }
152
154
161 inline int GetMemorySize() const { return m_memorySize; }
162 inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; }
163 inline void SetMemorySize(int value) {
164 m_memorySizeHasBeenSet = true;
165 m_memorySize = value;
166 }
168 SetMemorySize(value);
169 return *this;
170 }
172
174
182 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
183 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
184 template <typename VpcConfigT = VpcConfig>
185 void SetVpcConfig(VpcConfigT&& value) {
186 m_vpcConfigHasBeenSet = true;
187 m_vpcConfig = std::forward<VpcConfigT>(value);
188 }
189 template <typename VpcConfigT = VpcConfig>
191 SetVpcConfig(std::forward<VpcConfigT>(value));
192 return *this;
193 }
195
197
201 inline const Environment& GetEnvironment() const { return m_environment; }
202 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
203 template <typename EnvironmentT = Environment>
204 void SetEnvironment(EnvironmentT&& value) {
205 m_environmentHasBeenSet = true;
206 m_environment = std::forward<EnvironmentT>(value);
207 }
208 template <typename EnvironmentT = Environment>
210 SetEnvironment(std::forward<EnvironmentT>(value));
211 return *this;
212 }
214
216
230 inline Runtime GetRuntime() const { return m_runtime; }
231 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
232 inline void SetRuntime(Runtime value) {
233 m_runtimeHasBeenSet = true;
234 m_runtime = value;
235 }
237 SetRuntime(value);
238 return *this;
239 }
241
243
250 inline const DeadLetterConfig& GetDeadLetterConfig() const { return m_deadLetterConfig; }
251 inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
252 template <typename DeadLetterConfigT = DeadLetterConfig>
253 void SetDeadLetterConfig(DeadLetterConfigT&& value) {
254 m_deadLetterConfigHasBeenSet = true;
255 m_deadLetterConfig = std::forward<DeadLetterConfigT>(value);
256 }
257 template <typename DeadLetterConfigT = DeadLetterConfig>
259 SetDeadLetterConfig(std::forward<DeadLetterConfigT>(value));
260 return *this;
261 }
263
265
288 inline const Aws::String& GetKMSKeyArn() const { return m_kMSKeyArn; }
289 inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
290 template <typename KMSKeyArnT = Aws::String>
291 void SetKMSKeyArn(KMSKeyArnT&& value) {
292 m_kMSKeyArnHasBeenSet = true;
293 m_kMSKeyArn = std::forward<KMSKeyArnT>(value);
294 }
295 template <typename KMSKeyArnT = Aws::String>
297 SetKMSKeyArn(std::forward<KMSKeyArnT>(value));
298 return *this;
299 }
301
303
308 inline const TracingConfig& GetTracingConfig() const { return m_tracingConfig; }
309 inline bool TracingConfigHasBeenSet() const { return m_tracingConfigHasBeenSet; }
310 template <typename TracingConfigT = TracingConfig>
311 void SetTracingConfig(TracingConfigT&& value) {
312 m_tracingConfigHasBeenSet = true;
313 m_tracingConfig = std::forward<TracingConfigT>(value);
314 }
315 template <typename TracingConfigT = TracingConfig>
317 SetTracingConfig(std::forward<TracingConfigT>(value));
318 return *this;
319 }
321
323
328 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
329 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
330 template <typename RevisionIdT = Aws::String>
331 void SetRevisionId(RevisionIdT&& value) {
332 m_revisionIdHasBeenSet = true;
333 m_revisionId = std::forward<RevisionIdT>(value);
334 }
335 template <typename RevisionIdT = Aws::String>
337 SetRevisionId(std::forward<RevisionIdT>(value));
338 return *this;
339 }
341
343
349 inline const Aws::Vector<Aws::String>& GetLayers() const { return m_layers; }
350 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
351 template <typename LayersT = Aws::Vector<Aws::String>>
352 void SetLayers(LayersT&& value) {
353 m_layersHasBeenSet = true;
354 m_layers = std::forward<LayersT>(value);
355 }
356 template <typename LayersT = Aws::Vector<Aws::String>>
358 SetLayers(std::forward<LayersT>(value));
359 return *this;
360 }
361 template <typename LayersT = Aws::String>
363 m_layersHasBeenSet = true;
364 m_layers.emplace_back(std::forward<LayersT>(value));
365 return *this;
366 }
368
370
374 inline const Aws::Vector<FileSystemConfig>& GetFileSystemConfigs() const { return m_fileSystemConfigs; }
375 inline bool FileSystemConfigsHasBeenSet() const { return m_fileSystemConfigsHasBeenSet; }
376 template <typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
377 void SetFileSystemConfigs(FileSystemConfigsT&& value) {
378 m_fileSystemConfigsHasBeenSet = true;
379 m_fileSystemConfigs = std::forward<FileSystemConfigsT>(value);
380 }
381 template <typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
383 SetFileSystemConfigs(std::forward<FileSystemConfigsT>(value));
384 return *this;
385 }
386 template <typename FileSystemConfigsT = FileSystemConfig>
388 m_fileSystemConfigsHasBeenSet = true;
389 m_fileSystemConfigs.emplace_back(std::forward<FileSystemConfigsT>(value));
390 return *this;
391 }
393
395
401 inline const ImageConfig& GetImageConfig() const { return m_imageConfig; }
402 inline bool ImageConfigHasBeenSet() const { return m_imageConfigHasBeenSet; }
403 template <typename ImageConfigT = ImageConfig>
404 void SetImageConfig(ImageConfigT&& value) {
405 m_imageConfigHasBeenSet = true;
406 m_imageConfig = std::forward<ImageConfigT>(value);
407 }
408 template <typename ImageConfigT = ImageConfig>
410 SetImageConfig(std::forward<ImageConfigT>(value));
411 return *this;
412 }
414
416
424 inline const EphemeralStorage& GetEphemeralStorage() const { return m_ephemeralStorage; }
425 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
426 template <typename EphemeralStorageT = EphemeralStorage>
427 void SetEphemeralStorage(EphemeralStorageT&& value) {
428 m_ephemeralStorageHasBeenSet = true;
429 m_ephemeralStorage = std::forward<EphemeralStorageT>(value);
430 }
431 template <typename EphemeralStorageT = EphemeralStorage>
433 SetEphemeralStorage(std::forward<EphemeralStorageT>(value));
434 return *this;
435 }
437
439
444 inline const SnapStart& GetSnapStart() const { return m_snapStart; }
445 inline bool SnapStartHasBeenSet() const { return m_snapStartHasBeenSet; }
446 template <typename SnapStartT = SnapStart>
447 void SetSnapStart(SnapStartT&& value) {
448 m_snapStartHasBeenSet = true;
449 m_snapStart = std::forward<SnapStartT>(value);
450 }
451 template <typename SnapStartT = SnapStart>
453 SetSnapStart(std::forward<SnapStartT>(value));
454 return *this;
455 }
457
459
462 inline const LoggingConfig& GetLoggingConfig() const { return m_loggingConfig; }
463 inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; }
464 template <typename LoggingConfigT = LoggingConfig>
465 void SetLoggingConfig(LoggingConfigT&& value) {
466 m_loggingConfigHasBeenSet = true;
467 m_loggingConfig = std::forward<LoggingConfigT>(value);
468 }
469 template <typename LoggingConfigT = LoggingConfig>
471 SetLoggingConfig(std::forward<LoggingConfigT>(value));
472 return *this;
473 }
475
477
481 inline const CapacityProviderConfig& GetCapacityProviderConfig() const { return m_capacityProviderConfig; }
482 inline bool CapacityProviderConfigHasBeenSet() const { return m_capacityProviderConfigHasBeenSet; }
483 template <typename CapacityProviderConfigT = CapacityProviderConfig>
484 void SetCapacityProviderConfig(CapacityProviderConfigT&& value) {
485 m_capacityProviderConfigHasBeenSet = true;
486 m_capacityProviderConfig = std::forward<CapacityProviderConfigT>(value);
487 }
488 template <typename CapacityProviderConfigT = CapacityProviderConfig>
490 SetCapacityProviderConfig(std::forward<CapacityProviderConfigT>(value));
491 return *this;
492 }
494
496
504 inline const DurableConfig& GetDurableConfig() const { return m_durableConfig; }
505 inline bool DurableConfigHasBeenSet() const { return m_durableConfigHasBeenSet; }
506 template <typename DurableConfigT = DurableConfig>
507 void SetDurableConfig(DurableConfigT&& value) {
508 m_durableConfigHasBeenSet = true;
509 m_durableConfig = std::forward<DurableConfigT>(value);
510 }
511 template <typename DurableConfigT = DurableConfig>
513 SetDurableConfig(std::forward<DurableConfigT>(value));
514 return *this;
515 }
517
519
523 inline const FunctionRuntimeConfig& GetRuntimeConfig() const { return m_runtimeConfig; }
524 inline bool RuntimeConfigHasBeenSet() const { return m_runtimeConfigHasBeenSet; }
525 template <typename RuntimeConfigT = FunctionRuntimeConfig>
526 void SetRuntimeConfig(RuntimeConfigT&& value) {
527 m_runtimeConfigHasBeenSet = true;
528 m_runtimeConfig = std::forward<RuntimeConfigT>(value);
529 }
530 template <typename RuntimeConfigT = FunctionRuntimeConfig>
532 SetRuntimeConfig(std::forward<RuntimeConfigT>(value));
533 return *this;
534 }
536
538
541 inline const AcceleratorConfig& GetAcceleratorConfig() const { return m_acceleratorConfig; }
542 inline bool AcceleratorConfigHasBeenSet() const { return m_acceleratorConfigHasBeenSet; }
543 template <typename AcceleratorConfigT = AcceleratorConfig>
544 void SetAcceleratorConfig(AcceleratorConfigT&& value) {
545 m_acceleratorConfigHasBeenSet = true;
546 m_acceleratorConfig = std::forward<AcceleratorConfigT>(value);
547 }
548 template <typename AcceleratorConfigT = AcceleratorConfig>
550 SetAcceleratorConfig(std::forward<AcceleratorConfigT>(value));
551 return *this;
552 }
554 private:
555 Aws::String m_functionName;
556
557 Aws::String m_role;
558
559 Aws::String m_handler;
560
561 Aws::String m_description;
562
563 int m_timeout{0};
564
565 int m_memorySize{0};
566
567 VpcConfig m_vpcConfig;
568
569 Environment m_environment;
570
571 Runtime m_runtime{Runtime::NOT_SET};
572
573 DeadLetterConfig m_deadLetterConfig;
574
575 Aws::String m_kMSKeyArn;
576
577 TracingConfig m_tracingConfig;
578
579 Aws::String m_revisionId;
580
582
583 Aws::Vector<FileSystemConfig> m_fileSystemConfigs;
584
585 ImageConfig m_imageConfig;
586
587 EphemeralStorage m_ephemeralStorage;
588
589 SnapStart m_snapStart;
590
591 LoggingConfig m_loggingConfig;
592
593 CapacityProviderConfig m_capacityProviderConfig;
594
595 DurableConfig m_durableConfig;
596
597 FunctionRuntimeConfig m_runtimeConfig;
598
599 AcceleratorConfig m_acceleratorConfig;
600 bool m_functionNameHasBeenSet = false;
601 bool m_roleHasBeenSet = false;
602 bool m_handlerHasBeenSet = false;
603 bool m_descriptionHasBeenSet = false;
604 bool m_timeoutHasBeenSet = false;
605 bool m_memorySizeHasBeenSet = false;
606 bool m_vpcConfigHasBeenSet = false;
607 bool m_environmentHasBeenSet = false;
608 bool m_runtimeHasBeenSet = false;
609 bool m_deadLetterConfigHasBeenSet = false;
610 bool m_kMSKeyArnHasBeenSet = false;
611 bool m_tracingConfigHasBeenSet = false;
612 bool m_revisionIdHasBeenSet = false;
613 bool m_layersHasBeenSet = false;
614 bool m_fileSystemConfigsHasBeenSet = false;
615 bool m_imageConfigHasBeenSet = false;
616 bool m_ephemeralStorageHasBeenSet = false;
617 bool m_snapStartHasBeenSet = false;
618 bool m_loggingConfigHasBeenSet = false;
619 bool m_capacityProviderConfigHasBeenSet = false;
620 bool m_durableConfigHasBeenSet = false;
621 bool m_runtimeConfigHasBeenSet = false;
622 bool m_acceleratorConfigHasBeenSet = false;
623};
624
625} // namespace Model
626} // namespace Lambda
627} // namespace Aws
UpdateFunctionConfigurationRequest & WithEphemeralStorage(EphemeralStorageT &&value)
UpdateFunctionConfigurationRequest & WithAcceleratorConfig(AcceleratorConfigT &&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 & WithCapacityProviderConfig(CapacityProviderConfigT &&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 & WithRuntimeConfig(RuntimeConfigT &&value)
UpdateFunctionConfigurationRequest & WithSnapStart(SnapStartT &&value)
UpdateFunctionConfigurationRequest & WithDurableConfig(DurableConfigT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector