AWS SDK for C++  1.8.71
AWS SDK for C++
CreateFunctionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
19 #include <utility>
20 
21 namespace Aws
22 {
23 namespace Lambda
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34 
35  // Service request name is the Operation name which will send this request out,
36  // each operation should has unique request name, so that we can get operation's name from this request.
37  // Note: this is not true for response, multiple operations may have the same response name,
38  // so we can not get operation's name from response.
39  inline virtual const char* GetServiceRequestName() const override { return "CreateFunction"; }
40 
41  Aws::String SerializePayload() const override;
42 
43 
54  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
55 
66  inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
67 
78  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
79 
90  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
91 
102  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
103 
114  inline CreateFunctionRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
115 
126  inline CreateFunctionRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
127 
138  inline CreateFunctionRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
139 
140 
145  inline const Runtime& GetRuntime() const{ return m_runtime; }
146 
151  inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
152 
157  inline void SetRuntime(const Runtime& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
158 
163  inline void SetRuntime(Runtime&& value) { m_runtimeHasBeenSet = true; m_runtime = std::move(value); }
164 
169  inline CreateFunctionRequest& WithRuntime(const Runtime& value) { SetRuntime(value); return *this;}
170 
175  inline CreateFunctionRequest& WithRuntime(Runtime&& value) { SetRuntime(std::move(value)); return *this;}
176 
177 
181  inline const Aws::String& GetRole() const{ return m_role; }
182 
186  inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
187 
191  inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
192 
196  inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
197 
201  inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
202 
206  inline CreateFunctionRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;}
207 
211  inline CreateFunctionRequest& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
212 
216  inline CreateFunctionRequest& WithRole(const char* value) { SetRole(value); return *this;}
217 
218 
226  inline const Aws::String& GetHandler() const{ return m_handler; }
227 
235  inline bool HandlerHasBeenSet() const { return m_handlerHasBeenSet; }
236 
244  inline void SetHandler(const Aws::String& value) { m_handlerHasBeenSet = true; m_handler = value; }
245 
253  inline void SetHandler(Aws::String&& value) { m_handlerHasBeenSet = true; m_handler = std::move(value); }
254 
262  inline void SetHandler(const char* value) { m_handlerHasBeenSet = true; m_handler.assign(value); }
263 
271  inline CreateFunctionRequest& WithHandler(const Aws::String& value) { SetHandler(value); return *this;}
272 
280  inline CreateFunctionRequest& WithHandler(Aws::String&& value) { SetHandler(std::move(value)); return *this;}
281 
289  inline CreateFunctionRequest& WithHandler(const char* value) { SetHandler(value); return *this;}
290 
291 
295  inline const FunctionCode& GetCode() const{ return m_code; }
296 
300  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
301 
305  inline void SetCode(const FunctionCode& value) { m_codeHasBeenSet = true; m_code = value; }
306 
310  inline void SetCode(FunctionCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
311 
315  inline CreateFunctionRequest& WithCode(const FunctionCode& value) { SetCode(value); return *this;}
316 
320  inline CreateFunctionRequest& WithCode(FunctionCode&& value) { SetCode(std::move(value)); return *this;}
321 
322 
326  inline const Aws::String& GetDescription() const{ return m_description; }
327 
331  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
332 
336  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
337 
341  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
342 
346  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
347 
351  inline CreateFunctionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
352 
356  inline CreateFunctionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
357 
361  inline CreateFunctionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
362 
363 
368  inline int GetTimeout() const{ return m_timeout; }
369 
374  inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
375 
380  inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
381 
386  inline CreateFunctionRequest& WithTimeout(int value) { SetTimeout(value); return *this;}
387 
388 
394  inline int GetMemorySize() const{ return m_memorySize; }
395 
401  inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; }
402 
408  inline void SetMemorySize(int value) { m_memorySizeHasBeenSet = true; m_memorySize = value; }
409 
415  inline CreateFunctionRequest& WithMemorySize(int value) { SetMemorySize(value); return *this;}
416 
417 
421  inline bool GetPublish() const{ return m_publish; }
422 
426  inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
427 
431  inline void SetPublish(bool value) { m_publishHasBeenSet = true; m_publish = value; }
432 
436  inline CreateFunctionRequest& WithPublish(bool value) { SetPublish(value); return *this;}
437 
438 
447  inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
448 
457  inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
458 
467  inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
468 
477  inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
478 
487  inline CreateFunctionRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
488 
497  inline CreateFunctionRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
498 
499 
507  inline const DeadLetterConfig& GetDeadLetterConfig() const{ return m_deadLetterConfig; }
508 
516  inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
517 
525  inline void SetDeadLetterConfig(const DeadLetterConfig& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = value; }
526 
534  inline void SetDeadLetterConfig(DeadLetterConfig&& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = std::move(value); }
535 
543  inline CreateFunctionRequest& WithDeadLetterConfig(const DeadLetterConfig& value) { SetDeadLetterConfig(value); return *this;}
544 
552  inline CreateFunctionRequest& WithDeadLetterConfig(DeadLetterConfig&& value) { SetDeadLetterConfig(std::move(value)); return *this;}
553 
554 
559  inline const Environment& GetEnvironment() const{ return m_environment; }
560 
565  inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
566 
571  inline void SetEnvironment(const Environment& value) { m_environmentHasBeenSet = true; m_environment = value; }
572 
577  inline void SetEnvironment(Environment&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
578 
583  inline CreateFunctionRequest& WithEnvironment(const Environment& value) { SetEnvironment(value); return *this;}
584 
589  inline CreateFunctionRequest& WithEnvironment(Environment&& value) { SetEnvironment(std::move(value)); return *this;}
590 
591 
597  inline const Aws::String& GetKMSKeyArn() const{ return m_kMSKeyArn; }
598 
604  inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
605 
611  inline void SetKMSKeyArn(const Aws::String& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = value; }
612 
618  inline void SetKMSKeyArn(Aws::String&& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = std::move(value); }
619 
625  inline void SetKMSKeyArn(const char* value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn.assign(value); }
626 
632  inline CreateFunctionRequest& WithKMSKeyArn(const Aws::String& value) { SetKMSKeyArn(value); return *this;}
633 
639  inline CreateFunctionRequest& WithKMSKeyArn(Aws::String&& value) { SetKMSKeyArn(std::move(value)); return *this;}
640 
646  inline CreateFunctionRequest& WithKMSKeyArn(const char* value) { SetKMSKeyArn(value); return *this;}
647 
648 
653  inline const TracingConfig& GetTracingConfig() const{ return m_tracingConfig; }
654 
659  inline bool TracingConfigHasBeenSet() const { return m_tracingConfigHasBeenSet; }
660 
665  inline void SetTracingConfig(const TracingConfig& value) { m_tracingConfigHasBeenSet = true; m_tracingConfig = value; }
666 
671  inline void SetTracingConfig(TracingConfig&& value) { m_tracingConfigHasBeenSet = true; m_tracingConfig = std::move(value); }
672 
677  inline CreateFunctionRequest& WithTracingConfig(const TracingConfig& value) { SetTracingConfig(value); return *this;}
678 
683  inline CreateFunctionRequest& WithTracingConfig(TracingConfig&& value) { SetTracingConfig(std::move(value)); return *this;}
684 
685 
691  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
692 
698  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
699 
705  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
706 
712  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
713 
719  inline CreateFunctionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
720 
726  inline CreateFunctionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
727 
733  inline CreateFunctionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
734 
740  inline CreateFunctionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
741 
747  inline CreateFunctionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
748 
754  inline CreateFunctionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
755 
761  inline CreateFunctionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
762 
768  inline CreateFunctionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
769 
775  inline CreateFunctionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
776 
777 
784  inline const Aws::Vector<Aws::String>& GetLayers() const{ return m_layers; }
785 
792  inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
793 
800  inline void SetLayers(const Aws::Vector<Aws::String>& value) { m_layersHasBeenSet = true; m_layers = value; }
801 
808  inline void SetLayers(Aws::Vector<Aws::String>&& value) { m_layersHasBeenSet = true; m_layers = std::move(value); }
809 
816  inline CreateFunctionRequest& WithLayers(const Aws::Vector<Aws::String>& value) { SetLayers(value); return *this;}
817 
824  inline CreateFunctionRequest& WithLayers(Aws::Vector<Aws::String>&& value) { SetLayers(std::move(value)); return *this;}
825 
832  inline CreateFunctionRequest& AddLayers(const Aws::String& value) { m_layersHasBeenSet = true; m_layers.push_back(value); return *this; }
833 
840  inline CreateFunctionRequest& AddLayers(Aws::String&& value) { m_layersHasBeenSet = true; m_layers.push_back(std::move(value)); return *this; }
841 
848  inline CreateFunctionRequest& AddLayers(const char* value) { m_layersHasBeenSet = true; m_layers.push_back(value); return *this; }
849 
850 
854  inline const Aws::Vector<FileSystemConfig>& GetFileSystemConfigs() const{ return m_fileSystemConfigs; }
855 
859  inline bool FileSystemConfigsHasBeenSet() const { return m_fileSystemConfigsHasBeenSet; }
860 
864  inline void SetFileSystemConfigs(const Aws::Vector<FileSystemConfig>& value) { m_fileSystemConfigsHasBeenSet = true; m_fileSystemConfigs = value; }
865 
869  inline void SetFileSystemConfigs(Aws::Vector<FileSystemConfig>&& value) { m_fileSystemConfigsHasBeenSet = true; m_fileSystemConfigs = std::move(value); }
870 
874  inline CreateFunctionRequest& WithFileSystemConfigs(const Aws::Vector<FileSystemConfig>& value) { SetFileSystemConfigs(value); return *this;}
875 
879  inline CreateFunctionRequest& WithFileSystemConfigs(Aws::Vector<FileSystemConfig>&& value) { SetFileSystemConfigs(std::move(value)); return *this;}
880 
884  inline CreateFunctionRequest& AddFileSystemConfigs(const FileSystemConfig& value) { m_fileSystemConfigsHasBeenSet = true; m_fileSystemConfigs.push_back(value); return *this; }
885 
889  inline CreateFunctionRequest& AddFileSystemConfigs(FileSystemConfig&& value) { m_fileSystemConfigsHasBeenSet = true; m_fileSystemConfigs.push_back(std::move(value)); return *this; }
890 
891  private:
892 
893  Aws::String m_functionName;
894  bool m_functionNameHasBeenSet;
895 
896  Runtime m_runtime;
897  bool m_runtimeHasBeenSet;
898 
899  Aws::String m_role;
900  bool m_roleHasBeenSet;
901 
902  Aws::String m_handler;
903  bool m_handlerHasBeenSet;
904 
905  FunctionCode m_code;
906  bool m_codeHasBeenSet;
907 
908  Aws::String m_description;
909  bool m_descriptionHasBeenSet;
910 
911  int m_timeout;
912  bool m_timeoutHasBeenSet;
913 
914  int m_memorySize;
915  bool m_memorySizeHasBeenSet;
916 
917  bool m_publish;
918  bool m_publishHasBeenSet;
919 
920  VpcConfig m_vpcConfig;
921  bool m_vpcConfigHasBeenSet;
922 
923  DeadLetterConfig m_deadLetterConfig;
924  bool m_deadLetterConfigHasBeenSet;
925 
926  Environment m_environment;
927  bool m_environmentHasBeenSet;
928 
929  Aws::String m_kMSKeyArn;
930  bool m_kMSKeyArnHasBeenSet;
931 
932  TracingConfig m_tracingConfig;
933  bool m_tracingConfigHasBeenSet;
934 
936  bool m_tagsHasBeenSet;
937 
938  Aws::Vector<Aws::String> m_layers;
939  bool m_layersHasBeenSet;
940 
941  Aws::Vector<FileSystemConfig> m_fileSystemConfigs;
942  bool m_fileSystemConfigsHasBeenSet;
943  };
944 
945 } // namespace Model
946 } // namespace Lambda
947 } // namespace Aws
CreateFunctionRequest & WithRole(const Aws::String &value)
CreateFunctionRequest & AddTags(const char *key, Aws::String &&value)
CreateFunctionRequest & WithVpcConfig(const VpcConfig &value)
CreateFunctionRequest & WithCode(FunctionCode &&value)
CreateFunctionRequest & AddTags(Aws::String &&key, const Aws::String &value)
const TracingConfig & GetTracingConfig() const
CreateFunctionRequest & WithLayers(const Aws::Vector< Aws::String > &value)
void SetDeadLetterConfig(DeadLetterConfig &&value)
CreateFunctionRequest & WithRuntime(const Runtime &value)
CreateFunctionRequest & WithHandler(const Aws::String &value)
CreateFunctionRequest & AddLayers(const Aws::String &value)
const Aws::Vector< Aws::String > & GetLayers() const
CreateFunctionRequest & WithFunctionName(Aws::String &&value)
CreateFunctionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateFunctionRequest & WithPublish(bool value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateFunctionRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateFunctionRequest & WithTracingConfig(TracingConfig &&value)
CreateFunctionRequest & WithRuntime(Runtime &&value)
CreateFunctionRequest & WithDescription(const char *value)
CreateFunctionRequest & WithMemorySize(int value)
CreateFunctionRequest & WithFunctionName(const char *value)
CreateFunctionRequest & WithFileSystemConfigs(const Aws::Vector< FileSystemConfig > &value)
void SetLayers(Aws::Vector< Aws::String > &&value)
CreateFunctionRequest & WithRole(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
void SetFunctionName(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
CreateFunctionRequest & WithHandler(Aws::String &&value)
CreateFunctionRequest & WithKMSKeyArn(const Aws::String &value)
CreateFunctionRequest & AddLayers(const char *value)
CreateFunctionRequest & WithFunctionName(const Aws::String &value)
CreateFunctionRequest & WithKMSKeyArn(const char *value)
CreateFunctionRequest & WithEnvironment(const Environment &value)
CreateFunctionRequest & WithLayers(Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Vector< FileSystemConfig > & GetFileSystemConfigs() const
CreateFunctionRequest & WithVpcConfig(VpcConfig &&value)
#define AWS_LAMBDA_API
CreateFunctionRequest & AddFileSystemConfigs(FileSystemConfig &&value)
CreateFunctionRequest & WithKMSKeyArn(Aws::String &&value)
CreateFunctionRequest & WithCode(const FunctionCode &value)
void SetDeadLetterConfig(const DeadLetterConfig &value)
CreateFunctionRequest & WithEnvironment(Environment &&value)
CreateFunctionRequest & WithRole(const char *value)
void SetKMSKeyArn(const Aws::String &value)
void SetEnvironment(const Environment &value)
CreateFunctionRequest & AddFileSystemConfigs(const FileSystemConfig &value)
CreateFunctionRequest & WithTimeout(int value)
CreateFunctionRequest & WithFileSystemConfigs(Aws::Vector< FileSystemConfig > &&value)
CreateFunctionRequest & AddLayers(Aws::String &&value)
CreateFunctionRequest & WithDescription(Aws::String &&value)
void SetLayers(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
CreateFunctionRequest & WithTracingConfig(const TracingConfig &value)
void SetTracingConfig(const TracingConfig &value)
CreateFunctionRequest & WithDeadLetterConfig(const DeadLetterConfig &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateFunctionRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateFunctionRequest & WithDeadLetterConfig(DeadLetterConfig &&value)
void SetFileSystemConfigs(const Aws::Vector< FileSystemConfig > &value)
void SetDescription(const Aws::String &value)
CreateFunctionRequest & WithHandler(const char *value)
CreateFunctionRequest & AddTags(Aws::String &&key, const char *value)
const DeadLetterConfig & GetDeadLetterConfig() const
void SetFileSystemConfigs(Aws::Vector< FileSystemConfig > &&value)
CreateFunctionRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateFunctionRequest & AddTags(const char *key, const char *value)
CreateFunctionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateFunctionRequest & WithDescription(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)