AWS SDK for C++

AWS SDK for C++ Version 1.11.786

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
562 inline const Aws::Vector<FileSystemConfig>& GetFileSystemConfigs() const { return m_fileSystemConfigs; }
563 inline bool FileSystemConfigsHasBeenSet() const { return m_fileSystemConfigsHasBeenSet; }
564 template <typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
565 void SetFileSystemConfigs(FileSystemConfigsT&& value) {
566 m_fileSystemConfigsHasBeenSet = true;
567 m_fileSystemConfigs = std::forward<FileSystemConfigsT>(value);
568 }
569 template <typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
570 FunctionConfiguration& WithFileSystemConfigs(FileSystemConfigsT&& value) {
571 SetFileSystemConfigs(std::forward<FileSystemConfigsT>(value));
572 return *this;
573 }
574 template <typename FileSystemConfigsT = FileSystemConfig>
575 FunctionConfiguration& AddFileSystemConfigs(FileSystemConfigsT&& value) {
576 m_fileSystemConfigsHasBeenSet = true;
577 m_fileSystemConfigs.emplace_back(std::forward<FileSystemConfigsT>(value));
578 return *this;
579 }
581
583
587 inline PackageType GetPackageType() const { return m_packageType; }
588 inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; }
589 inline void SetPackageType(PackageType value) {
590 m_packageTypeHasBeenSet = true;
591 m_packageType = value;
592 }
594 SetPackageType(value);
595 return *this;
596 }
598
600
603 inline const ImageConfigResponse& GetImageConfigResponse() const { return m_imageConfigResponse; }
604 inline bool ImageConfigResponseHasBeenSet() const { return m_imageConfigResponseHasBeenSet; }
605 template <typename ImageConfigResponseT = ImageConfigResponse>
606 void SetImageConfigResponse(ImageConfigResponseT&& value) {
607 m_imageConfigResponseHasBeenSet = true;
608 m_imageConfigResponse = std::forward<ImageConfigResponseT>(value);
609 }
610 template <typename ImageConfigResponseT = ImageConfigResponse>
611 FunctionConfiguration& WithImageConfigResponse(ImageConfigResponseT&& value) {
612 SetImageConfigResponse(std::forward<ImageConfigResponseT>(value));
613 return *this;
614 }
616
618
621 inline const Aws::String& GetSigningProfileVersionArn() const { return m_signingProfileVersionArn; }
622 inline bool SigningProfileVersionArnHasBeenSet() const { return m_signingProfileVersionArnHasBeenSet; }
623 template <typename SigningProfileVersionArnT = Aws::String>
624 void SetSigningProfileVersionArn(SigningProfileVersionArnT&& value) {
625 m_signingProfileVersionArnHasBeenSet = true;
626 m_signingProfileVersionArn = std::forward<SigningProfileVersionArnT>(value);
627 }
628 template <typename SigningProfileVersionArnT = Aws::String>
629 FunctionConfiguration& WithSigningProfileVersionArn(SigningProfileVersionArnT&& value) {
630 SetSigningProfileVersionArn(std::forward<SigningProfileVersionArnT>(value));
631 return *this;
632 }
634
636
639 inline const Aws::String& GetSigningJobArn() const { return m_signingJobArn; }
640 inline bool SigningJobArnHasBeenSet() const { return m_signingJobArnHasBeenSet; }
641 template <typename SigningJobArnT = Aws::String>
642 void SetSigningJobArn(SigningJobArnT&& value) {
643 m_signingJobArnHasBeenSet = true;
644 m_signingJobArn = std::forward<SigningJobArnT>(value);
645 }
646 template <typename SigningJobArnT = Aws::String>
647 FunctionConfiguration& WithSigningJobArn(SigningJobArnT&& value) {
648 SetSigningJobArn(std::forward<SigningJobArnT>(value));
649 return *this;
650 }
652
654
659 inline const Aws::Vector<Architecture>& GetArchitectures() const { return m_architectures; }
660 inline bool ArchitecturesHasBeenSet() const { return m_architecturesHasBeenSet; }
661 template <typename ArchitecturesT = Aws::Vector<Architecture>>
662 void SetArchitectures(ArchitecturesT&& value) {
663 m_architecturesHasBeenSet = true;
664 m_architectures = std::forward<ArchitecturesT>(value);
665 }
666 template <typename ArchitecturesT = Aws::Vector<Architecture>>
667 FunctionConfiguration& WithArchitectures(ArchitecturesT&& value) {
668 SetArchitectures(std::forward<ArchitecturesT>(value));
669 return *this;
670 }
672 m_architecturesHasBeenSet = true;
673 m_architectures.push_back(value);
674 return *this;
675 }
677
679
686 inline const EphemeralStorage& GetEphemeralStorage() const { return m_ephemeralStorage; }
687 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
688 template <typename EphemeralStorageT = EphemeralStorage>
689 void SetEphemeralStorage(EphemeralStorageT&& value) {
690 m_ephemeralStorageHasBeenSet = true;
691 m_ephemeralStorage = std::forward<EphemeralStorageT>(value);
692 }
693 template <typename EphemeralStorageT = EphemeralStorage>
694 FunctionConfiguration& WithEphemeralStorage(EphemeralStorageT&& value) {
695 SetEphemeralStorage(std::forward<EphemeralStorageT>(value));
696 return *this;
697 }
699
701
708 inline const SnapStartResponse& GetSnapStart() const { return m_snapStart; }
709 inline bool SnapStartHasBeenSet() const { return m_snapStartHasBeenSet; }
710 template <typename SnapStartT = SnapStartResponse>
711 void SetSnapStart(SnapStartT&& value) {
712 m_snapStartHasBeenSet = true;
713 m_snapStart = std::forward<SnapStartT>(value);
714 }
715 template <typename SnapStartT = SnapStartResponse>
717 SetSnapStart(std::forward<SnapStartT>(value));
718 return *this;
719 }
721
723
726 inline const RuntimeVersionConfig& GetRuntimeVersionConfig() const { return m_runtimeVersionConfig; }
727 inline bool RuntimeVersionConfigHasBeenSet() const { return m_runtimeVersionConfigHasBeenSet; }
728 template <typename RuntimeVersionConfigT = RuntimeVersionConfig>
729 void SetRuntimeVersionConfig(RuntimeVersionConfigT&& value) {
730 m_runtimeVersionConfigHasBeenSet = true;
731 m_runtimeVersionConfig = std::forward<RuntimeVersionConfigT>(value);
732 }
733 template <typename RuntimeVersionConfigT = RuntimeVersionConfig>
734 FunctionConfiguration& WithRuntimeVersionConfig(RuntimeVersionConfigT&& value) {
735 SetRuntimeVersionConfig(std::forward<RuntimeVersionConfigT>(value));
736 return *this;
737 }
739
741
744 inline const LoggingConfig& GetLoggingConfig() const { return m_loggingConfig; }
745 inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; }
746 template <typename LoggingConfigT = LoggingConfig>
747 void SetLoggingConfig(LoggingConfigT&& value) {
748 m_loggingConfigHasBeenSet = true;
749 m_loggingConfig = std::forward<LoggingConfigT>(value);
750 }
751 template <typename LoggingConfigT = LoggingConfig>
752 FunctionConfiguration& WithLoggingConfig(LoggingConfigT&& value) {
753 SetLoggingConfig(std::forward<LoggingConfigT>(value));
754 return *this;
755 }
757
759
763 inline const CapacityProviderConfig& GetCapacityProviderConfig() const { return m_capacityProviderConfig; }
764 inline bool CapacityProviderConfigHasBeenSet() const { return m_capacityProviderConfigHasBeenSet; }
765 template <typename CapacityProviderConfigT = CapacityProviderConfig>
766 void SetCapacityProviderConfig(CapacityProviderConfigT&& value) {
767 m_capacityProviderConfigHasBeenSet = true;
768 m_capacityProviderConfig = std::forward<CapacityProviderConfigT>(value);
769 }
770 template <typename CapacityProviderConfigT = CapacityProviderConfig>
771 FunctionConfiguration& WithCapacityProviderConfig(CapacityProviderConfigT&& value) {
772 SetCapacityProviderConfig(std::forward<CapacityProviderConfigT>(value));
773 return *this;
774 }
776
778
781 inline const Aws::String& GetConfigSha256() const { return m_configSha256; }
782 inline bool ConfigSha256HasBeenSet() const { return m_configSha256HasBeenSet; }
783 template <typename ConfigSha256T = Aws::String>
784 void SetConfigSha256(ConfigSha256T&& value) {
785 m_configSha256HasBeenSet = true;
786 m_configSha256 = std::forward<ConfigSha256T>(value);
787 }
788 template <typename ConfigSha256T = Aws::String>
789 FunctionConfiguration& WithConfigSha256(ConfigSha256T&& value) {
790 SetConfigSha256(std::forward<ConfigSha256T>(value));
791 return *this;
792 }
794
796
800 inline const DurableConfig& GetDurableConfig() const { return m_durableConfig; }
801 inline bool DurableConfigHasBeenSet() const { return m_durableConfigHasBeenSet; }
802 template <typename DurableConfigT = DurableConfig>
803 void SetDurableConfig(DurableConfigT&& value) {
804 m_durableConfigHasBeenSet = true;
805 m_durableConfig = std::forward<DurableConfigT>(value);
806 }
807 template <typename DurableConfigT = DurableConfig>
808 FunctionConfiguration& WithDurableConfig(DurableConfigT&& value) {
809 SetDurableConfig(std::forward<DurableConfigT>(value));
810 return *this;
811 }
813
815
820 inline const TenancyConfig& GetTenancyConfig() const { return m_tenancyConfig; }
821 inline bool TenancyConfigHasBeenSet() const { return m_tenancyConfigHasBeenSet; }
822 template <typename TenancyConfigT = TenancyConfig>
823 void SetTenancyConfig(TenancyConfigT&& value) {
824 m_tenancyConfigHasBeenSet = true;
825 m_tenancyConfig = std::forward<TenancyConfigT>(value);
826 }
827 template <typename TenancyConfigT = TenancyConfig>
828 FunctionConfiguration& WithTenancyConfig(TenancyConfigT&& value) {
829 SetTenancyConfig(std::forward<TenancyConfigT>(value));
830 return *this;
831 }
833
835
836 inline const Aws::String& GetRequestId() const { return m_requestId; }
837 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
838 template <typename RequestIdT = Aws::String>
839 void SetRequestId(RequestIdT&& value) {
840 m_requestIdHasBeenSet = true;
841 m_requestId = std::forward<RequestIdT>(value);
842 }
843 template <typename RequestIdT = Aws::String>
845 SetRequestId(std::forward<RequestIdT>(value));
846 return *this;
847 }
849 private:
850 Aws::String m_functionName;
851
852 Aws::String m_functionArn;
853
854 Runtime m_runtime{Runtime::NOT_SET};
855
856 Aws::String m_role;
857
858 Aws::String m_handler;
859
860 long long m_codeSize{0};
861
862 Aws::String m_description;
863
864 int m_timeout{0};
865
866 int m_memorySize{0};
867
868 Aws::String m_lastModified;
869
870 Aws::String m_codeSha256;
871
872 Aws::String m_version;
873
874 VpcConfigResponse m_vpcConfig;
875
876 DeadLetterConfig m_deadLetterConfig;
877
878 EnvironmentResponse m_environment;
879
880 Aws::String m_kMSKeyArn;
881
882 TracingConfigResponse m_tracingConfig;
883
884 Aws::String m_masterArn;
885
886 Aws::String m_revisionId;
887
888 Aws::Vector<Layer> m_layers;
889
890 State m_state{State::NOT_SET};
891
892 Aws::String m_stateReason;
893
894 StateReasonCode m_stateReasonCode{StateReasonCode::NOT_SET};
895
897
898 Aws::String m_lastUpdateStatusReason;
899
901
902 Aws::Vector<FileSystemConfig> m_fileSystemConfigs;
903
904 PackageType m_packageType{PackageType::NOT_SET};
905
906 ImageConfigResponse m_imageConfigResponse;
907
908 Aws::String m_signingProfileVersionArn;
909
910 Aws::String m_signingJobArn;
911
912 Aws::Vector<Architecture> m_architectures;
913
914 EphemeralStorage m_ephemeralStorage;
915
916 SnapStartResponse m_snapStart;
917
918 RuntimeVersionConfig m_runtimeVersionConfig;
919
920 LoggingConfig m_loggingConfig;
921
922 CapacityProviderConfig m_capacityProviderConfig;
923
924 Aws::String m_configSha256;
925
926 DurableConfig m_durableConfig;
927
928 TenancyConfig m_tenancyConfig;
929
930 Aws::String m_requestId;
931 bool m_functionNameHasBeenSet = false;
932 bool m_functionArnHasBeenSet = false;
933 bool m_runtimeHasBeenSet = false;
934 bool m_roleHasBeenSet = false;
935 bool m_handlerHasBeenSet = false;
936 bool m_codeSizeHasBeenSet = false;
937 bool m_descriptionHasBeenSet = false;
938 bool m_timeoutHasBeenSet = false;
939 bool m_memorySizeHasBeenSet = false;
940 bool m_lastModifiedHasBeenSet = false;
941 bool m_codeSha256HasBeenSet = false;
942 bool m_versionHasBeenSet = false;
943 bool m_vpcConfigHasBeenSet = false;
944 bool m_deadLetterConfigHasBeenSet = false;
945 bool m_environmentHasBeenSet = false;
946 bool m_kMSKeyArnHasBeenSet = false;
947 bool m_tracingConfigHasBeenSet = false;
948 bool m_masterArnHasBeenSet = false;
949 bool m_revisionIdHasBeenSet = false;
950 bool m_layersHasBeenSet = false;
951 bool m_stateHasBeenSet = false;
952 bool m_stateReasonHasBeenSet = false;
953 bool m_stateReasonCodeHasBeenSet = false;
954 bool m_lastUpdateStatusHasBeenSet = false;
955 bool m_lastUpdateStatusReasonHasBeenSet = false;
956 bool m_lastUpdateStatusReasonCodeHasBeenSet = false;
957 bool m_fileSystemConfigsHasBeenSet = false;
958 bool m_packageTypeHasBeenSet = false;
959 bool m_imageConfigResponseHasBeenSet = false;
960 bool m_signingProfileVersionArnHasBeenSet = false;
961 bool m_signingJobArnHasBeenSet = false;
962 bool m_architecturesHasBeenSet = false;
963 bool m_ephemeralStorageHasBeenSet = false;
964 bool m_snapStartHasBeenSet = false;
965 bool m_runtimeVersionConfigHasBeenSet = false;
966 bool m_loggingConfigHasBeenSet = false;
967 bool m_capacityProviderConfigHasBeenSet = false;
968 bool m_configSha256HasBeenSet = false;
969 bool m_durableConfigHasBeenSet = false;
970 bool m_tenancyConfigHasBeenSet = false;
971 bool m_requestIdHasBeenSet = false;
972};
973
974} // namespace Model
975} // namespace Lambda
976} // 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