AWS SDK for C++

AWS SDK for C++ Version 1.11.905

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/CapacityProviderConfig.h>
12#include <aws/lambda/model/DeadLetterConfig.h>
13#include <aws/lambda/model/DurableConfig.h>
14#include <aws/lambda/model/Environment.h>
15#include <aws/lambda/model/EphemeralStorage.h>
16#include <aws/lambda/model/FileSystemConfig.h>
17#include <aws/lambda/model/ImageConfig.h>
18#include <aws/lambda/model/LoggingConfig.h>
19#include <aws/lambda/model/Runtime.h>
20#include <aws/lambda/model/SnapStart.h>
21#include <aws/lambda/model/TracingConfig.h>
22#include <aws/lambda/model/VpcConfig.h>
23
24#include <utility>
25
26namespace Aws {
27namespace Lambda {
28namespace Model {
29
33 public:
34 AWS_LAMBDA_API UpdateFunctionConfigurationRequest() = default;
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "UpdateFunctionConfiguration"; }
41
42 AWS_LAMBDA_API Aws::String SerializePayload() const override;
43
45
55 inline const Aws::String& GetFunctionName() const { return m_functionName; }
56 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
57 template <typename FunctionNameT = Aws::String>
58 void SetFunctionName(FunctionNameT&& value) {
59 m_functionNameHasBeenSet = true;
60 m_functionName = std::forward<FunctionNameT>(value);
61 }
62 template <typename FunctionNameT = Aws::String>
64 SetFunctionName(std::forward<FunctionNameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetRole() const { return m_role; }
74 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
75 template <typename RoleT = Aws::String>
76 void SetRole(RoleT&& value) {
77 m_roleHasBeenSet = true;
78 m_role = std::forward<RoleT>(value);
79 }
80 template <typename RoleT = Aws::String>
82 SetRole(std::forward<RoleT>(value));
83 return *this;
84 }
86
88
96 inline const Aws::String& GetHandler() const { return m_handler; }
97 inline bool HandlerHasBeenSet() const { return m_handlerHasBeenSet; }
98 template <typename HandlerT = Aws::String>
99 void SetHandler(HandlerT&& value) {
100 m_handlerHasBeenSet = true;
101 m_handler = std::forward<HandlerT>(value);
102 }
103 template <typename HandlerT = Aws::String>
105 SetHandler(std::forward<HandlerT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetDescription() const { return m_description; }
115 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
116 template <typename DescriptionT = Aws::String>
117 void SetDescription(DescriptionT&& value) {
118 m_descriptionHasBeenSet = true;
119 m_description = std::forward<DescriptionT>(value);
120 }
121 template <typename DescriptionT = Aws::String>
123 SetDescription(std::forward<DescriptionT>(value));
124 return *this;
125 }
127
129
139 inline int GetTimeout() const { return m_timeout; }
140 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
141 inline void SetTimeout(int value) {
142 m_timeoutHasBeenSet = true;
143 m_timeout = value;
144 }
146 SetTimeout(value);
147 return *this;
148 }
150
152
159 inline int GetMemorySize() const { return m_memorySize; }
160 inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; }
161 inline void SetMemorySize(int value) {
162 m_memorySizeHasBeenSet = true;
163 m_memorySize = value;
164 }
166 SetMemorySize(value);
167 return *this;
168 }
170
172
180 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
181 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
182 template <typename VpcConfigT = VpcConfig>
183 void SetVpcConfig(VpcConfigT&& value) {
184 m_vpcConfigHasBeenSet = true;
185 m_vpcConfig = std::forward<VpcConfigT>(value);
186 }
187 template <typename VpcConfigT = VpcConfig>
189 SetVpcConfig(std::forward<VpcConfigT>(value));
190 return *this;
191 }
193
195
199 inline const Environment& GetEnvironment() const { return m_environment; }
200 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
201 template <typename EnvironmentT = Environment>
202 void SetEnvironment(EnvironmentT&& value) {
203 m_environmentHasBeenSet = true;
204 m_environment = std::forward<EnvironmentT>(value);
205 }
206 template <typename EnvironmentT = Environment>
208 SetEnvironment(std::forward<EnvironmentT>(value));
209 return *this;
210 }
212
214
228 inline Runtime GetRuntime() const { return m_runtime; }
229 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
230 inline void SetRuntime(Runtime value) {
231 m_runtimeHasBeenSet = true;
232 m_runtime = value;
233 }
235 SetRuntime(value);
236 return *this;
237 }
239
241
248 inline const DeadLetterConfig& GetDeadLetterConfig() const { return m_deadLetterConfig; }
249 inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
250 template <typename DeadLetterConfigT = DeadLetterConfig>
251 void SetDeadLetterConfig(DeadLetterConfigT&& value) {
252 m_deadLetterConfigHasBeenSet = true;
253 m_deadLetterConfig = std::forward<DeadLetterConfigT>(value);
254 }
255 template <typename DeadLetterConfigT = DeadLetterConfig>
257 SetDeadLetterConfig(std::forward<DeadLetterConfigT>(value));
258 return *this;
259 }
261
263
286 inline const Aws::String& GetKMSKeyArn() const { return m_kMSKeyArn; }
287 inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
288 template <typename KMSKeyArnT = Aws::String>
289 void SetKMSKeyArn(KMSKeyArnT&& value) {
290 m_kMSKeyArnHasBeenSet = true;
291 m_kMSKeyArn = std::forward<KMSKeyArnT>(value);
292 }
293 template <typename KMSKeyArnT = Aws::String>
295 SetKMSKeyArn(std::forward<KMSKeyArnT>(value));
296 return *this;
297 }
299
301
306 inline const TracingConfig& GetTracingConfig() const { return m_tracingConfig; }
307 inline bool TracingConfigHasBeenSet() const { return m_tracingConfigHasBeenSet; }
308 template <typename TracingConfigT = TracingConfig>
309 void SetTracingConfig(TracingConfigT&& value) {
310 m_tracingConfigHasBeenSet = true;
311 m_tracingConfig = std::forward<TracingConfigT>(value);
312 }
313 template <typename TracingConfigT = TracingConfig>
315 SetTracingConfig(std::forward<TracingConfigT>(value));
316 return *this;
317 }
319
321
326 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
327 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
328 template <typename RevisionIdT = Aws::String>
329 void SetRevisionId(RevisionIdT&& value) {
330 m_revisionIdHasBeenSet = true;
331 m_revisionId = std::forward<RevisionIdT>(value);
332 }
333 template <typename RevisionIdT = Aws::String>
335 SetRevisionId(std::forward<RevisionIdT>(value));
336 return *this;
337 }
339
341
347 inline const Aws::Vector<Aws::String>& GetLayers() const { return m_layers; }
348 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
349 template <typename LayersT = Aws::Vector<Aws::String>>
350 void SetLayers(LayersT&& value) {
351 m_layersHasBeenSet = true;
352 m_layers = std::forward<LayersT>(value);
353 }
354 template <typename LayersT = Aws::Vector<Aws::String>>
356 SetLayers(std::forward<LayersT>(value));
357 return *this;
358 }
359 template <typename LayersT = Aws::String>
361 m_layersHasBeenSet = true;
362 m_layers.emplace_back(std::forward<LayersT>(value));
363 return *this;
364 }
366
368
372 inline const Aws::Vector<FileSystemConfig>& GetFileSystemConfigs() const { return m_fileSystemConfigs; }
373 inline bool FileSystemConfigsHasBeenSet() const { return m_fileSystemConfigsHasBeenSet; }
374 template <typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
375 void SetFileSystemConfigs(FileSystemConfigsT&& value) {
376 m_fileSystemConfigsHasBeenSet = true;
377 m_fileSystemConfigs = std::forward<FileSystemConfigsT>(value);
378 }
379 template <typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
381 SetFileSystemConfigs(std::forward<FileSystemConfigsT>(value));
382 return *this;
383 }
384 template <typename FileSystemConfigsT = FileSystemConfig>
386 m_fileSystemConfigsHasBeenSet = true;
387 m_fileSystemConfigs.emplace_back(std::forward<FileSystemConfigsT>(value));
388 return *this;
389 }
391
393
399 inline const ImageConfig& GetImageConfig() const { return m_imageConfig; }
400 inline bool ImageConfigHasBeenSet() const { return m_imageConfigHasBeenSet; }
401 template <typename ImageConfigT = ImageConfig>
402 void SetImageConfig(ImageConfigT&& value) {
403 m_imageConfigHasBeenSet = true;
404 m_imageConfig = std::forward<ImageConfigT>(value);
405 }
406 template <typename ImageConfigT = ImageConfig>
408 SetImageConfig(std::forward<ImageConfigT>(value));
409 return *this;
410 }
412
414
421 inline const EphemeralStorage& GetEphemeralStorage() const { return m_ephemeralStorage; }
422 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
423 template <typename EphemeralStorageT = EphemeralStorage>
424 void SetEphemeralStorage(EphemeralStorageT&& value) {
425 m_ephemeralStorageHasBeenSet = true;
426 m_ephemeralStorage = std::forward<EphemeralStorageT>(value);
427 }
428 template <typename EphemeralStorageT = EphemeralStorage>
430 SetEphemeralStorage(std::forward<EphemeralStorageT>(value));
431 return *this;
432 }
434
436
441 inline const SnapStart& GetSnapStart() const { return m_snapStart; }
442 inline bool SnapStartHasBeenSet() const { return m_snapStartHasBeenSet; }
443 template <typename SnapStartT = SnapStart>
444 void SetSnapStart(SnapStartT&& value) {
445 m_snapStartHasBeenSet = true;
446 m_snapStart = std::forward<SnapStartT>(value);
447 }
448 template <typename SnapStartT = SnapStart>
450 SetSnapStart(std::forward<SnapStartT>(value));
451 return *this;
452 }
454
456
459 inline const LoggingConfig& GetLoggingConfig() const { return m_loggingConfig; }
460 inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; }
461 template <typename LoggingConfigT = LoggingConfig>
462 void SetLoggingConfig(LoggingConfigT&& value) {
463 m_loggingConfigHasBeenSet = true;
464 m_loggingConfig = std::forward<LoggingConfigT>(value);
465 }
466 template <typename LoggingConfigT = LoggingConfig>
468 SetLoggingConfig(std::forward<LoggingConfigT>(value));
469 return *this;
470 }
472
474
478 inline const CapacityProviderConfig& GetCapacityProviderConfig() const { return m_capacityProviderConfig; }
479 inline bool CapacityProviderConfigHasBeenSet() const { return m_capacityProviderConfigHasBeenSet; }
480 template <typename CapacityProviderConfigT = CapacityProviderConfig>
481 void SetCapacityProviderConfig(CapacityProviderConfigT&& value) {
482 m_capacityProviderConfigHasBeenSet = true;
483 m_capacityProviderConfig = std::forward<CapacityProviderConfigT>(value);
484 }
485 template <typename CapacityProviderConfigT = CapacityProviderConfig>
487 SetCapacityProviderConfig(std::forward<CapacityProviderConfigT>(value));
488 return *this;
489 }
491
493
501 inline const DurableConfig& GetDurableConfig() const { return m_durableConfig; }
502 inline bool DurableConfigHasBeenSet() const { return m_durableConfigHasBeenSet; }
503 template <typename DurableConfigT = DurableConfig>
504 void SetDurableConfig(DurableConfigT&& value) {
505 m_durableConfigHasBeenSet = true;
506 m_durableConfig = std::forward<DurableConfigT>(value);
507 }
508 template <typename DurableConfigT = DurableConfig>
510 SetDurableConfig(std::forward<DurableConfigT>(value));
511 return *this;
512 }
514 private:
515 Aws::String m_functionName;
516
517 Aws::String m_role;
518
519 Aws::String m_handler;
520
521 Aws::String m_description;
522
523 int m_timeout{0};
524
525 int m_memorySize{0};
526
527 VpcConfig m_vpcConfig;
528
529 Environment m_environment;
530
531 Runtime m_runtime{Runtime::NOT_SET};
532
533 DeadLetterConfig m_deadLetterConfig;
534
535 Aws::String m_kMSKeyArn;
536
537 TracingConfig m_tracingConfig;
538
539 Aws::String m_revisionId;
540
542
543 Aws::Vector<FileSystemConfig> m_fileSystemConfigs;
544
545 ImageConfig m_imageConfig;
546
547 EphemeralStorage m_ephemeralStorage;
548
549 SnapStart m_snapStart;
550
551 LoggingConfig m_loggingConfig;
552
553 CapacityProviderConfig m_capacityProviderConfig;
554
555 DurableConfig m_durableConfig;
556 bool m_functionNameHasBeenSet = false;
557 bool m_roleHasBeenSet = false;
558 bool m_handlerHasBeenSet = false;
559 bool m_descriptionHasBeenSet = false;
560 bool m_timeoutHasBeenSet = false;
561 bool m_memorySizeHasBeenSet = false;
562 bool m_vpcConfigHasBeenSet = false;
563 bool m_environmentHasBeenSet = false;
564 bool m_runtimeHasBeenSet = false;
565 bool m_deadLetterConfigHasBeenSet = false;
566 bool m_kMSKeyArnHasBeenSet = false;
567 bool m_tracingConfigHasBeenSet = false;
568 bool m_revisionIdHasBeenSet = false;
569 bool m_layersHasBeenSet = false;
570 bool m_fileSystemConfigsHasBeenSet = false;
571 bool m_imageConfigHasBeenSet = false;
572 bool m_ephemeralStorageHasBeenSet = false;
573 bool m_snapStartHasBeenSet = false;
574 bool m_loggingConfigHasBeenSet = false;
575 bool m_capacityProviderConfigHasBeenSet = false;
576 bool m_durableConfigHasBeenSet = false;
577};
578
579} // namespace Model
580} // namespace Lambda
581} // 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 & 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 & 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