AWS SDK for C++  0.12.9
AWS SDK for C++
UpdateFunctionConfigurationRequest.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
21 
22 namespace Aws
23 {
24 namespace Lambda
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
47  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
48 
59  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
60 
71  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
72 
83  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
84 
95  inline UpdateFunctionConfigurationRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
96 
107  inline UpdateFunctionConfigurationRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(value); return *this;}
108 
119  inline UpdateFunctionConfigurationRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
120 
125  inline const Aws::String& GetRole() const{ return m_role; }
126 
131  inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
132 
137  inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = value; }
138 
143  inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
144 
149  inline UpdateFunctionConfigurationRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;}
150 
155  inline UpdateFunctionConfigurationRequest& WithRole(Aws::String&& value) { SetRole(value); return *this;}
156 
161  inline UpdateFunctionConfigurationRequest& WithRole(const char* value) { SetRole(value); return *this;}
162 
167  inline const Aws::String& GetHandler() const{ return m_handler; }
168 
173  inline void SetHandler(const Aws::String& value) { m_handlerHasBeenSet = true; m_handler = value; }
174 
179  inline void SetHandler(Aws::String&& value) { m_handlerHasBeenSet = true; m_handler = value; }
180 
185  inline void SetHandler(const char* value) { m_handlerHasBeenSet = true; m_handler.assign(value); }
186 
191  inline UpdateFunctionConfigurationRequest& WithHandler(const Aws::String& value) { SetHandler(value); return *this;}
192 
197  inline UpdateFunctionConfigurationRequest& WithHandler(Aws::String&& value) { SetHandler(value); return *this;}
198 
203  inline UpdateFunctionConfigurationRequest& WithHandler(const char* value) { SetHandler(value); return *this;}
204 
209  inline const Aws::String& GetDescription() const{ return m_description; }
210 
215  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
216 
221  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
222 
227  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
228 
233  inline UpdateFunctionConfigurationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
234 
239  inline UpdateFunctionConfigurationRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
240 
245  inline UpdateFunctionConfigurationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
246 
252  inline long GetTimeout() const{ return m_timeout; }
253 
259  inline void SetTimeout(long value) { m_timeoutHasBeenSet = true; m_timeout = value; }
260 
266  inline UpdateFunctionConfigurationRequest& WithTimeout(long value) { SetTimeout(value); return *this;}
267 
276  inline long GetMemorySize() const{ return m_memorySize; }
277 
286  inline void SetMemorySize(long value) { m_memorySizeHasBeenSet = true; m_memorySize = value; }
287 
296  inline UpdateFunctionConfigurationRequest& WithMemorySize(long value) { SetMemorySize(value); return *this;}
297 
298 
299  inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
300 
301 
302  inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
303 
304 
305  inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
306 
307 
308  inline UpdateFunctionConfigurationRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
309 
310 
311  inline UpdateFunctionConfigurationRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(value); return *this;}
312 
313 
314  inline const Runtime& GetRuntime() const{ return m_runtime; }
315 
316 
317  inline void SetRuntime(const Runtime& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
318 
319 
320  inline void SetRuntime(Runtime&& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
321 
322 
323  inline UpdateFunctionConfigurationRequest& WithRuntime(const Runtime& value) { SetRuntime(value); return *this;}
324 
325 
326  inline UpdateFunctionConfigurationRequest& WithRuntime(Runtime&& value) { SetRuntime(value); return *this;}
327 
328  private:
329  Aws::String m_functionName;
330  bool m_functionNameHasBeenSet;
331  Aws::String m_role;
332  bool m_roleHasBeenSet;
333  Aws::String m_handler;
334  bool m_handlerHasBeenSet;
335  Aws::String m_description;
336  bool m_descriptionHasBeenSet;
337  long m_timeout;
338  bool m_timeoutHasBeenSet;
339  long m_memorySize;
340  bool m_memorySizeHasBeenSet;
341  VpcConfig m_vpcConfig;
342  bool m_vpcConfigHasBeenSet;
343  Runtime m_runtime;
344  bool m_runtimeHasBeenSet;
345  };
346 
347 } // namespace Model
348 } // namespace Lambda
349 } // namespace Aws
UpdateFunctionConfigurationRequest & WithMemorySize(long value)
UpdateFunctionConfigurationRequest & WithRole(const char *value)
UpdateFunctionConfigurationRequest & WithDescription(Aws::String &&value)
UpdateFunctionConfigurationRequest & WithFunctionName(Aws::String &&value)
UpdateFunctionConfigurationRequest & WithFunctionName(const char *value)
UpdateFunctionConfigurationRequest & WithRuntime(Runtime &&value)
UpdateFunctionConfigurationRequest & WithHandler(Aws::String &&value)
UpdateFunctionConfigurationRequest & WithRuntime(const Runtime &value)
UpdateFunctionConfigurationRequest & WithVpcConfig(const VpcConfig &value)
UpdateFunctionConfigurationRequest & WithRole(const Aws::String &value)
UpdateFunctionConfigurationRequest & WithVpcConfig(VpcConfig &&value)
#define AWS_LAMBDA_API
UpdateFunctionConfigurationRequest & WithHandler(const Aws::String &value)
UpdateFunctionConfigurationRequest & WithTimeout(long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateFunctionConfigurationRequest & WithRole(Aws::String &&value)
UpdateFunctionConfigurationRequest & WithDescription(const Aws::String &value)
UpdateFunctionConfigurationRequest & WithFunctionName(const Aws::String &value)
UpdateFunctionConfigurationRequest & WithHandler(const char *value)
JSON (JavaScript Object Notation).
UpdateFunctionConfigurationRequest & WithDescription(const char *value)