AWS SDK for C++  0.14.3
AWS SDK for C++
CreateFunctionRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
22 
23 namespace Aws
24 {
25 namespace Lambda
26 {
27 namespace Model
28 {
29 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
45  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
46 
53  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
54 
61  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
62 
69  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
70 
77  inline CreateFunctionRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
78 
85  inline CreateFunctionRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(value); return *this;}
86 
93  inline CreateFunctionRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
94 
100  inline const Runtime& GetRuntime() const{ return m_runtime; }
101 
107  inline void SetRuntime(const Runtime& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
108 
114  inline void SetRuntime(Runtime&& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
115 
121  inline CreateFunctionRequest& WithRuntime(const Runtime& value) { SetRuntime(value); return *this;}
122 
128  inline CreateFunctionRequest& WithRuntime(Runtime&& value) { SetRuntime(value); return *this;}
129 
137  inline const Aws::String& GetRole() const{ return m_role; }
138 
146  inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
147 
155  inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = value; }
156 
164  inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
165 
173  inline CreateFunctionRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;}
174 
182  inline CreateFunctionRequest& WithRole(Aws::String&& value) { SetRole(value); return *this;}
183 
191  inline CreateFunctionRequest& WithRole(const char* value) { SetRole(value); return *this;}
192 
201  inline const Aws::String& GetHandler() const{ return m_handler; }
202 
211  inline void SetHandler(const Aws::String& value) { m_handlerHasBeenSet = true; m_handler = value; }
212 
221  inline void SetHandler(Aws::String&& value) { m_handlerHasBeenSet = true; m_handler = value; }
222 
231  inline void SetHandler(const char* value) { m_handlerHasBeenSet = true; m_handler.assign(value); }
232 
241  inline CreateFunctionRequest& WithHandler(const Aws::String& value) { SetHandler(value); return *this;}
242 
251  inline CreateFunctionRequest& WithHandler(Aws::String&& value) { SetHandler(value); return *this;}
252 
261  inline CreateFunctionRequest& WithHandler(const char* value) { SetHandler(value); return *this;}
262 
266  inline const FunctionCode& GetCode() const{ return m_code; }
267 
271  inline void SetCode(const FunctionCode& value) { m_codeHasBeenSet = true; m_code = value; }
272 
276  inline void SetCode(FunctionCode&& value) { m_codeHasBeenSet = true; m_code = value; }
277 
281  inline CreateFunctionRequest& WithCode(const FunctionCode& value) { SetCode(value); return *this;}
282 
286  inline CreateFunctionRequest& WithCode(FunctionCode&& value) { SetCode(value); return *this;}
287 
292  inline const Aws::String& GetDescription() const{ return m_description; }
293 
298  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
299 
304  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
305 
310  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
311 
316  inline CreateFunctionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
317 
322  inline CreateFunctionRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
323 
328  inline CreateFunctionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
329 
335  inline int GetTimeout() const{ return m_timeout; }
336 
342  inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
343 
349  inline CreateFunctionRequest& WithTimeout(int value) { SetTimeout(value); return *this;}
350 
359  inline int GetMemorySize() const{ return m_memorySize; }
360 
369  inline void SetMemorySize(int value) { m_memorySizeHasBeenSet = true; m_memorySize = value; }
370 
379  inline CreateFunctionRequest& WithMemorySize(int value) { SetMemorySize(value); return *this;}
380 
385  inline bool GetPublish() const{ return m_publish; }
386 
391  inline void SetPublish(bool value) { m_publishHasBeenSet = true; m_publish = value; }
392 
397  inline CreateFunctionRequest& WithPublish(bool value) { SetPublish(value); return *this;}
398 
405  inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
406 
413  inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
414 
421  inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
422 
429  inline CreateFunctionRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
430 
437  inline CreateFunctionRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(value); return *this;}
438 
439  private:
440  Aws::String m_functionName;
441  bool m_functionNameHasBeenSet;
442  Runtime m_runtime;
443  bool m_runtimeHasBeenSet;
444  Aws::String m_role;
445  bool m_roleHasBeenSet;
446  Aws::String m_handler;
447  bool m_handlerHasBeenSet;
448  FunctionCode m_code;
449  bool m_codeHasBeenSet;
450  Aws::String m_description;
451  bool m_descriptionHasBeenSet;
452  int m_timeout;
453  bool m_timeoutHasBeenSet;
454  int m_memorySize;
455  bool m_memorySizeHasBeenSet;
456  bool m_publish;
457  bool m_publishHasBeenSet;
458  VpcConfig m_vpcConfig;
459  bool m_vpcConfigHasBeenSet;
460  };
461 
462 } // namespace Model
463 } // namespace Lambda
464 } // namespace Aws
CreateFunctionRequest & WithRole(const Aws::String &value)
CreateFunctionRequest & WithVpcConfig(const VpcConfig &value)
CreateFunctionRequest & WithCode(FunctionCode &&value)
const Aws::String & GetFunctionName() const
CreateFunctionRequest & WithRuntime(const Runtime &value)
CreateFunctionRequest & WithHandler(const Aws::String &value)
CreateFunctionRequest & WithFunctionName(Aws::String &&value)
CreateFunctionRequest & WithPublish(bool value)
CreateFunctionRequest & WithRuntime(Runtime &&value)
CreateFunctionRequest & WithDescription(const char *value)
CreateFunctionRequest & WithMemorySize(int value)
CreateFunctionRequest & WithFunctionName(const char *value)
CreateFunctionRequest & WithRole(Aws::String &&value)
void SetFunctionName(const Aws::String &value)
CreateFunctionRequest & WithHandler(Aws::String &&value)
CreateFunctionRequest & WithFunctionName(const Aws::String &value)
CreateFunctionRequest & WithVpcConfig(VpcConfig &&value)
#define AWS_LAMBDA_API
CreateFunctionRequest & WithCode(const FunctionCode &value)
CreateFunctionRequest & WithRole(const char *value)
CreateFunctionRequest & WithTimeout(int value)
CreateFunctionRequest & WithDescription(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDescription(const Aws::String &value)
CreateFunctionRequest & WithHandler(const char *value)
CreateFunctionRequest & WithDescription(const Aws::String &value)
JSON (JavaScript Object Notation).