AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
FunctionConfiguration.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/Lambda_EXPORTS.h>
10#include <aws/lambda/model/AcceleratorConfig.h>
11#include <aws/lambda/model/Architecture.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/EnvironmentResponse.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/ImageConfigResponse.h>
20#include <aws/lambda/model/LastUpdateStatus.h>
21#include <aws/lambda/model/LastUpdateStatusReasonCode.h>
22#include <aws/lambda/model/Layer.h>
23#include <aws/lambda/model/LoggingConfig.h>
24#include <aws/lambda/model/PackageType.h>
25#include <aws/lambda/model/Runtime.h>
26#include <aws/lambda/model/RuntimeVersionConfig.h>
27#include <aws/lambda/model/SnapStartResponse.h>
28#include <aws/lambda/model/State.h>
29#include <aws/lambda/model/StateReasonCode.h>
30#include <aws/lambda/model/TenancyConfig.h>
31#include <aws/lambda/model/TracingConfigResponse.h>
32#include <aws/lambda/model/VpcConfigResponse.h>
33
34#include <utility>
35
36namespace Aws {
37namespace Utils {
38namespace Json {
39class JsonValue;
40class JsonView;
41} // namespace Json
42} // namespace Utils
43namespace Lambda {
44namespace Model {
45
52 public:
53 AWS_LAMBDA_API FunctionConfiguration() = default;
56 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
57
59
62 inline const Aws::String& GetFunctionName() const { return m_functionName; }
63 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
64 template <typename FunctionNameT = Aws::String>
65 void SetFunctionName(FunctionNameT&& value) {
66 m_functionNameHasBeenSet = true;
67 m_functionName = std::forward<FunctionNameT>(value);
68 }
69 template <typename FunctionNameT = Aws::String>
70 FunctionConfiguration& WithFunctionName(FunctionNameT&& value) {
71 SetFunctionName(std::forward<FunctionNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetFunctionArn() const { return m_functionArn; }
81 inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
82 template <typename FunctionArnT = Aws::String>
83 void SetFunctionArn(FunctionArnT&& value) {
84 m_functionArnHasBeenSet = true;
85 m_functionArn = std::forward<FunctionArnT>(value);
86 }
87 template <typename FunctionArnT = Aws::String>
88 FunctionConfiguration& WithFunctionArn(FunctionArnT&& value) {
89 SetFunctionArn(std::forward<FunctionArnT>(value));
90 return *this;
91 }
93
95
109 inline Runtime GetRuntime() const { return m_runtime; }
110 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
111 inline void SetRuntime(Runtime value) {
112 m_runtimeHasBeenSet = true;
113 m_runtime = value;
114 }
116 SetRuntime(value);
117 return *this;
118 }
120
122
125 inline const Aws::String& GetRole() const { return m_role; }
126 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
127 template <typename RoleT = Aws::String>
128 void SetRole(RoleT&& value) {
129 m_roleHasBeenSet = true;
130 m_role = std::forward<RoleT>(value);
131 }
132 template <typename RoleT = Aws::String>
134 SetRole(std::forward<RoleT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetHandler() const { return m_handler; }
144 inline bool HandlerHasBeenSet() const { return m_handlerHasBeenSet; }
145 template <typename HandlerT = Aws::String>
146 void SetHandler(HandlerT&& value) {
147 m_handlerHasBeenSet = true;
148 m_handler = std::forward<HandlerT>(value);
149 }
150 template <typename HandlerT = Aws::String>
152 SetHandler(std::forward<HandlerT>(value));
153 return *this;
154 }
156
158
161 inline long long GetCodeSize() const { return m_codeSize; }
162 inline bool CodeSizeHasBeenSet() const { return m_codeSizeHasBeenSet; }
163 inline void SetCodeSize(long long value) {
164 m_codeSizeHasBeenSet = true;
165 m_codeSize = value;
166 }
167 inline FunctionConfiguration& WithCodeSize(long long value) {
168 SetCodeSize(value);
169 return *this;
170 }
172
174
177 inline const Aws::String& GetDescription() const { return m_description; }
178 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
179 template <typename DescriptionT = Aws::String>
180 void SetDescription(DescriptionT&& value) {
181 m_descriptionHasBeenSet = true;
182 m_description = std::forward<DescriptionT>(value);
183 }
184 template <typename DescriptionT = Aws::String>
185 FunctionConfiguration& WithDescription(DescriptionT&& value) {
186 SetDescription(std::forward<DescriptionT>(value));
187 return *this;
188 }
190
192
196 inline int GetTimeout() const { return m_timeout; }
197 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
198 inline void SetTimeout(int value) {
199 m_timeoutHasBeenSet = true;
200 m_timeout = value;
201 }
203 SetTimeout(value);
204 return *this;
205 }
207
209
212 inline int GetMemorySize() const { return m_memorySize; }
213 inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; }
214 inline void SetMemorySize(int value) {
215 m_memorySizeHasBeenSet = true;
216 m_memorySize = value;
217 }
219 SetMemorySize(value);
220 return *this;
221 }
223
225
230 inline const Aws::String& GetLastModified() const { return m_lastModified; }
231 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
232 template <typename LastModifiedT = Aws::String>
233 void SetLastModified(LastModifiedT&& value) {
234 m_lastModifiedHasBeenSet = true;
235 m_lastModified = std::forward<LastModifiedT>(value);
236 }
237 template <typename LastModifiedT = Aws::String>
238 FunctionConfiguration& WithLastModified(LastModifiedT&& value) {
239 SetLastModified(std::forward<LastModifiedT>(value));
240 return *this;
241 }
243
245
248 inline const Aws::String& GetCodeSha256() const { return m_codeSha256; }
249 inline bool CodeSha256HasBeenSet() const { return m_codeSha256HasBeenSet; }
250 template <typename CodeSha256T = Aws::String>
251 void SetCodeSha256(CodeSha256T&& value) {
252 m_codeSha256HasBeenSet = true;
253 m_codeSha256 = std::forward<CodeSha256T>(value);
254 }
255 template <typename CodeSha256T = Aws::String>
256 FunctionConfiguration& WithCodeSha256(CodeSha256T&& value) {
257 SetCodeSha256(std::forward<CodeSha256T>(value));
258 return *this;
259 }
261
263
266 inline const Aws::String& GetVersion() const { return m_version; }
267 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
268 template <typename VersionT = Aws::String>
269 void SetVersion(VersionT&& value) {
270 m_versionHasBeenSet = true;
271 m_version = std::forward<VersionT>(value);
272 }
273 template <typename VersionT = Aws::String>
275 SetVersion(std::forward<VersionT>(value));
276 return *this;
277 }
279
281
284 inline const VpcConfigResponse& GetVpcConfig() const { return m_vpcConfig; }
285 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
286 template <typename VpcConfigT = VpcConfigResponse>
287 void SetVpcConfig(VpcConfigT&& value) {
288 m_vpcConfigHasBeenSet = true;
289 m_vpcConfig = std::forward<VpcConfigT>(value);
290 }
291 template <typename VpcConfigT = VpcConfigResponse>
293 SetVpcConfig(std::forward<VpcConfigT>(value));
294 return *this;
295 }
297
299
302 inline const DeadLetterConfig& GetDeadLetterConfig() const { return m_deadLetterConfig; }
303 inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
304 template <typename DeadLetterConfigT = DeadLetterConfig>
305 void SetDeadLetterConfig(DeadLetterConfigT&& value) {
306 m_deadLetterConfigHasBeenSet = true;
307 m_deadLetterConfig = std::forward<DeadLetterConfigT>(value);
308 }
309 template <typename DeadLetterConfigT = DeadLetterConfig>
310 FunctionConfiguration& WithDeadLetterConfig(DeadLetterConfigT&& value) {
311 SetDeadLetterConfig(std::forward<DeadLetterConfigT>(value));
312 return *this;
313 }
315
317
322 inline const EnvironmentResponse& GetEnvironment() const { return m_environment; }
323 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
324 template <typename EnvironmentT = EnvironmentResponse>
325 void SetEnvironment(EnvironmentT&& value) {
326 m_environmentHasBeenSet = true;
327 m_environment = std::forward<EnvironmentT>(value);
328 }
329 template <typename EnvironmentT = EnvironmentResponse>
330 FunctionConfiguration& WithEnvironment(EnvironmentT&& value) {
331 SetEnvironment(std::forward<EnvironmentT>(value));
332 return *this;
333 }
335
337
360 inline const Aws::String& GetKMSKeyArn() const { return m_kMSKeyArn; }
361 inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
362 template <typename KMSKeyArnT = Aws::String>
363 void SetKMSKeyArn(KMSKeyArnT&& value) {
364 m_kMSKeyArnHasBeenSet = true;
365 m_kMSKeyArn = std::forward<KMSKeyArnT>(value);
366 }
367 template <typename KMSKeyArnT = Aws::String>
369 SetKMSKeyArn(std::forward<KMSKeyArnT>(value));
370 return *this;
371 }
373
375
378 inline const TracingConfigResponse& GetTracingConfig() const { return m_tracingConfig; }
379 inline bool TracingConfigHasBeenSet() const { return m_tracingConfigHasBeenSet; }
380 template <typename TracingConfigT = TracingConfigResponse>
381 void SetTracingConfig(TracingConfigT&& value) {
382 m_tracingConfigHasBeenSet = true;
383 m_tracingConfig = std::forward<TracingConfigT>(value);
384 }
385 template <typename TracingConfigT = TracingConfigResponse>
386 FunctionConfiguration& WithTracingConfig(TracingConfigT&& value) {
387 SetTracingConfig(std::forward<TracingConfigT>(value));
388 return *this;
389 }
391
393
396 inline const Aws::String& GetMasterArn() const { return m_masterArn; }
397 inline bool MasterArnHasBeenSet() const { return m_masterArnHasBeenSet; }
398 template <typename MasterArnT = Aws::String>
399 void SetMasterArn(MasterArnT&& value) {
400 m_masterArnHasBeenSet = true;
401 m_masterArn = std::forward<MasterArnT>(value);
402 }
403 template <typename MasterArnT = Aws::String>
405 SetMasterArn(std::forward<MasterArnT>(value));
406 return *this;
407 }
409
411
414 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
415 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
416 template <typename RevisionIdT = Aws::String>
417 void SetRevisionId(RevisionIdT&& value) {
418 m_revisionIdHasBeenSet = true;
419 m_revisionId = std::forward<RevisionIdT>(value);
420 }
421 template <typename RevisionIdT = Aws::String>
422 FunctionConfiguration& WithRevisionId(RevisionIdT&& value) {
423 SetRevisionId(std::forward<RevisionIdT>(value));
424 return *this;
425 }
427
429
433 inline const Aws::Vector<Layer>& GetLayers() const { return m_layers; }
434 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
435 template <typename LayersT = Aws::Vector<Layer>>
436 void SetLayers(LayersT&& value) {
437 m_layersHasBeenSet = true;
438 m_layers = std::forward<LayersT>(value);
439 }
440 template <typename LayersT = Aws::Vector<Layer>>
442 SetLayers(std::forward<LayersT>(value));
443 return *this;
444 }
445 template <typename LayersT = Layer>
447 m_layersHasBeenSet = true;
448 m_layers.emplace_back(std::forward<LayersT>(value));
449 return *this;
450 }
452
454
458 inline State GetState() const { return m_state; }
459 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
460 inline void SetState(State value) {
461 m_stateHasBeenSet = true;
462 m_state = value;
463 }
465 SetState(value);
466 return *this;
467 }
469
471
474 inline const Aws::String& GetStateReason() const { return m_stateReason; }
475 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
476 template <typename StateReasonT = Aws::String>
477 void SetStateReason(StateReasonT&& value) {
478 m_stateReasonHasBeenSet = true;
479 m_stateReason = std::forward<StateReasonT>(value);
480 }
481 template <typename StateReasonT = Aws::String>
482 FunctionConfiguration& WithStateReason(StateReasonT&& value) {
483 SetStateReason(std::forward<StateReasonT>(value));
484 return *this;
485 }
487
489
493 inline StateReasonCode GetStateReasonCode() const { return m_stateReasonCode; }
494 inline bool StateReasonCodeHasBeenSet() const { return m_stateReasonCodeHasBeenSet; }
496 m_stateReasonCodeHasBeenSet = true;
497 m_stateReasonCode = value;
498 }
500 SetStateReasonCode(value);
501 return *this;
502 }
504
506
510 inline LastUpdateStatus GetLastUpdateStatus() const { return m_lastUpdateStatus; }
511 inline bool LastUpdateStatusHasBeenSet() const { return m_lastUpdateStatusHasBeenSet; }
513 m_lastUpdateStatusHasBeenSet = true;
514 m_lastUpdateStatus = value;
515 }
517 SetLastUpdateStatus(value);
518 return *this;
519 }
521
523
526 inline const Aws::String& GetLastUpdateStatusReason() const { return m_lastUpdateStatusReason; }
527 inline bool LastUpdateStatusReasonHasBeenSet() const { return m_lastUpdateStatusReasonHasBeenSet; }
528 template <typename LastUpdateStatusReasonT = Aws::String>
529 void SetLastUpdateStatusReason(LastUpdateStatusReasonT&& value) {
530 m_lastUpdateStatusReasonHasBeenSet = true;
531 m_lastUpdateStatusReason = std::forward<LastUpdateStatusReasonT>(value);
532 }
533 template <typename LastUpdateStatusReasonT = Aws::String>
534 FunctionConfiguration& WithLastUpdateStatusReason(LastUpdateStatusReasonT&& value) {
535 SetLastUpdateStatusReason(std::forward<LastUpdateStatusReasonT>(value));
536 return *this;
537 }
539
541
544 inline LastUpdateStatusReasonCode GetLastUpdateStatusReasonCode() const { return m_lastUpdateStatusReasonCode; }
545 inline bool LastUpdateStatusReasonCodeHasBeenSet() const { return m_lastUpdateStatusReasonCodeHasBeenSet; }
547 m_lastUpdateStatusReasonCodeHasBeenSet = true;
548 m_lastUpdateStatusReasonCode = value;
549 }
555
557
564 inline const Aws::Vector<FileSystemConfig>& GetFileSystemConfigs() const { return m_fileSystemConfigs; }
565 inline bool FileSystemConfigsHasBeenSet() const { return m_fileSystemConfigsHasBeenSet; }
566 template <typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
567 void SetFileSystemConfigs(FileSystemConfigsT&& value) {
568 m_fileSystemConfigsHasBeenSet = true;
569 m_fileSystemConfigs = std::forward<FileSystemConfigsT>(value);
570 }
571 template <typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
572 FunctionConfiguration& WithFileSystemConfigs(FileSystemConfigsT&& value) {
573 SetFileSystemConfigs(std::forward<FileSystemConfigsT>(value));
574 return *this;
575 }
576 template <typename FileSystemConfigsT = FileSystemConfig>
577 FunctionConfiguration& AddFileSystemConfigs(FileSystemConfigsT&& value) {
578 m_fileSystemConfigsHasBeenSet = true;
579 m_fileSystemConfigs.emplace_back(std::forward<FileSystemConfigsT>(value));
580 return *this;
581 }
583
585
588 inline const Aws::String& GetSigningProfileVersionArn() const { return m_signingProfileVersionArn; }
589 inline bool SigningProfileVersionArnHasBeenSet() const { return m_signingProfileVersionArnHasBeenSet; }
590 template <typename SigningProfileVersionArnT = Aws::String>
591 void SetSigningProfileVersionArn(SigningProfileVersionArnT&& value) {
592 m_signingProfileVersionArnHasBeenSet = true;
593 m_signingProfileVersionArn = std::forward<SigningProfileVersionArnT>(value);
594 }
595 template <typename SigningProfileVersionArnT = Aws::String>
596 FunctionConfiguration& WithSigningProfileVersionArn(SigningProfileVersionArnT&& value) {
597 SetSigningProfileVersionArn(std::forward<SigningProfileVersionArnT>(value));
598 return *this;
599 }
601
603
606 inline const Aws::String& GetSigningJobArn() const { return m_signingJobArn; }
607 inline bool SigningJobArnHasBeenSet() const { return m_signingJobArnHasBeenSet; }
608 template <typename SigningJobArnT = Aws::String>
609 void SetSigningJobArn(SigningJobArnT&& value) {
610 m_signingJobArnHasBeenSet = true;
611 m_signingJobArn = std::forward<SigningJobArnT>(value);
612 }
613 template <typename SigningJobArnT = Aws::String>
614 FunctionConfiguration& WithSigningJobArn(SigningJobArnT&& value) {
615 SetSigningJobArn(std::forward<SigningJobArnT>(value));
616 return *this;
617 }
619
621
625 inline PackageType GetPackageType() const { return m_packageType; }
626 inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; }
627 inline void SetPackageType(PackageType value) {
628 m_packageTypeHasBeenSet = true;
629 m_packageType = value;
630 }
632 SetPackageType(value);
633 return *this;
634 }
636
638
641 inline const ImageConfigResponse& GetImageConfigResponse() const { return m_imageConfigResponse; }
642 inline bool ImageConfigResponseHasBeenSet() const { return m_imageConfigResponseHasBeenSet; }
643 template <typename ImageConfigResponseT = ImageConfigResponse>
644 void SetImageConfigResponse(ImageConfigResponseT&& value) {
645 m_imageConfigResponseHasBeenSet = true;
646 m_imageConfigResponse = std::forward<ImageConfigResponseT>(value);
647 }
648 template <typename ImageConfigResponseT = ImageConfigResponse>
649 FunctionConfiguration& WithImageConfigResponse(ImageConfigResponseT&& value) {
650 SetImageConfigResponse(std::forward<ImageConfigResponseT>(value));
651 return *this;
652 }
654
656
661 inline const Aws::Vector<Architecture>& GetArchitectures() const { return m_architectures; }
662 inline bool ArchitecturesHasBeenSet() const { return m_architecturesHasBeenSet; }
663 template <typename ArchitecturesT = Aws::Vector<Architecture>>
664 void SetArchitectures(ArchitecturesT&& value) {
665 m_architecturesHasBeenSet = true;
666 m_architectures = std::forward<ArchitecturesT>(value);
667 }
668 template <typename ArchitecturesT = Aws::Vector<Architecture>>
669 FunctionConfiguration& WithArchitectures(ArchitecturesT&& value) {
670 SetArchitectures(std::forward<ArchitecturesT>(value));
671 return *this;
672 }
674 m_architecturesHasBeenSet = true;
675 m_architectures.push_back(value);
676 return *this;
677 }
679
681
689 inline const EphemeralStorage& GetEphemeralStorage() const { return m_ephemeralStorage; }
690 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
691 template <typename EphemeralStorageT = EphemeralStorage>
692 void SetEphemeralStorage(EphemeralStorageT&& value) {
693 m_ephemeralStorageHasBeenSet = true;
694 m_ephemeralStorage = std::forward<EphemeralStorageT>(value);
695 }
696 template <typename EphemeralStorageT = EphemeralStorage>
697 FunctionConfiguration& WithEphemeralStorage(EphemeralStorageT&& value) {
698 SetEphemeralStorage(std::forward<EphemeralStorageT>(value));
699 return *this;
700 }
702
704
711 inline const SnapStartResponse& GetSnapStart() const { return m_snapStart; }
712 inline bool SnapStartHasBeenSet() const { return m_snapStartHasBeenSet; }
713 template <typename SnapStartT = SnapStartResponse>
714 void SetSnapStart(SnapStartT&& value) {
715 m_snapStartHasBeenSet = true;
716 m_snapStart = std::forward<SnapStartT>(value);
717 }
718 template <typename SnapStartT = SnapStartResponse>
720 SetSnapStart(std::forward<SnapStartT>(value));
721 return *this;
722 }
724
726
729 inline const RuntimeVersionConfig& GetRuntimeVersionConfig() const { return m_runtimeVersionConfig; }
730 inline bool RuntimeVersionConfigHasBeenSet() const { return m_runtimeVersionConfigHasBeenSet; }
731 template <typename RuntimeVersionConfigT = RuntimeVersionConfig>
732 void SetRuntimeVersionConfig(RuntimeVersionConfigT&& value) {
733 m_runtimeVersionConfigHasBeenSet = true;
734 m_runtimeVersionConfig = std::forward<RuntimeVersionConfigT>(value);
735 }
736 template <typename RuntimeVersionConfigT = RuntimeVersionConfig>
737 FunctionConfiguration& WithRuntimeVersionConfig(RuntimeVersionConfigT&& value) {
738 SetRuntimeVersionConfig(std::forward<RuntimeVersionConfigT>(value));
739 return *this;
740 }
742
744
747 inline const LoggingConfig& GetLoggingConfig() const { return m_loggingConfig; }
748 inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; }
749 template <typename LoggingConfigT = LoggingConfig>
750 void SetLoggingConfig(LoggingConfigT&& value) {
751 m_loggingConfigHasBeenSet = true;
752 m_loggingConfig = std::forward<LoggingConfigT>(value);
753 }
754 template <typename LoggingConfigT = LoggingConfig>
755 FunctionConfiguration& WithLoggingConfig(LoggingConfigT&& value) {
756 SetLoggingConfig(std::forward<LoggingConfigT>(value));
757 return *this;
758 }
760
762
767 inline const TenancyConfig& GetTenancyConfig() const { return m_tenancyConfig; }
768 inline bool TenancyConfigHasBeenSet() const { return m_tenancyConfigHasBeenSet; }
769 template <typename TenancyConfigT = TenancyConfig>
770 void SetTenancyConfig(TenancyConfigT&& value) {
771 m_tenancyConfigHasBeenSet = true;
772 m_tenancyConfig = std::forward<TenancyConfigT>(value);
773 }
774 template <typename TenancyConfigT = TenancyConfig>
775 FunctionConfiguration& WithTenancyConfig(TenancyConfigT&& value) {
776 SetTenancyConfig(std::forward<TenancyConfigT>(value));
777 return *this;
778 }
780
782
786 inline const CapacityProviderConfig& GetCapacityProviderConfig() const { return m_capacityProviderConfig; }
787 inline bool CapacityProviderConfigHasBeenSet() const { return m_capacityProviderConfigHasBeenSet; }
788 template <typename CapacityProviderConfigT = CapacityProviderConfig>
789 void SetCapacityProviderConfig(CapacityProviderConfigT&& value) {
790 m_capacityProviderConfigHasBeenSet = true;
791 m_capacityProviderConfig = std::forward<CapacityProviderConfigT>(value);
792 }
793 template <typename CapacityProviderConfigT = CapacityProviderConfig>
794 FunctionConfiguration& WithCapacityProviderConfig(CapacityProviderConfigT&& value) {
795 SetCapacityProviderConfig(std::forward<CapacityProviderConfigT>(value));
796 return *this;
797 }
799
801
804 inline const Aws::String& GetConfigSha256() const { return m_configSha256; }
805 inline bool ConfigSha256HasBeenSet() const { return m_configSha256HasBeenSet; }
806 template <typename ConfigSha256T = Aws::String>
807 void SetConfigSha256(ConfigSha256T&& value) {
808 m_configSha256HasBeenSet = true;
809 m_configSha256 = std::forward<ConfigSha256T>(value);
810 }
811 template <typename ConfigSha256T = Aws::String>
812 FunctionConfiguration& WithConfigSha256(ConfigSha256T&& value) {
813 SetConfigSha256(std::forward<ConfigSha256T>(value));
814 return *this;
815 }
817
819
823 inline const DurableConfig& GetDurableConfig() const { return m_durableConfig; }
824 inline bool DurableConfigHasBeenSet() const { return m_durableConfigHasBeenSet; }
825 template <typename DurableConfigT = DurableConfig>
826 void SetDurableConfig(DurableConfigT&& value) {
827 m_durableConfigHasBeenSet = true;
828 m_durableConfig = std::forward<DurableConfigT>(value);
829 }
830 template <typename DurableConfigT = DurableConfig>
831 FunctionConfiguration& WithDurableConfig(DurableConfigT&& value) {
832 SetDurableConfig(std::forward<DurableConfigT>(value));
833 return *this;
834 }
836
838
842 inline const FunctionRuntimeConfig& GetRuntimeConfig() const { return m_runtimeConfig; }
843 inline bool RuntimeConfigHasBeenSet() const { return m_runtimeConfigHasBeenSet; }
844 template <typename RuntimeConfigT = FunctionRuntimeConfig>
845 void SetRuntimeConfig(RuntimeConfigT&& value) {
846 m_runtimeConfigHasBeenSet = true;
847 m_runtimeConfig = std::forward<RuntimeConfigT>(value);
848 }
849 template <typename RuntimeConfigT = FunctionRuntimeConfig>
850 FunctionConfiguration& WithRuntimeConfig(RuntimeConfigT&& value) {
851 SetRuntimeConfig(std::forward<RuntimeConfigT>(value));
852 return *this;
853 }
855
857
860 inline const AcceleratorConfig& GetAcceleratorConfig() const { return m_acceleratorConfig; }
861 inline bool AcceleratorConfigHasBeenSet() const { return m_acceleratorConfigHasBeenSet; }
862 template <typename AcceleratorConfigT = AcceleratorConfig>
863 void SetAcceleratorConfig(AcceleratorConfigT&& value) {
864 m_acceleratorConfigHasBeenSet = true;
865 m_acceleratorConfig = std::forward<AcceleratorConfigT>(value);
866 }
867 template <typename AcceleratorConfigT = AcceleratorConfig>
868 FunctionConfiguration& WithAcceleratorConfig(AcceleratorConfigT&& value) {
869 SetAcceleratorConfig(std::forward<AcceleratorConfigT>(value));
870 return *this;
871 }
873
875
876 inline const Aws::String& GetRequestId() const { return m_requestId; }
877 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
878 template <typename RequestIdT = Aws::String>
879 void SetRequestId(RequestIdT&& value) {
880 m_requestIdHasBeenSet = true;
881 m_requestId = std::forward<RequestIdT>(value);
882 }
883 template <typename RequestIdT = Aws::String>
885 SetRequestId(std::forward<RequestIdT>(value));
886 return *this;
887 }
889 private:
890 Aws::String m_functionName;
891
892 Aws::String m_functionArn;
893
894 Runtime m_runtime{Runtime::NOT_SET};
895
896 Aws::String m_role;
897
898 Aws::String m_handler;
899
900 long long m_codeSize{0};
901
902 Aws::String m_description;
903
904 int m_timeout{0};
905
906 int m_memorySize{0};
907
908 Aws::String m_lastModified;
909
910 Aws::String m_codeSha256;
911
912 Aws::String m_version;
913
914 VpcConfigResponse m_vpcConfig;
915
916 DeadLetterConfig m_deadLetterConfig;
917
918 EnvironmentResponse m_environment;
919
920 Aws::String m_kMSKeyArn;
921
922 TracingConfigResponse m_tracingConfig;
923
924 Aws::String m_masterArn;
925
926 Aws::String m_revisionId;
927
928 Aws::Vector<Layer> m_layers;
929
930 State m_state{State::NOT_SET};
931
932 Aws::String m_stateReason;
933
934 StateReasonCode m_stateReasonCode{StateReasonCode::NOT_SET};
935
937
938 Aws::String m_lastUpdateStatusReason;
939
941
942 Aws::Vector<FileSystemConfig> m_fileSystemConfigs;
943
944 Aws::String m_signingProfileVersionArn;
945
946 Aws::String m_signingJobArn;
947
948 PackageType m_packageType{PackageType::NOT_SET};
949
950 ImageConfigResponse m_imageConfigResponse;
951
952 Aws::Vector<Architecture> m_architectures;
953
954 EphemeralStorage m_ephemeralStorage;
955
956 SnapStartResponse m_snapStart;
957
958 RuntimeVersionConfig m_runtimeVersionConfig;
959
960 LoggingConfig m_loggingConfig;
961
962 TenancyConfig m_tenancyConfig;
963
964 CapacityProviderConfig m_capacityProviderConfig;
965
966 Aws::String m_configSha256;
967
968 DurableConfig m_durableConfig;
969
970 FunctionRuntimeConfig m_runtimeConfig;
971
972 AcceleratorConfig m_acceleratorConfig;
973
974 Aws::String m_requestId;
975 bool m_functionNameHasBeenSet = false;
976 bool m_functionArnHasBeenSet = false;
977 bool m_runtimeHasBeenSet = false;
978 bool m_roleHasBeenSet = false;
979 bool m_handlerHasBeenSet = false;
980 bool m_codeSizeHasBeenSet = false;
981 bool m_descriptionHasBeenSet = false;
982 bool m_timeoutHasBeenSet = false;
983 bool m_memorySizeHasBeenSet = false;
984 bool m_lastModifiedHasBeenSet = false;
985 bool m_codeSha256HasBeenSet = false;
986 bool m_versionHasBeenSet = false;
987 bool m_vpcConfigHasBeenSet = false;
988 bool m_deadLetterConfigHasBeenSet = false;
989 bool m_environmentHasBeenSet = false;
990 bool m_kMSKeyArnHasBeenSet = false;
991 bool m_tracingConfigHasBeenSet = false;
992 bool m_masterArnHasBeenSet = false;
993 bool m_revisionIdHasBeenSet = false;
994 bool m_layersHasBeenSet = false;
995 bool m_stateHasBeenSet = false;
996 bool m_stateReasonHasBeenSet = false;
997 bool m_stateReasonCodeHasBeenSet = false;
998 bool m_lastUpdateStatusHasBeenSet = false;
999 bool m_lastUpdateStatusReasonHasBeenSet = false;
1000 bool m_lastUpdateStatusReasonCodeHasBeenSet = false;
1001 bool m_fileSystemConfigsHasBeenSet = false;
1002 bool m_signingProfileVersionArnHasBeenSet = false;
1003 bool m_signingJobArnHasBeenSet = false;
1004 bool m_packageTypeHasBeenSet = false;
1005 bool m_imageConfigResponseHasBeenSet = false;
1006 bool m_architecturesHasBeenSet = false;
1007 bool m_ephemeralStorageHasBeenSet = false;
1008 bool m_snapStartHasBeenSet = false;
1009 bool m_runtimeVersionConfigHasBeenSet = false;
1010 bool m_loggingConfigHasBeenSet = false;
1011 bool m_tenancyConfigHasBeenSet = false;
1012 bool m_capacityProviderConfigHasBeenSet = false;
1013 bool m_configSha256HasBeenSet = false;
1014 bool m_durableConfigHasBeenSet = false;
1015 bool m_runtimeConfigHasBeenSet = false;
1016 bool m_acceleratorConfigHasBeenSet = false;
1017 bool m_requestIdHasBeenSet = false;
1018};
1019
1020} // namespace Model
1021} // namespace Lambda
1022} // namespace Aws
FunctionConfiguration & WithStateReasonCode(StateReasonCode value)
AWS_LAMBDA_API FunctionConfiguration()=default
void SetSigningProfileVersionArn(SigningProfileVersionArnT &&value)
void SetLastUpdateStatusReason(LastUpdateStatusReasonT &&value)
FunctionConfiguration & WithHandler(HandlerT &&value)
FunctionConfiguration & WithDeadLetterConfig(DeadLetterConfigT &&value)
FunctionConfiguration & WithLayers(LayersT &&value)
FunctionConfiguration & WithEphemeralStorage(EphemeralStorageT &&value)
FunctionConfiguration & WithCapacityProviderConfig(CapacityProviderConfigT &&value)
const ImageConfigResponse & GetImageConfigResponse() const
FunctionConfiguration & WithTenancyConfig(TenancyConfigT &&value)
FunctionConfiguration & AddArchitectures(Architecture value)
AWS_LAMBDA_API FunctionConfiguration(Aws::Utils::Json::JsonView jsonValue)
const RuntimeVersionConfig & GetRuntimeVersionConfig() const
FunctionConfiguration & WithRuntime(Runtime value)
void SetCapacityProviderConfig(CapacityProviderConfigT &&value)
FunctionConfiguration & WithImageConfigResponse(ImageConfigResponseT &&value)
FunctionConfiguration & WithLastUpdateStatus(LastUpdateStatus value)
void SetImageConfigResponse(ImageConfigResponseT &&value)
FunctionConfiguration & WithKMSKeyArn(KMSKeyArnT &&value)
void SetLastUpdateStatusReasonCode(LastUpdateStatusReasonCode value)
const EnvironmentResponse & GetEnvironment() const
FunctionConfiguration & WithRuntimeConfig(RuntimeConfigT &&value)
FunctionConfiguration & WithMemorySize(int value)
void SetFileSystemConfigs(FileSystemConfigsT &&value)
void SetEphemeralStorage(EphemeralStorageT &&value)
FunctionConfiguration & WithCodeSize(long long value)
const Aws::String & GetLastUpdateStatusReason() const
FunctionConfiguration & WithRole(RoleT &&value)
FunctionConfiguration & WithFileSystemConfigs(FileSystemConfigsT &&value)
FunctionConfiguration & WithCodeSha256(CodeSha256T &&value)
const FunctionRuntimeConfig & GetRuntimeConfig() const
void SetDeadLetterConfig(DeadLetterConfigT &&value)
FunctionConfiguration & WithDurableConfig(DurableConfigT &&value)
const Aws::String & GetSigningProfileVersionArn() const
const DeadLetterConfig & GetDeadLetterConfig() const
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionConfiguration & WithTracingConfig(TracingConfigT &&value)
LastUpdateStatusReasonCode GetLastUpdateStatusReasonCode() const
FunctionConfiguration & WithLoggingConfig(LoggingConfigT &&value)
const AcceleratorConfig & GetAcceleratorConfig() const
FunctionConfiguration & WithMasterArn(MasterArnT &&value)
FunctionConfiguration & WithAcceleratorConfig(AcceleratorConfigT &&value)
FunctionConfiguration & WithTimeout(int value)
FunctionConfiguration & WithSigningJobArn(SigningJobArnT &&value)
const SnapStartResponse & GetSnapStart() const
FunctionConfiguration & WithRuntimeVersionConfig(RuntimeVersionConfigT &&value)
FunctionConfiguration & WithArchitectures(ArchitecturesT &&value)
const TracingConfigResponse & GetTracingConfig() const
FunctionConfiguration & WithEnvironment(EnvironmentT &&value)
FunctionConfiguration & WithSigningProfileVersionArn(SigningProfileVersionArnT &&value)
FunctionConfiguration & WithState(State value)
FunctionConfiguration & WithLastUpdateStatusReason(LastUpdateStatusReasonT &&value)
const CapacityProviderConfig & GetCapacityProviderConfig() const
const Aws::Vector< FileSystemConfig > & GetFileSystemConfigs() const
FunctionConfiguration & WithLastUpdateStatusReasonCode(LastUpdateStatusReasonCode value)
const VpcConfigResponse & GetVpcConfig() const
FunctionConfiguration & WithPackageType(PackageType value)
const Aws::Vector< Architecture > & GetArchitectures() const
FunctionConfiguration & AddFileSystemConfigs(FileSystemConfigsT &&value)
FunctionConfiguration & WithDescription(DescriptionT &&value)
FunctionConfiguration & WithRequestId(RequestIdT &&value)
const Aws::Vector< Layer > & GetLayers() const
FunctionConfiguration & WithFunctionName(FunctionNameT &&value)
void SetAcceleratorConfig(AcceleratorConfigT &&value)
FunctionConfiguration & WithFunctionArn(FunctionArnT &&value)
FunctionConfiguration & WithConfigSha256(ConfigSha256T &&value)
FunctionConfiguration & WithVpcConfig(VpcConfigT &&value)
FunctionConfiguration & WithLastModified(LastModifiedT &&value)
FunctionConfiguration & WithStateReason(StateReasonT &&value)
FunctionConfiguration & WithRevisionId(RevisionIdT &&value)
AWS_LAMBDA_API FunctionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
FunctionConfiguration & WithSnapStart(SnapStartT &&value)
FunctionConfiguration & AddLayers(LayersT &&value)
void SetRuntimeVersionConfig(RuntimeVersionConfigT &&value)
FunctionConfiguration & WithVersion(VersionT &&value)
const EphemeralStorage & GetEphemeralStorage() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue