AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
136 inline int GetTimeout() const { return m_timeout; }
137 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
138 inline void SetTimeout(int value) {
139 m_timeoutHasBeenSet = true;
140 m_timeout = value;
141 }
143 SetTimeout(value);
144 return *this;
145 }
147
149
156 inline int GetMemorySize() const { return m_memorySize; }
157 inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; }
158 inline void SetMemorySize(int value) {
159 m_memorySizeHasBeenSet = true;
160 m_memorySize = value;
161 }
163 SetMemorySize(value);
164 return *this;
165 }
167
169
177 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
178 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
179 template <typename VpcConfigT = VpcConfig>
180 void SetVpcConfig(VpcConfigT&& value) {
181 m_vpcConfigHasBeenSet = true;
182 m_vpcConfig = std::forward<VpcConfigT>(value);
183 }
184 template <typename VpcConfigT = VpcConfig>
186 SetVpcConfig(std::forward<VpcConfigT>(value));
187 return *this;
188 }
190
192
196 inline const Environment& GetEnvironment() const { return m_environment; }
197 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
198 template <typename EnvironmentT = Environment>
199 void SetEnvironment(EnvironmentT&& value) {
200 m_environmentHasBeenSet = true;
201 m_environment = std::forward<EnvironmentT>(value);
202 }
203 template <typename EnvironmentT = Environment>
205 SetEnvironment(std::forward<EnvironmentT>(value));
206 return *this;
207 }
209
211
225 inline Runtime GetRuntime() const { return m_runtime; }
226 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
227 inline void SetRuntime(Runtime value) {
228 m_runtimeHasBeenSet = true;
229 m_runtime = value;
230 }
232 SetRuntime(value);
233 return *this;
234 }
236
238
245 inline const DeadLetterConfig& GetDeadLetterConfig() const { return m_deadLetterConfig; }
246 inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
247 template <typename DeadLetterConfigT = DeadLetterConfig>
248 void SetDeadLetterConfig(DeadLetterConfigT&& value) {
249 m_deadLetterConfigHasBeenSet = true;
250 m_deadLetterConfig = std::forward<DeadLetterConfigT>(value);
251 }
252 template <typename DeadLetterConfigT = DeadLetterConfig>
254 SetDeadLetterConfig(std::forward<DeadLetterConfigT>(value));
255 return *this;
256 }
258
260
283 inline const Aws::String& GetKMSKeyArn() const { return m_kMSKeyArn; }
284 inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
285 template <typename KMSKeyArnT = Aws::String>
286 void SetKMSKeyArn(KMSKeyArnT&& value) {
287 m_kMSKeyArnHasBeenSet = true;
288 m_kMSKeyArn = std::forward<KMSKeyArnT>(value);
289 }
290 template <typename KMSKeyArnT = Aws::String>
292 SetKMSKeyArn(std::forward<KMSKeyArnT>(value));
293 return *this;
294 }
296
298
303 inline const TracingConfig& GetTracingConfig() const { return m_tracingConfig; }
304 inline bool TracingConfigHasBeenSet() const { return m_tracingConfigHasBeenSet; }
305 template <typename TracingConfigT = TracingConfig>
306 void SetTracingConfig(TracingConfigT&& value) {
307 m_tracingConfigHasBeenSet = true;
308 m_tracingConfig = std::forward<TracingConfigT>(value);
309 }
310 template <typename TracingConfigT = TracingConfig>
312 SetTracingConfig(std::forward<TracingConfigT>(value));
313 return *this;
314 }
316
318
323 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
324 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
325 template <typename RevisionIdT = Aws::String>
326 void SetRevisionId(RevisionIdT&& value) {
327 m_revisionIdHasBeenSet = true;
328 m_revisionId = std::forward<RevisionIdT>(value);
329 }
330 template <typename RevisionIdT = Aws::String>
332 SetRevisionId(std::forward<RevisionIdT>(value));
333 return *this;
334 }
336
338
344 inline const Aws::Vector<Aws::String>& GetLayers() const { return m_layers; }
345 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
346 template <typename LayersT = Aws::Vector<Aws::String>>
347 void SetLayers(LayersT&& value) {
348 m_layersHasBeenSet = true;
349 m_layers = std::forward<LayersT>(value);
350 }
351 template <typename LayersT = Aws::Vector<Aws::String>>
353 SetLayers(std::forward<LayersT>(value));
354 return *this;
355 }
356 template <typename LayersT = Aws::String>
358 m_layersHasBeenSet = true;
359 m_layers.emplace_back(std::forward<LayersT>(value));
360 return *this;
361 }
363
365
368 inline const Aws::Vector<FileSystemConfig>& GetFileSystemConfigs() const { return m_fileSystemConfigs; }
369 inline bool FileSystemConfigsHasBeenSet() const { return m_fileSystemConfigsHasBeenSet; }
370 template <typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
371 void SetFileSystemConfigs(FileSystemConfigsT&& value) {
372 m_fileSystemConfigsHasBeenSet = true;
373 m_fileSystemConfigs = std::forward<FileSystemConfigsT>(value);
374 }
375 template <typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
377 SetFileSystemConfigs(std::forward<FileSystemConfigsT>(value));
378 return *this;
379 }
380 template <typename FileSystemConfigsT = FileSystemConfig>
382 m_fileSystemConfigsHasBeenSet = true;
383 m_fileSystemConfigs.emplace_back(std::forward<FileSystemConfigsT>(value));
384 return *this;
385 }
387
389
395 inline const ImageConfig& GetImageConfig() const { return m_imageConfig; }
396 inline bool ImageConfigHasBeenSet() const { return m_imageConfigHasBeenSet; }
397 template <typename ImageConfigT = ImageConfig>
398 void SetImageConfig(ImageConfigT&& value) {
399 m_imageConfigHasBeenSet = true;
400 m_imageConfig = std::forward<ImageConfigT>(value);
401 }
402 template <typename ImageConfigT = ImageConfig>
404 SetImageConfig(std::forward<ImageConfigT>(value));
405 return *this;
406 }
408
410
417 inline const EphemeralStorage& GetEphemeralStorage() const { return m_ephemeralStorage; }
418 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
419 template <typename EphemeralStorageT = EphemeralStorage>
420 void SetEphemeralStorage(EphemeralStorageT&& value) {
421 m_ephemeralStorageHasBeenSet = true;
422 m_ephemeralStorage = std::forward<EphemeralStorageT>(value);
423 }
424 template <typename EphemeralStorageT = EphemeralStorage>
426 SetEphemeralStorage(std::forward<EphemeralStorageT>(value));
427 return *this;
428 }
430
432
437 inline const SnapStart& GetSnapStart() const { return m_snapStart; }
438 inline bool SnapStartHasBeenSet() const { return m_snapStartHasBeenSet; }
439 template <typename SnapStartT = SnapStart>
440 void SetSnapStart(SnapStartT&& value) {
441 m_snapStartHasBeenSet = true;
442 m_snapStart = std::forward<SnapStartT>(value);
443 }
444 template <typename SnapStartT = SnapStart>
446 SetSnapStart(std::forward<SnapStartT>(value));
447 return *this;
448 }
450
452
455 inline const LoggingConfig& GetLoggingConfig() const { return m_loggingConfig; }
456 inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; }
457 template <typename LoggingConfigT = LoggingConfig>
458 void SetLoggingConfig(LoggingConfigT&& value) {
459 m_loggingConfigHasBeenSet = true;
460 m_loggingConfig = std::forward<LoggingConfigT>(value);
461 }
462 template <typename LoggingConfigT = LoggingConfig>
464 SetLoggingConfig(std::forward<LoggingConfigT>(value));
465 return *this;
466 }
468
470
474 inline const CapacityProviderConfig& GetCapacityProviderConfig() const { return m_capacityProviderConfig; }
475 inline bool CapacityProviderConfigHasBeenSet() const { return m_capacityProviderConfigHasBeenSet; }
476 template <typename CapacityProviderConfigT = CapacityProviderConfig>
477 void SetCapacityProviderConfig(CapacityProviderConfigT&& value) {
478 m_capacityProviderConfigHasBeenSet = true;
479 m_capacityProviderConfig = std::forward<CapacityProviderConfigT>(value);
480 }
481 template <typename CapacityProviderConfigT = CapacityProviderConfig>
483 SetCapacityProviderConfig(std::forward<CapacityProviderConfigT>(value));
484 return *this;
485 }
487
489
493 inline const DurableConfig& GetDurableConfig() const { return m_durableConfig; }
494 inline bool DurableConfigHasBeenSet() const { return m_durableConfigHasBeenSet; }
495 template <typename DurableConfigT = DurableConfig>
496 void SetDurableConfig(DurableConfigT&& value) {
497 m_durableConfigHasBeenSet = true;
498 m_durableConfig = std::forward<DurableConfigT>(value);
499 }
500 template <typename DurableConfigT = DurableConfig>
502 SetDurableConfig(std::forward<DurableConfigT>(value));
503 return *this;
504 }
506 private:
507 Aws::String m_functionName;
508
509 Aws::String m_role;
510
511 Aws::String m_handler;
512
513 Aws::String m_description;
514
515 int m_timeout{0};
516
517 int m_memorySize{0};
518
519 VpcConfig m_vpcConfig;
520
521 Environment m_environment;
522
523 Runtime m_runtime{Runtime::NOT_SET};
524
525 DeadLetterConfig m_deadLetterConfig;
526
527 Aws::String m_kMSKeyArn;
528
529 TracingConfig m_tracingConfig;
530
531 Aws::String m_revisionId;
532
534
535 Aws::Vector<FileSystemConfig> m_fileSystemConfigs;
536
537 ImageConfig m_imageConfig;
538
539 EphemeralStorage m_ephemeralStorage;
540
541 SnapStart m_snapStart;
542
543 LoggingConfig m_loggingConfig;
544
545 CapacityProviderConfig m_capacityProviderConfig;
546
547 DurableConfig m_durableConfig;
548 bool m_functionNameHasBeenSet = false;
549 bool m_roleHasBeenSet = false;
550 bool m_handlerHasBeenSet = false;
551 bool m_descriptionHasBeenSet = false;
552 bool m_timeoutHasBeenSet = false;
553 bool m_memorySizeHasBeenSet = false;
554 bool m_vpcConfigHasBeenSet = false;
555 bool m_environmentHasBeenSet = false;
556 bool m_runtimeHasBeenSet = false;
557 bool m_deadLetterConfigHasBeenSet = false;
558 bool m_kMSKeyArnHasBeenSet = false;
559 bool m_tracingConfigHasBeenSet = false;
560 bool m_revisionIdHasBeenSet = false;
561 bool m_layersHasBeenSet = false;
562 bool m_fileSystemConfigsHasBeenSet = false;
563 bool m_imageConfigHasBeenSet = false;
564 bool m_ephemeralStorageHasBeenSet = false;
565 bool m_snapStartHasBeenSet = false;
566 bool m_loggingConfigHasBeenSet = false;
567 bool m_capacityProviderConfigHasBeenSet = false;
568 bool m_durableConfigHasBeenSet = false;
569};
570
571} // namespace Model
572} // namespace Lambda
573} // 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