AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/Architecture.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/EnvironmentResponse.h>
15#include <aws/lambda/model/EphemeralStorage.h>
16#include <aws/lambda/model/FileSystemConfig.h>
17#include <aws/lambda/model/ImageConfigResponse.h>
18#include <aws/lambda/model/LastUpdateStatus.h>
19#include <aws/lambda/model/LastUpdateStatusReasonCode.h>
20#include <aws/lambda/model/Layer.h>
21#include <aws/lambda/model/LoggingConfig.h>
22#include <aws/lambda/model/PackageType.h>
23#include <aws/lambda/model/Runtime.h>
24#include <aws/lambda/model/RuntimeVersionConfig.h>
25#include <aws/lambda/model/SnapStartResponse.h>
26#include <aws/lambda/model/State.h>
27#include <aws/lambda/model/StateReasonCode.h>
28#include <aws/lambda/model/TenancyConfig.h>
29#include <aws/lambda/model/TracingConfigResponse.h>
30#include <aws/lambda/model/VpcConfigResponse.h>
31
32#include <utility>
33
34namespace Aws {
35namespace Utils {
36namespace Json {
37class JsonValue;
38class JsonView;
39} // namespace Json
40} // namespace Utils
41namespace Lambda {
42namespace Model {
43
50 public:
51 AWS_LAMBDA_API FunctionConfiguration() = default;
54 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
55
57
60 inline const Aws::String& GetFunctionName() const { return m_functionName; }
61 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
62 template <typename FunctionNameT = Aws::String>
63 void SetFunctionName(FunctionNameT&& value) {
64 m_functionNameHasBeenSet = true;
65 m_functionName = std::forward<FunctionNameT>(value);
66 }
67 template <typename FunctionNameT = Aws::String>
68 FunctionConfiguration& WithFunctionName(FunctionNameT&& value) {
69 SetFunctionName(std::forward<FunctionNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetFunctionArn() const { return m_functionArn; }
79 inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
80 template <typename FunctionArnT = Aws::String>
81 void SetFunctionArn(FunctionArnT&& value) {
82 m_functionArnHasBeenSet = true;
83 m_functionArn = std::forward<FunctionArnT>(value);
84 }
85 template <typename FunctionArnT = Aws::String>
86 FunctionConfiguration& WithFunctionArn(FunctionArnT&& value) {
87 SetFunctionArn(std::forward<FunctionArnT>(value));
88 return *this;
89 }
91
93
107 inline Runtime GetRuntime() const { return m_runtime; }
108 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
109 inline void SetRuntime(Runtime value) {
110 m_runtimeHasBeenSet = true;
111 m_runtime = value;
112 }
114 SetRuntime(value);
115 return *this;
116 }
118
120
123 inline const Aws::String& GetRole() const { return m_role; }
124 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
125 template <typename RoleT = Aws::String>
126 void SetRole(RoleT&& value) {
127 m_roleHasBeenSet = true;
128 m_role = std::forward<RoleT>(value);
129 }
130 template <typename RoleT = Aws::String>
132 SetRole(std::forward<RoleT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetHandler() const { return m_handler; }
142 inline bool HandlerHasBeenSet() const { return m_handlerHasBeenSet; }
143 template <typename HandlerT = Aws::String>
144 void SetHandler(HandlerT&& value) {
145 m_handlerHasBeenSet = true;
146 m_handler = std::forward<HandlerT>(value);
147 }
148 template <typename HandlerT = Aws::String>
150 SetHandler(std::forward<HandlerT>(value));
151 return *this;
152 }
154
156
159 inline long long GetCodeSize() const { return m_codeSize; }
160 inline bool CodeSizeHasBeenSet() const { return m_codeSizeHasBeenSet; }
161 inline void SetCodeSize(long long value) {
162 m_codeSizeHasBeenSet = true;
163 m_codeSize = value;
164 }
165 inline FunctionConfiguration& WithCodeSize(long long value) {
166 SetCodeSize(value);
167 return *this;
168 }
170
172
175 inline const Aws::String& GetDescription() const { return m_description; }
176 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
177 template <typename DescriptionT = Aws::String>
178 void SetDescription(DescriptionT&& value) {
179 m_descriptionHasBeenSet = true;
180 m_description = std::forward<DescriptionT>(value);
181 }
182 template <typename DescriptionT = Aws::String>
183 FunctionConfiguration& WithDescription(DescriptionT&& value) {
184 SetDescription(std::forward<DescriptionT>(value));
185 return *this;
186 }
188
190
194 inline int GetTimeout() const { return m_timeout; }
195 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
196 inline void SetTimeout(int value) {
197 m_timeoutHasBeenSet = true;
198 m_timeout = value;
199 }
201 SetTimeout(value);
202 return *this;
203 }
205
207
210 inline int GetMemorySize() const { return m_memorySize; }
211 inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; }
212 inline void SetMemorySize(int value) {
213 m_memorySizeHasBeenSet = true;
214 m_memorySize = value;
215 }
217 SetMemorySize(value);
218 return *this;
219 }
221
223
228 inline const Aws::String& GetLastModified() const { return m_lastModified; }
229 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
230 template <typename LastModifiedT = Aws::String>
231 void SetLastModified(LastModifiedT&& value) {
232 m_lastModifiedHasBeenSet = true;
233 m_lastModified = std::forward<LastModifiedT>(value);
234 }
235 template <typename LastModifiedT = Aws::String>
236 FunctionConfiguration& WithLastModified(LastModifiedT&& value) {
237 SetLastModified(std::forward<LastModifiedT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::String& GetCodeSha256() const { return m_codeSha256; }
247 inline bool CodeSha256HasBeenSet() const { return m_codeSha256HasBeenSet; }
248 template <typename CodeSha256T = Aws::String>
249 void SetCodeSha256(CodeSha256T&& value) {
250 m_codeSha256HasBeenSet = true;
251 m_codeSha256 = std::forward<CodeSha256T>(value);
252 }
253 template <typename CodeSha256T = Aws::String>
254 FunctionConfiguration& WithCodeSha256(CodeSha256T&& value) {
255 SetCodeSha256(std::forward<CodeSha256T>(value));
256 return *this;
257 }
259
261
264 inline const Aws::String& GetVersion() const { return m_version; }
265 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
266 template <typename VersionT = Aws::String>
267 void SetVersion(VersionT&& value) {
268 m_versionHasBeenSet = true;
269 m_version = std::forward<VersionT>(value);
270 }
271 template <typename VersionT = Aws::String>
273 SetVersion(std::forward<VersionT>(value));
274 return *this;
275 }
277
279
282 inline const VpcConfigResponse& GetVpcConfig() const { return m_vpcConfig; }
283 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
284 template <typename VpcConfigT = VpcConfigResponse>
285 void SetVpcConfig(VpcConfigT&& value) {
286 m_vpcConfigHasBeenSet = true;
287 m_vpcConfig = std::forward<VpcConfigT>(value);
288 }
289 template <typename VpcConfigT = VpcConfigResponse>
291 SetVpcConfig(std::forward<VpcConfigT>(value));
292 return *this;
293 }
295
297
300 inline const DeadLetterConfig& GetDeadLetterConfig() const { return m_deadLetterConfig; }
301 inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
302 template <typename DeadLetterConfigT = DeadLetterConfig>
303 void SetDeadLetterConfig(DeadLetterConfigT&& value) {
304 m_deadLetterConfigHasBeenSet = true;
305 m_deadLetterConfig = std::forward<DeadLetterConfigT>(value);
306 }
307 template <typename DeadLetterConfigT = DeadLetterConfig>
308 FunctionConfiguration& WithDeadLetterConfig(DeadLetterConfigT&& value) {
309 SetDeadLetterConfig(std::forward<DeadLetterConfigT>(value));
310 return *this;
311 }
313
315
320 inline const EnvironmentResponse& GetEnvironment() const { return m_environment; }
321 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
322 template <typename EnvironmentT = EnvironmentResponse>
323 void SetEnvironment(EnvironmentT&& value) {
324 m_environmentHasBeenSet = true;
325 m_environment = std::forward<EnvironmentT>(value);
326 }
327 template <typename EnvironmentT = EnvironmentResponse>
328 FunctionConfiguration& WithEnvironment(EnvironmentT&& value) {
329 SetEnvironment(std::forward<EnvironmentT>(value));
330 return *this;
331 }
333
335
358 inline const Aws::String& GetKMSKeyArn() const { return m_kMSKeyArn; }
359 inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
360 template <typename KMSKeyArnT = Aws::String>
361 void SetKMSKeyArn(KMSKeyArnT&& value) {
362 m_kMSKeyArnHasBeenSet = true;
363 m_kMSKeyArn = std::forward<KMSKeyArnT>(value);
364 }
365 template <typename KMSKeyArnT = Aws::String>
367 SetKMSKeyArn(std::forward<KMSKeyArnT>(value));
368 return *this;
369 }
371
373
376 inline const TracingConfigResponse& GetTracingConfig() const { return m_tracingConfig; }
377 inline bool TracingConfigHasBeenSet() const { return m_tracingConfigHasBeenSet; }
378 template <typename TracingConfigT = TracingConfigResponse>
379 void SetTracingConfig(TracingConfigT&& value) {
380 m_tracingConfigHasBeenSet = true;
381 m_tracingConfig = std::forward<TracingConfigT>(value);
382 }
383 template <typename TracingConfigT = TracingConfigResponse>
384 FunctionConfiguration& WithTracingConfig(TracingConfigT&& value) {
385 SetTracingConfig(std::forward<TracingConfigT>(value));
386 return *this;
387 }
389
391
394 inline const Aws::String& GetMasterArn() const { return m_masterArn; }
395 inline bool MasterArnHasBeenSet() const { return m_masterArnHasBeenSet; }
396 template <typename MasterArnT = Aws::String>
397 void SetMasterArn(MasterArnT&& value) {
398 m_masterArnHasBeenSet = true;
399 m_masterArn = std::forward<MasterArnT>(value);
400 }
401 template <typename MasterArnT = Aws::String>
403 SetMasterArn(std::forward<MasterArnT>(value));
404 return *this;
405 }
407
409
412 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
413 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
414 template <typename RevisionIdT = Aws::String>
415 void SetRevisionId(RevisionIdT&& value) {
416 m_revisionIdHasBeenSet = true;
417 m_revisionId = std::forward<RevisionIdT>(value);
418 }
419 template <typename RevisionIdT = Aws::String>
420 FunctionConfiguration& WithRevisionId(RevisionIdT&& value) {
421 SetRevisionId(std::forward<RevisionIdT>(value));
422 return *this;
423 }
425
427
431 inline const Aws::Vector<Layer>& GetLayers() const { return m_layers; }
432 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
433 template <typename LayersT = Aws::Vector<Layer>>
434 void SetLayers(LayersT&& value) {
435 m_layersHasBeenSet = true;
436 m_layers = std::forward<LayersT>(value);
437 }
438 template <typename LayersT = Aws::Vector<Layer>>
440 SetLayers(std::forward<LayersT>(value));
441 return *this;
442 }
443 template <typename LayersT = Layer>
445 m_layersHasBeenSet = true;
446 m_layers.emplace_back(std::forward<LayersT>(value));
447 return *this;
448 }
450
452
456 inline State GetState() const { return m_state; }
457 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
458 inline void SetState(State value) {
459 m_stateHasBeenSet = true;
460 m_state = value;
461 }
463 SetState(value);
464 return *this;
465 }
467
469
472 inline const Aws::String& GetStateReason() const { return m_stateReason; }
473 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
474 template <typename StateReasonT = Aws::String>
475 void SetStateReason(StateReasonT&& value) {
476 m_stateReasonHasBeenSet = true;
477 m_stateReason = std::forward<StateReasonT>(value);
478 }
479 template <typename StateReasonT = Aws::String>
480 FunctionConfiguration& WithStateReason(StateReasonT&& value) {
481 SetStateReason(std::forward<StateReasonT>(value));
482 return *this;
483 }
485
487
491 inline StateReasonCode GetStateReasonCode() const { return m_stateReasonCode; }
492 inline bool StateReasonCodeHasBeenSet() const { return m_stateReasonCodeHasBeenSet; }
494 m_stateReasonCodeHasBeenSet = true;
495 m_stateReasonCode = value;
496 }
498 SetStateReasonCode(value);
499 return *this;
500 }
502
504
508 inline LastUpdateStatus GetLastUpdateStatus() const { return m_lastUpdateStatus; }
509 inline bool LastUpdateStatusHasBeenSet() const { return m_lastUpdateStatusHasBeenSet; }
511 m_lastUpdateStatusHasBeenSet = true;
512 m_lastUpdateStatus = value;
513 }
515 SetLastUpdateStatus(value);
516 return *this;
517 }
519
521
524 inline const Aws::String& GetLastUpdateStatusReason() const { return m_lastUpdateStatusReason; }
525 inline bool LastUpdateStatusReasonHasBeenSet() const { return m_lastUpdateStatusReasonHasBeenSet; }
526 template <typename LastUpdateStatusReasonT = Aws::String>
527 void SetLastUpdateStatusReason(LastUpdateStatusReasonT&& value) {
528 m_lastUpdateStatusReasonHasBeenSet = true;
529 m_lastUpdateStatusReason = std::forward<LastUpdateStatusReasonT>(value);
530 }
531 template <typename LastUpdateStatusReasonT = Aws::String>
532 FunctionConfiguration& WithLastUpdateStatusReason(LastUpdateStatusReasonT&& value) {
533 SetLastUpdateStatusReason(std::forward<LastUpdateStatusReasonT>(value));
534 return *this;
535 }
537
539
542 inline LastUpdateStatusReasonCode GetLastUpdateStatusReasonCode() const { return m_lastUpdateStatusReasonCode; }
543 inline bool LastUpdateStatusReasonCodeHasBeenSet() const { return m_lastUpdateStatusReasonCodeHasBeenSet; }
545 m_lastUpdateStatusReasonCodeHasBeenSet = true;
546 m_lastUpdateStatusReasonCode = value;
547 }
550 return *this;
551 }
553
555
560 inline const Aws::Vector<FileSystemConfig>& GetFileSystemConfigs() const { return m_fileSystemConfigs; }
561 inline bool FileSystemConfigsHasBeenSet() const { return m_fileSystemConfigsHasBeenSet; }
562 template <typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
563 void SetFileSystemConfigs(FileSystemConfigsT&& value) {
564 m_fileSystemConfigsHasBeenSet = true;
565 m_fileSystemConfigs = std::forward<FileSystemConfigsT>(value);
566 }
567 template <typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
568 FunctionConfiguration& WithFileSystemConfigs(FileSystemConfigsT&& value) {
569 SetFileSystemConfigs(std::forward<FileSystemConfigsT>(value));
570 return *this;
571 }
572 template <typename FileSystemConfigsT = FileSystemConfig>
573 FunctionConfiguration& AddFileSystemConfigs(FileSystemConfigsT&& value) {
574 m_fileSystemConfigsHasBeenSet = true;
575 m_fileSystemConfigs.emplace_back(std::forward<FileSystemConfigsT>(value));
576 return *this;
577 }
579
581
585 inline PackageType GetPackageType() const { return m_packageType; }
586 inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; }
587 inline void SetPackageType(PackageType value) {
588 m_packageTypeHasBeenSet = true;
589 m_packageType = value;
590 }
592 SetPackageType(value);
593 return *this;
594 }
596
598
601 inline const ImageConfigResponse& GetImageConfigResponse() const { return m_imageConfigResponse; }
602 inline bool ImageConfigResponseHasBeenSet() const { return m_imageConfigResponseHasBeenSet; }
603 template <typename ImageConfigResponseT = ImageConfigResponse>
604 void SetImageConfigResponse(ImageConfigResponseT&& value) {
605 m_imageConfigResponseHasBeenSet = true;
606 m_imageConfigResponse = std::forward<ImageConfigResponseT>(value);
607 }
608 template <typename ImageConfigResponseT = ImageConfigResponse>
609 FunctionConfiguration& WithImageConfigResponse(ImageConfigResponseT&& value) {
610 SetImageConfigResponse(std::forward<ImageConfigResponseT>(value));
611 return *this;
612 }
614
616
619 inline const Aws::String& GetSigningProfileVersionArn() const { return m_signingProfileVersionArn; }
620 inline bool SigningProfileVersionArnHasBeenSet() const { return m_signingProfileVersionArnHasBeenSet; }
621 template <typename SigningProfileVersionArnT = Aws::String>
622 void SetSigningProfileVersionArn(SigningProfileVersionArnT&& value) {
623 m_signingProfileVersionArnHasBeenSet = true;
624 m_signingProfileVersionArn = std::forward<SigningProfileVersionArnT>(value);
625 }
626 template <typename SigningProfileVersionArnT = Aws::String>
627 FunctionConfiguration& WithSigningProfileVersionArn(SigningProfileVersionArnT&& value) {
628 SetSigningProfileVersionArn(std::forward<SigningProfileVersionArnT>(value));
629 return *this;
630 }
632
634
637 inline const Aws::String& GetSigningJobArn() const { return m_signingJobArn; }
638 inline bool SigningJobArnHasBeenSet() const { return m_signingJobArnHasBeenSet; }
639 template <typename SigningJobArnT = Aws::String>
640 void SetSigningJobArn(SigningJobArnT&& value) {
641 m_signingJobArnHasBeenSet = true;
642 m_signingJobArn = std::forward<SigningJobArnT>(value);
643 }
644 template <typename SigningJobArnT = Aws::String>
645 FunctionConfiguration& WithSigningJobArn(SigningJobArnT&& value) {
646 SetSigningJobArn(std::forward<SigningJobArnT>(value));
647 return *this;
648 }
650
652
657 inline const Aws::Vector<Architecture>& GetArchitectures() const { return m_architectures; }
658 inline bool ArchitecturesHasBeenSet() const { return m_architecturesHasBeenSet; }
659 template <typename ArchitecturesT = Aws::Vector<Architecture>>
660 void SetArchitectures(ArchitecturesT&& value) {
661 m_architecturesHasBeenSet = true;
662 m_architectures = std::forward<ArchitecturesT>(value);
663 }
664 template <typename ArchitecturesT = Aws::Vector<Architecture>>
665 FunctionConfiguration& WithArchitectures(ArchitecturesT&& value) {
666 SetArchitectures(std::forward<ArchitecturesT>(value));
667 return *this;
668 }
670 m_architecturesHasBeenSet = true;
671 m_architectures.push_back(value);
672 return *this;
673 }
675
677
684 inline const EphemeralStorage& GetEphemeralStorage() const { return m_ephemeralStorage; }
685 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
686 template <typename EphemeralStorageT = EphemeralStorage>
687 void SetEphemeralStorage(EphemeralStorageT&& value) {
688 m_ephemeralStorageHasBeenSet = true;
689 m_ephemeralStorage = std::forward<EphemeralStorageT>(value);
690 }
691 template <typename EphemeralStorageT = EphemeralStorage>
692 FunctionConfiguration& WithEphemeralStorage(EphemeralStorageT&& value) {
693 SetEphemeralStorage(std::forward<EphemeralStorageT>(value));
694 return *this;
695 }
697
699
706 inline const SnapStartResponse& GetSnapStart() const { return m_snapStart; }
707 inline bool SnapStartHasBeenSet() const { return m_snapStartHasBeenSet; }
708 template <typename SnapStartT = SnapStartResponse>
709 void SetSnapStart(SnapStartT&& value) {
710 m_snapStartHasBeenSet = true;
711 m_snapStart = std::forward<SnapStartT>(value);
712 }
713 template <typename SnapStartT = SnapStartResponse>
715 SetSnapStart(std::forward<SnapStartT>(value));
716 return *this;
717 }
719
721
724 inline const RuntimeVersionConfig& GetRuntimeVersionConfig() const { return m_runtimeVersionConfig; }
725 inline bool RuntimeVersionConfigHasBeenSet() const { return m_runtimeVersionConfigHasBeenSet; }
726 template <typename RuntimeVersionConfigT = RuntimeVersionConfig>
727 void SetRuntimeVersionConfig(RuntimeVersionConfigT&& value) {
728 m_runtimeVersionConfigHasBeenSet = true;
729 m_runtimeVersionConfig = std::forward<RuntimeVersionConfigT>(value);
730 }
731 template <typename RuntimeVersionConfigT = RuntimeVersionConfig>
732 FunctionConfiguration& WithRuntimeVersionConfig(RuntimeVersionConfigT&& value) {
733 SetRuntimeVersionConfig(std::forward<RuntimeVersionConfigT>(value));
734 return *this;
735 }
737
739
742 inline const LoggingConfig& GetLoggingConfig() const { return m_loggingConfig; }
743 inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; }
744 template <typename LoggingConfigT = LoggingConfig>
745 void SetLoggingConfig(LoggingConfigT&& value) {
746 m_loggingConfigHasBeenSet = true;
747 m_loggingConfig = std::forward<LoggingConfigT>(value);
748 }
749 template <typename LoggingConfigT = LoggingConfig>
750 FunctionConfiguration& WithLoggingConfig(LoggingConfigT&& value) {
751 SetLoggingConfig(std::forward<LoggingConfigT>(value));
752 return *this;
753 }
755
757
761 inline const CapacityProviderConfig& GetCapacityProviderConfig() const { return m_capacityProviderConfig; }
762 inline bool CapacityProviderConfigHasBeenSet() const { return m_capacityProviderConfigHasBeenSet; }
763 template <typename CapacityProviderConfigT = CapacityProviderConfig>
764 void SetCapacityProviderConfig(CapacityProviderConfigT&& value) {
765 m_capacityProviderConfigHasBeenSet = true;
766 m_capacityProviderConfig = std::forward<CapacityProviderConfigT>(value);
767 }
768 template <typename CapacityProviderConfigT = CapacityProviderConfig>
769 FunctionConfiguration& WithCapacityProviderConfig(CapacityProviderConfigT&& value) {
770 SetCapacityProviderConfig(std::forward<CapacityProviderConfigT>(value));
771 return *this;
772 }
774
776
779 inline const Aws::String& GetConfigSha256() const { return m_configSha256; }
780 inline bool ConfigSha256HasBeenSet() const { return m_configSha256HasBeenSet; }
781 template <typename ConfigSha256T = Aws::String>
782 void SetConfigSha256(ConfigSha256T&& value) {
783 m_configSha256HasBeenSet = true;
784 m_configSha256 = std::forward<ConfigSha256T>(value);
785 }
786 template <typename ConfigSha256T = Aws::String>
787 FunctionConfiguration& WithConfigSha256(ConfigSha256T&& value) {
788 SetConfigSha256(std::forward<ConfigSha256T>(value));
789 return *this;
790 }
792
794
798 inline const DurableConfig& GetDurableConfig() const { return m_durableConfig; }
799 inline bool DurableConfigHasBeenSet() const { return m_durableConfigHasBeenSet; }
800 template <typename DurableConfigT = DurableConfig>
801 void SetDurableConfig(DurableConfigT&& value) {
802 m_durableConfigHasBeenSet = true;
803 m_durableConfig = std::forward<DurableConfigT>(value);
804 }
805 template <typename DurableConfigT = DurableConfig>
806 FunctionConfiguration& WithDurableConfig(DurableConfigT&& value) {
807 SetDurableConfig(std::forward<DurableConfigT>(value));
808 return *this;
809 }
811
813
818 inline const TenancyConfig& GetTenancyConfig() const { return m_tenancyConfig; }
819 inline bool TenancyConfigHasBeenSet() const { return m_tenancyConfigHasBeenSet; }
820 template <typename TenancyConfigT = TenancyConfig>
821 void SetTenancyConfig(TenancyConfigT&& value) {
822 m_tenancyConfigHasBeenSet = true;
823 m_tenancyConfig = std::forward<TenancyConfigT>(value);
824 }
825 template <typename TenancyConfigT = TenancyConfig>
826 FunctionConfiguration& WithTenancyConfig(TenancyConfigT&& value) {
827 SetTenancyConfig(std::forward<TenancyConfigT>(value));
828 return *this;
829 }
831
833
834 inline const Aws::String& GetRequestId() const { return m_requestId; }
835 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
836 template <typename RequestIdT = Aws::String>
837 void SetRequestId(RequestIdT&& value) {
838 m_requestIdHasBeenSet = true;
839 m_requestId = std::forward<RequestIdT>(value);
840 }
841 template <typename RequestIdT = Aws::String>
843 SetRequestId(std::forward<RequestIdT>(value));
844 return *this;
845 }
847 private:
848 Aws::String m_functionName;
849
850 Aws::String m_functionArn;
851
852 Runtime m_runtime{Runtime::NOT_SET};
853
854 Aws::String m_role;
855
856 Aws::String m_handler;
857
858 long long m_codeSize{0};
859
860 Aws::String m_description;
861
862 int m_timeout{0};
863
864 int m_memorySize{0};
865
866 Aws::String m_lastModified;
867
868 Aws::String m_codeSha256;
869
870 Aws::String m_version;
871
872 VpcConfigResponse m_vpcConfig;
873
874 DeadLetterConfig m_deadLetterConfig;
875
876 EnvironmentResponse m_environment;
877
878 Aws::String m_kMSKeyArn;
879
880 TracingConfigResponse m_tracingConfig;
881
882 Aws::String m_masterArn;
883
884 Aws::String m_revisionId;
885
886 Aws::Vector<Layer> m_layers;
887
888 State m_state{State::NOT_SET};
889
890 Aws::String m_stateReason;
891
892 StateReasonCode m_stateReasonCode{StateReasonCode::NOT_SET};
893
895
896 Aws::String m_lastUpdateStatusReason;
897
899
900 Aws::Vector<FileSystemConfig> m_fileSystemConfigs;
901
902 PackageType m_packageType{PackageType::NOT_SET};
903
904 ImageConfigResponse m_imageConfigResponse;
905
906 Aws::String m_signingProfileVersionArn;
907
908 Aws::String m_signingJobArn;
909
910 Aws::Vector<Architecture> m_architectures;
911
912 EphemeralStorage m_ephemeralStorage;
913
914 SnapStartResponse m_snapStart;
915
916 RuntimeVersionConfig m_runtimeVersionConfig;
917
918 LoggingConfig m_loggingConfig;
919
920 CapacityProviderConfig m_capacityProviderConfig;
921
922 Aws::String m_configSha256;
923
924 DurableConfig m_durableConfig;
925
926 TenancyConfig m_tenancyConfig;
927
928 Aws::String m_requestId;
929 bool m_functionNameHasBeenSet = false;
930 bool m_functionArnHasBeenSet = false;
931 bool m_runtimeHasBeenSet = false;
932 bool m_roleHasBeenSet = false;
933 bool m_handlerHasBeenSet = false;
934 bool m_codeSizeHasBeenSet = false;
935 bool m_descriptionHasBeenSet = false;
936 bool m_timeoutHasBeenSet = false;
937 bool m_memorySizeHasBeenSet = false;
938 bool m_lastModifiedHasBeenSet = false;
939 bool m_codeSha256HasBeenSet = false;
940 bool m_versionHasBeenSet = false;
941 bool m_vpcConfigHasBeenSet = false;
942 bool m_deadLetterConfigHasBeenSet = false;
943 bool m_environmentHasBeenSet = false;
944 bool m_kMSKeyArnHasBeenSet = false;
945 bool m_tracingConfigHasBeenSet = false;
946 bool m_masterArnHasBeenSet = false;
947 bool m_revisionIdHasBeenSet = false;
948 bool m_layersHasBeenSet = false;
949 bool m_stateHasBeenSet = false;
950 bool m_stateReasonHasBeenSet = false;
951 bool m_stateReasonCodeHasBeenSet = false;
952 bool m_lastUpdateStatusHasBeenSet = false;
953 bool m_lastUpdateStatusReasonHasBeenSet = false;
954 bool m_lastUpdateStatusReasonCodeHasBeenSet = false;
955 bool m_fileSystemConfigsHasBeenSet = false;
956 bool m_packageTypeHasBeenSet = false;
957 bool m_imageConfigResponseHasBeenSet = false;
958 bool m_signingProfileVersionArnHasBeenSet = false;
959 bool m_signingJobArnHasBeenSet = false;
960 bool m_architecturesHasBeenSet = false;
961 bool m_ephemeralStorageHasBeenSet = false;
962 bool m_snapStartHasBeenSet = false;
963 bool m_runtimeVersionConfigHasBeenSet = false;
964 bool m_loggingConfigHasBeenSet = false;
965 bool m_capacityProviderConfigHasBeenSet = false;
966 bool m_configSha256HasBeenSet = false;
967 bool m_durableConfigHasBeenSet = false;
968 bool m_tenancyConfigHasBeenSet = false;
969 bool m_requestIdHasBeenSet = false;
970};
971
972} // namespace Model
973} // namespace Lambda
974} // 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 & 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)
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)
FunctionConfiguration & WithMasterArn(MasterArnT &&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)
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