AWS SDK for C++  0.12.9
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 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
44  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
45 
52  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
53 
60  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
61 
68  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
69 
76  inline CreateFunctionRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
77 
84  inline CreateFunctionRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(value); return *this;}
85 
92  inline CreateFunctionRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
93 
97  inline const Runtime& GetRuntime() const{ return m_runtime; }
98 
102  inline void SetRuntime(const Runtime& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
103 
107  inline void SetRuntime(Runtime&& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
108 
112  inline CreateFunctionRequest& WithRuntime(const Runtime& value) { SetRuntime(value); return *this;}
113 
117  inline CreateFunctionRequest& WithRuntime(Runtime&& value) { SetRuntime(value); return *this;}
118 
126  inline const Aws::String& GetRole() const{ return m_role; }
127 
135  inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
136 
144  inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = value; }
145 
153  inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
154 
162  inline CreateFunctionRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;}
163 
171  inline CreateFunctionRequest& WithRole(Aws::String&& value) { SetRole(value); return *this;}
172 
180  inline CreateFunctionRequest& WithRole(const char* value) { SetRole(value); return *this;}
181 
190  inline const Aws::String& GetHandler() const{ return m_handler; }
191 
200  inline void SetHandler(const Aws::String& value) { m_handlerHasBeenSet = true; m_handler = value; }
201 
210  inline void SetHandler(Aws::String&& value) { m_handlerHasBeenSet = true; m_handler = value; }
211 
220  inline void SetHandler(const char* value) { m_handlerHasBeenSet = true; m_handler.assign(value); }
221 
230  inline CreateFunctionRequest& WithHandler(const Aws::String& value) { SetHandler(value); return *this;}
231 
240  inline CreateFunctionRequest& WithHandler(Aws::String&& value) { SetHandler(value); return *this;}
241 
250  inline CreateFunctionRequest& WithHandler(const char* value) { SetHandler(value); return *this;}
251 
255  inline const FunctionCode& GetCode() const{ return m_code; }
256 
260  inline void SetCode(const FunctionCode& value) { m_codeHasBeenSet = true; m_code = value; }
261 
265  inline void SetCode(FunctionCode&& value) { m_codeHasBeenSet = true; m_code = value; }
266 
270  inline CreateFunctionRequest& WithCode(const FunctionCode& value) { SetCode(value); return *this;}
271 
275  inline CreateFunctionRequest& WithCode(FunctionCode&& value) { SetCode(value); return *this;}
276 
281  inline const Aws::String& GetDescription() const{ return m_description; }
282 
287  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
288 
293  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
294 
299  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
300 
305  inline CreateFunctionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
306 
311  inline CreateFunctionRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
312 
317  inline CreateFunctionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
318 
324  inline long GetTimeout() const{ return m_timeout; }
325 
331  inline void SetTimeout(long value) { m_timeoutHasBeenSet = true; m_timeout = value; }
332 
338  inline CreateFunctionRequest& WithTimeout(long value) { SetTimeout(value); return *this;}
339 
348  inline long GetMemorySize() const{ return m_memorySize; }
349 
358  inline void SetMemorySize(long value) { m_memorySizeHasBeenSet = true; m_memorySize = value; }
359 
368  inline CreateFunctionRequest& WithMemorySize(long value) { SetMemorySize(value); return *this;}
369 
374  inline bool GetPublish() const{ return m_publish; }
375 
380  inline void SetPublish(bool value) { m_publishHasBeenSet = true; m_publish = value; }
381 
386  inline CreateFunctionRequest& WithPublish(bool value) { SetPublish(value); return *this;}
387 
394  inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
395 
402  inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
403 
410  inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
411 
418  inline CreateFunctionRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
419 
426  inline CreateFunctionRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(value); return *this;}
427 
428  private:
429  Aws::String m_functionName;
430  bool m_functionNameHasBeenSet;
431  Runtime m_runtime;
432  bool m_runtimeHasBeenSet;
433  Aws::String m_role;
434  bool m_roleHasBeenSet;
435  Aws::String m_handler;
436  bool m_handlerHasBeenSet;
437  FunctionCode m_code;
438  bool m_codeHasBeenSet;
439  Aws::String m_description;
440  bool m_descriptionHasBeenSet;
441  long m_timeout;
442  bool m_timeoutHasBeenSet;
443  long m_memorySize;
444  bool m_memorySizeHasBeenSet;
445  bool m_publish;
446  bool m_publishHasBeenSet;
447  VpcConfig m_vpcConfig;
448  bool m_vpcConfigHasBeenSet;
449  };
450 
451 } // namespace Model
452 } // namespace Lambda
453 } // 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 & 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 & WithTimeout(long value)
CreateFunctionRequest & WithRole(const char *value)
CreateFunctionRequest & WithMemorySize(long 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).