AWS SDK for C++  0.14.3
AWS SDK for C++
FunctionConfiguration.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace Lambda
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  FunctionConfiguration& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
50 
54  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
55 
59  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
60 
64  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
65 
69  inline FunctionConfiguration& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
70 
74  inline FunctionConfiguration& WithFunctionName(Aws::String&& value) { SetFunctionName(value); return *this;}
75 
79  inline FunctionConfiguration& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
80 
84  inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
85 
89  inline void SetFunctionArn(const Aws::String& value) { m_functionArnHasBeenSet = true; m_functionArn = value; }
90 
94  inline void SetFunctionArn(Aws::String&& value) { m_functionArnHasBeenSet = true; m_functionArn = value; }
95 
99  inline void SetFunctionArn(const char* value) { m_functionArnHasBeenSet = true; m_functionArn.assign(value); }
100 
104  inline FunctionConfiguration& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
105 
109  inline FunctionConfiguration& WithFunctionArn(Aws::String&& value) { SetFunctionArn(value); return *this;}
110 
114  inline FunctionConfiguration& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
115 
121  inline const Runtime& GetRuntime() const{ return m_runtime; }
122 
128  inline void SetRuntime(const Runtime& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
129 
135  inline void SetRuntime(Runtime&& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
136 
142  inline FunctionConfiguration& WithRuntime(const Runtime& value) { SetRuntime(value); return *this;}
143 
149  inline FunctionConfiguration& WithRuntime(Runtime&& value) { SetRuntime(value); return *this;}
150 
156  inline const Aws::String& GetRole() const{ return m_role; }
157 
163  inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
164 
170  inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = value; }
171 
177  inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
178 
184  inline FunctionConfiguration& WithRole(const Aws::String& value) { SetRole(value); return *this;}
185 
191  inline FunctionConfiguration& WithRole(Aws::String&& value) { SetRole(value); return *this;}
192 
198  inline FunctionConfiguration& WithRole(const char* value) { SetRole(value); return *this;}
199 
203  inline const Aws::String& GetHandler() const{ return m_handler; }
204 
208  inline void SetHandler(const Aws::String& value) { m_handlerHasBeenSet = true; m_handler = value; }
209 
213  inline void SetHandler(Aws::String&& value) { m_handlerHasBeenSet = true; m_handler = value; }
214 
218  inline void SetHandler(const char* value) { m_handlerHasBeenSet = true; m_handler.assign(value); }
219 
223  inline FunctionConfiguration& WithHandler(const Aws::String& value) { SetHandler(value); return *this;}
224 
228  inline FunctionConfiguration& WithHandler(Aws::String&& value) { SetHandler(value); return *this;}
229 
233  inline FunctionConfiguration& WithHandler(const char* value) { SetHandler(value); return *this;}
234 
238  inline long long GetCodeSize() const{ return m_codeSize; }
239 
243  inline void SetCodeSize(long long value) { m_codeSizeHasBeenSet = true; m_codeSize = value; }
244 
248  inline FunctionConfiguration& WithCodeSize(long long value) { SetCodeSize(value); return *this;}
249 
253  inline const Aws::String& GetDescription() const{ return m_description; }
254 
258  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
259 
263  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
264 
268  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
269 
273  inline FunctionConfiguration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
274 
278  inline FunctionConfiguration& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
279 
283  inline FunctionConfiguration& WithDescription(const char* value) { SetDescription(value); return *this;}
284 
290  inline int GetTimeout() const{ return m_timeout; }
291 
297  inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
298 
304  inline FunctionConfiguration& WithTimeout(int value) { SetTimeout(value); return *this;}
305 
310  inline int GetMemorySize() const{ return m_memorySize; }
311 
316  inline void SetMemorySize(int value) { m_memorySizeHasBeenSet = true; m_memorySize = value; }
317 
322  inline FunctionConfiguration& WithMemorySize(int value) { SetMemorySize(value); return *this;}
323 
327  inline const Aws::String& GetLastModified() const{ return m_lastModified; }
328 
332  inline void SetLastModified(const Aws::String& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
333 
337  inline void SetLastModified(Aws::String&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
338 
342  inline void SetLastModified(const char* value) { m_lastModifiedHasBeenSet = true; m_lastModified.assign(value); }
343 
347  inline FunctionConfiguration& WithLastModified(const Aws::String& value) { SetLastModified(value); return *this;}
348 
352  inline FunctionConfiguration& WithLastModified(Aws::String&& value) { SetLastModified(value); return *this;}
353 
357  inline FunctionConfiguration& WithLastModified(const char* value) { SetLastModified(value); return *this;}
358 
362  inline const Aws::String& GetCodeSha256() const{ return m_codeSha256; }
363 
367  inline void SetCodeSha256(const Aws::String& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = value; }
368 
372  inline void SetCodeSha256(Aws::String&& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = value; }
373 
377  inline void SetCodeSha256(const char* value) { m_codeSha256HasBeenSet = true; m_codeSha256.assign(value); }
378 
382  inline FunctionConfiguration& WithCodeSha256(const Aws::String& value) { SetCodeSha256(value); return *this;}
383 
387  inline FunctionConfiguration& WithCodeSha256(Aws::String&& value) { SetCodeSha256(value); return *this;}
388 
392  inline FunctionConfiguration& WithCodeSha256(const char* value) { SetCodeSha256(value); return *this;}
393 
397  inline const Aws::String& GetVersion() const{ return m_version; }
398 
402  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
403 
407  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = value; }
408 
412  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
413 
417  inline FunctionConfiguration& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
418 
422  inline FunctionConfiguration& WithVersion(Aws::String&& value) { SetVersion(value); return *this;}
423 
427  inline FunctionConfiguration& WithVersion(const char* value) { SetVersion(value); return *this;}
428 
432  inline const VpcConfigResponse& GetVpcConfig() const{ return m_vpcConfig; }
433 
437  inline void SetVpcConfig(const VpcConfigResponse& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
438 
442  inline void SetVpcConfig(VpcConfigResponse&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
443 
447  inline FunctionConfiguration& WithVpcConfig(const VpcConfigResponse& value) { SetVpcConfig(value); return *this;}
448 
452  inline FunctionConfiguration& WithVpcConfig(VpcConfigResponse&& value) { SetVpcConfig(value); return *this;}
453 
454  private:
455  Aws::String m_functionName;
456  bool m_functionNameHasBeenSet;
457  Aws::String m_functionArn;
458  bool m_functionArnHasBeenSet;
459  Runtime m_runtime;
460  bool m_runtimeHasBeenSet;
461  Aws::String m_role;
462  bool m_roleHasBeenSet;
463  Aws::String m_handler;
464  bool m_handlerHasBeenSet;
465  long long m_codeSize;
466  bool m_codeSizeHasBeenSet;
467  Aws::String m_description;
468  bool m_descriptionHasBeenSet;
469  int m_timeout;
470  bool m_timeoutHasBeenSet;
471  int m_memorySize;
472  bool m_memorySizeHasBeenSet;
473  Aws::String m_lastModified;
474  bool m_lastModifiedHasBeenSet;
475  Aws::String m_codeSha256;
476  bool m_codeSha256HasBeenSet;
477  Aws::String m_version;
478  bool m_versionHasBeenSet;
479  VpcConfigResponse m_vpcConfig;
480  bool m_vpcConfigHasBeenSet;
481  };
482 
483 } // namespace Model
484 } // namespace Lambda
485 } // namespace Aws
FunctionConfiguration & WithRole(Aws::String &&value)
void SetLastModified(const Aws::String &value)
FunctionConfiguration & WithLastModified(const char *value)
FunctionConfiguration & WithDescription(const Aws::String &value)
FunctionConfiguration & WithDescription(Aws::String &&value)
FunctionConfiguration & WithVpcConfig(const VpcConfigResponse &value)
void SetVpcConfig(const VpcConfigResponse &value)
FunctionConfiguration & WithVersion(const Aws::String &value)
FunctionConfiguration & WithCodeSha256(Aws::String &&value)
FunctionConfiguration & WithDescription(const char *value)
FunctionConfiguration & WithMemorySize(int value)
FunctionConfiguration & WithHandler(const Aws::String &value)
const VpcConfigResponse & GetVpcConfig() const
FunctionConfiguration & WithFunctionName(const char *value)
#define AWS_LAMBDA_API
FunctionConfiguration & WithCodeSha256(const Aws::String &value)
FunctionConfiguration & WithCodeSha256(const char *value)
FunctionConfiguration & WithHandler(Aws::String &&value)
FunctionConfiguration & WithRole(const char *value)
void SetFunctionArn(const Aws::String &value)
FunctionConfiguration & WithRuntime(const Runtime &value)
FunctionConfiguration & WithCodeSize(long long value)
FunctionConfiguration & WithFunctionName(const Aws::String &value)
FunctionConfiguration & WithLastModified(const Aws::String &value)
const Aws::String & GetFunctionName() const
FunctionConfiguration & WithFunctionArn(Aws::String &&value)
FunctionConfiguration & WithFunctionArn(const char *value)
FunctionConfiguration & WithVersion(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
FunctionConfiguration & WithVersion(const char *value)
FunctionConfiguration & WithHandler(const char *value)
FunctionConfiguration & WithRuntime(Runtime &&value)
void SetDescription(const Aws::String &value)
FunctionConfiguration & WithVpcConfig(VpcConfigResponse &&value)
FunctionConfiguration & WithFunctionArn(const Aws::String &value)
void SetFunctionName(const Aws::String &value)
FunctionConfiguration & WithTimeout(int value)
void SetVpcConfig(VpcConfigResponse &&value)
FunctionConfiguration & WithRole(const Aws::String &value)
JSON (JavaScript Object Notation).
void SetCodeSha256(const Aws::String &value)
FunctionConfiguration & WithLastModified(Aws::String &&value)
FunctionConfiguration & WithFunctionName(Aws::String &&value)