7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/lambda/LambdaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lambda/model/Runtime.h>
11#include <aws/lambda/model/FunctionCode.h>
12#include <aws/lambda/model/VpcConfig.h>
13#include <aws/lambda/model/PackageType.h>
14#include <aws/lambda/model/DeadLetterConfig.h>
15#include <aws/lambda/model/Environment.h>
16#include <aws/lambda/model/TracingConfig.h>
17#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19#include <aws/lambda/model/ImageConfig.h>
20#include <aws/lambda/model/EphemeralStorage.h>
21#include <aws/lambda/model/SnapStart.h>
22#include <aws/lambda/model/LoggingConfig.h>
23#include <aws/lambda/model/FileSystemConfig.h>
24#include <aws/lambda/model/Architecture.h>
63 template<
typename FunctionNameT = Aws::String>
64 void SetFunctionName(FunctionNameT&& value) { m_functionNameHasBeenSet =
true; m_functionName = std::forward<FunctionNameT>(value); }
65 template<
typename FunctionNameT = Aws::String>
96 template<
typename RoleT = Aws::String>
97 void SetRole(RoleT&& value) { m_roleHasBeenSet =
true; m_role = std::forward<RoleT>(value); }
98 template<
typename RoleT = Aws::String>
113 template<
typename HandlerT = Aws::String>
114 void SetHandler(HandlerT&& value) { m_handlerHasBeenSet =
true; m_handler = std::forward<HandlerT>(value); }
115 template<
typename HandlerT = Aws::String>
125 template<
typename CodeT = FunctionCode>
126 void SetCode(CodeT&& value) { m_codeHasBeenSet =
true; m_code = std::forward<CodeT>(value); }
127 template<
typename CodeT = FunctionCode>
137 template<
typename DescriptionT = Aws::String>
138 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
139 template<
typename DescriptionT = Aws::String>
153 inline void SetTimeout(
int value) { m_timeoutHasBeenSet =
true; m_timeout = value; }
167 inline void SetMemorySize(
int value) { m_memorySizeHasBeenSet =
true; m_memorySize = value; }
177 inline void SetPublish(
bool value) { m_publishHasBeenSet =
true; m_publish = value; }
192 template<
typename VpcConfigT = VpcConfig>
193 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet =
true; m_vpcConfig = std::forward<VpcConfigT>(value); }
194 template<
typename VpcConfigT = VpcConfig>
219 template<
typename DeadLetterConfigT = DeadLetterConfig>
220 void SetDeadLetterConfig(DeadLetterConfigT&& value) { m_deadLetterConfigHasBeenSet =
true; m_deadLetterConfig = std::forward<DeadLetterConfigT>(value); }
221 template<
typename DeadLetterConfigT = DeadLetterConfig>
232 template<
typename EnvironmentT = Environment>
233 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet =
true; m_environment = std::forward<EnvironmentT>(value); }
234 template<
typename EnvironmentT = Environment>
264 template<
typename KMSKeyArnT = Aws::String>
265 void SetKMSKeyArn(KMSKeyArnT&& value) { m_kMSKeyArnHasBeenSet =
true; m_kMSKeyArn = std::forward<KMSKeyArnT>(value); }
266 template<
typename KMSKeyArnT = Aws::String>
278 template<
typename TracingConfigT = TracingConfig>
279 void SetTracingConfig(TracingConfigT&& value) { m_tracingConfigHasBeenSet =
true; m_tracingConfig = std::forward<TracingConfigT>(value); }
280 template<
typename TracingConfigT = TracingConfig>
292 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
293 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
294 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
296 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
298 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
311 template<
typename LayersT = Aws::Vector<Aws::String>>
312 void SetLayers(LayersT&& value) { m_layersHasBeenSet =
true; m_layers = std::forward<LayersT>(value); }
313 template<
typename LayersT = Aws::Vector<Aws::String>>
315 template<
typename LayersT = Aws::String>
325 template<
typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
326 void SetFileSystemConfigs(FileSystemConfigsT&& value) { m_fileSystemConfigsHasBeenSet =
true; m_fileSystemConfigs = std::forward<FileSystemConfigsT>(value); }
327 template<
typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
329 template<
typename FileSystemConfigsT = FileSystemConfig>
341 template<
typename ImageConfigT = ImageConfig>
342 void SetImageConfig(ImageConfigT&& value) { m_imageConfigHasBeenSet =
true; m_imageConfig = std::forward<ImageConfigT>(value); }
343 template<
typename ImageConfigT = ImageConfig>
355 template<
typename CodeSigningConfigArnT = Aws::String>
356 void SetCodeSigningConfigArn(CodeSigningConfigArnT&& value) { m_codeSigningConfigArnHasBeenSet =
true; m_codeSigningConfigArn = std::forward<CodeSigningConfigArnT>(value); }
357 template<
typename CodeSigningConfigArnT = Aws::String>
369 template<
typename ArchitecturesT = Aws::Vector<Architecture>>
370 void SetArchitectures(ArchitecturesT&& value) { m_architecturesHasBeenSet =
true; m_architectures = std::forward<ArchitecturesT>(value); }
371 template<
typename ArchitecturesT = Aws::Vector<Architecture>>
386 template<
typename EphemeralStorageT = EphemeralStorage>
387 void SetEphemeralStorage(EphemeralStorageT&& value) { m_ephemeralStorageHasBeenSet =
true; m_ephemeralStorage = std::forward<EphemeralStorageT>(value); }
388 template<
typename EphemeralStorageT = EphemeralStorage>
400 template<
typename SnapStartT = SnapStart>
401 void SetSnapStart(SnapStartT&& value) { m_snapStartHasBeenSet =
true; m_snapStart = std::forward<SnapStartT>(value); }
402 template<
typename SnapStartT = SnapStart>
412 template<
typename LoggingConfigT = LoggingConfig>
413 void SetLoggingConfig(LoggingConfigT&& value) { m_loggingConfigHasBeenSet =
true; m_loggingConfig = std::forward<LoggingConfigT>(value); }
414 template<
typename LoggingConfigT = LoggingConfig>
420 bool m_functionNameHasBeenSet =
false;
423 bool m_runtimeHasBeenSet =
false;
426 bool m_roleHasBeenSet =
false;
429 bool m_handlerHasBeenSet =
false;
432 bool m_codeHasBeenSet =
false;
435 bool m_descriptionHasBeenSet =
false;
438 bool m_timeoutHasBeenSet =
false;
441 bool m_memorySizeHasBeenSet =
false;
443 bool m_publish{
false};
444 bool m_publishHasBeenSet =
false;
446 VpcConfig m_vpcConfig;
447 bool m_vpcConfigHasBeenSet =
false;
450 bool m_packageTypeHasBeenSet =
false;
452 DeadLetterConfig m_deadLetterConfig;
453 bool m_deadLetterConfigHasBeenSet =
false;
455 Environment m_environment;
456 bool m_environmentHasBeenSet =
false;
459 bool m_kMSKeyArnHasBeenSet =
false;
461 TracingConfig m_tracingConfig;
462 bool m_tracingConfigHasBeenSet =
false;
465 bool m_tagsHasBeenSet =
false;
468 bool m_layersHasBeenSet =
false;
471 bool m_fileSystemConfigsHasBeenSet =
false;
473 ImageConfig m_imageConfig;
474 bool m_imageConfigHasBeenSet =
false;
477 bool m_codeSigningConfigArnHasBeenSet =
false;
480 bool m_architecturesHasBeenSet =
false;
482 EphemeralStorage m_ephemeralStorage;
483 bool m_ephemeralStorageHasBeenSet =
false;
485 SnapStart m_snapStart;
486 bool m_snapStartHasBeenSet =
false;
488 LoggingConfig m_loggingConfig;
489 bool m_loggingConfigHasBeenSet =
false;
bool RoleHasBeenSet() const
void SetHandler(HandlerT &&value)
bool HandlerHasBeenSet() const
bool CodeSigningConfigArnHasBeenSet() const
CreateFunctionRequest & WithArchitectures(ArchitecturesT &&value)
const TracingConfig & GetTracingConfig() const
void SetPublish(bool value)
CreateFunctionRequest & AddLayers(LayersT &&value)
const Aws::String & GetKMSKeyArn() const
bool EphemeralStorageHasBeenSet() const
void SetPackageType(PackageType value)
const Aws::Vector< Architecture > & GetArchitectures() const
CreateFunctionRequest & WithImageConfig(ImageConfigT &&value)
void SetTimeout(int value)
void SetDescription(DescriptionT &&value)
CreateFunctionRequest & WithLoggingConfig(LoggingConfigT &&value)
bool DescriptionHasBeenSet() const
bool RuntimeHasBeenSet() const
void SetEnvironment(EnvironmentT &&value)
CreateFunctionRequest & WithRole(RoleT &&value)
CreateFunctionRequest & WithTimeout(int value)
CreateFunctionRequest & WithPublish(bool value)
const ImageConfig & GetImageConfig() const
void SetCodeSigningConfigArn(CodeSigningConfigArnT &&value)
void SetVpcConfig(VpcConfigT &&value)
void SetFunctionName(FunctionNameT &&value)
CreateFunctionRequest & WithKMSKeyArn(KMSKeyArnT &&value)
CreateFunctionRequest & WithTags(TagsT &&value)
const Aws::String & GetRole() const
bool SnapStartHasBeenSet() const
void SetRole(RoleT &&value)
const Aws::Vector< FileSystemConfig > & GetFileSystemConfigs() const
CreateFunctionRequest & WithMemorySize(int value)
const Aws::String & GetDescription() const
CreateFunctionRequest & WithDeadLetterConfig(DeadLetterConfigT &&value)
const EphemeralStorage & GetEphemeralStorage() const
void SetArchitectures(ArchitecturesT &&value)
bool MemorySizeHasBeenSet() const
bool CodeHasBeenSet() const
CreateFunctionRequest & WithFunctionName(FunctionNameT &&value)
bool VpcConfigHasBeenSet() const
bool TimeoutHasBeenSet() const
AWS_LAMBDA_API Aws::String SerializePayload() const override
CreateFunctionRequest & WithDescription(DescriptionT &&value)
const Aws::String & GetHandler() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool FunctionNameHasBeenSet() const
CreateFunctionRequest & AddArchitectures(Architecture value)
bool ImageConfigHasBeenSet() const
const VpcConfig & GetVpcConfig() const
const FunctionCode & GetCode() const
const Environment & GetEnvironment() const
Runtime GetRuntime() const
const LoggingConfig & GetLoggingConfig() const
bool FileSystemConfigsHasBeenSet() const
const Aws::Vector< Aws::String > & GetLayers() const
void SetKMSKeyArn(KMSKeyArnT &&value)
bool DeadLetterConfigHasBeenSet() const
bool PublishHasBeenSet() const
bool LayersHasBeenSet() const
const Aws::String & GetFunctionName() const
const Aws::String & GetCodeSigningConfigArn() const
PackageType GetPackageType() const
void SetMemorySize(int value)
bool TracingConfigHasBeenSet() const
AWS_LAMBDA_API CreateFunctionRequest()=default
void SetLayers(LayersT &&value)
CreateFunctionRequest & WithHandler(HandlerT &&value)
CreateFunctionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateFunctionRequest & AddFileSystemConfigs(FileSystemConfigsT &&value)
void SetDeadLetterConfig(DeadLetterConfigT &&value)
void SetTags(TagsT &&value)
void SetFileSystemConfigs(FileSystemConfigsT &&value)
const SnapStart & GetSnapStart() const
CreateFunctionRequest & WithCode(CodeT &&value)
CreateFunctionRequest & WithSnapStart(SnapStartT &&value)
void SetSnapStart(SnapStartT &&value)
int GetMemorySize() const
CreateFunctionRequest & WithVpcConfig(VpcConfigT &&value)
void SetImageConfig(ImageConfigT &&value)
CreateFunctionRequest & WithPackageType(PackageType value)
void SetCode(CodeT &&value)
CreateFunctionRequest & WithFileSystemConfigs(FileSystemConfigsT &&value)
void SetRuntime(Runtime value)
CreateFunctionRequest & WithEphemeralStorage(EphemeralStorageT &&value)
virtual const char * GetServiceRequestName() const override
void SetEphemeralStorage(EphemeralStorageT &&value)
CreateFunctionRequest & WithTracingConfig(TracingConfigT &&value)
bool ArchitecturesHasBeenSet() const
bool KMSKeyArnHasBeenSet() const
void SetLoggingConfig(LoggingConfigT &&value)
const DeadLetterConfig & GetDeadLetterConfig() const
CreateFunctionRequest & WithLayers(LayersT &&value)
bool EnvironmentHasBeenSet() const
void SetTracingConfig(TracingConfigT &&value)
CreateFunctionRequest & WithEnvironment(EnvironmentT &&value)
CreateFunctionRequest & WithCodeSigningConfigArn(CodeSigningConfigArnT &&value)
bool PackageTypeHasBeenSet() const
CreateFunctionRequest & WithRuntime(Runtime value)
bool TagsHasBeenSet() const
bool LoggingConfigHasBeenSet() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector