AWS SDK for C++  0.12.9
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 
119  inline const Runtime& GetRuntime() const{ return m_runtime; }
120 
124  inline void SetRuntime(const Runtime& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
125 
129  inline void SetRuntime(Runtime&& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
130 
134  inline FunctionConfiguration& WithRuntime(const Runtime& value) { SetRuntime(value); return *this;}
135 
139  inline FunctionConfiguration& WithRuntime(Runtime&& value) { SetRuntime(value); return *this;}
140 
146  inline const Aws::String& GetRole() const{ return m_role; }
147 
153  inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
154 
160  inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = value; }
161 
167  inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
168 
174  inline FunctionConfiguration& WithRole(const Aws::String& value) { SetRole(value); return *this;}
175 
181  inline FunctionConfiguration& WithRole(Aws::String&& value) { SetRole(value); return *this;}
182 
188  inline FunctionConfiguration& WithRole(const char* value) { SetRole(value); return *this;}
189 
193  inline const Aws::String& GetHandler() const{ return m_handler; }
194 
198  inline void SetHandler(const Aws::String& value) { m_handlerHasBeenSet = true; m_handler = value; }
199 
203  inline void SetHandler(Aws::String&& value) { m_handlerHasBeenSet = true; m_handler = value; }
204 
208  inline void SetHandler(const char* value) { m_handlerHasBeenSet = true; m_handler.assign(value); }
209 
213  inline FunctionConfiguration& WithHandler(const Aws::String& value) { SetHandler(value); return *this;}
214 
218  inline FunctionConfiguration& WithHandler(Aws::String&& value) { SetHandler(value); return *this;}
219 
223  inline FunctionConfiguration& WithHandler(const char* value) { SetHandler(value); return *this;}
224 
228  inline long long GetCodeSize() const{ return m_codeSize; }
229 
233  inline void SetCodeSize(long long value) { m_codeSizeHasBeenSet = true; m_codeSize = value; }
234 
238  inline FunctionConfiguration& WithCodeSize(long long value) { SetCodeSize(value); return *this;}
239 
243  inline const Aws::String& GetDescription() const{ return m_description; }
244 
248  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
249 
253  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
254 
258  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
259 
263  inline FunctionConfiguration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
264 
268  inline FunctionConfiguration& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
269 
273  inline FunctionConfiguration& WithDescription(const char* value) { SetDescription(value); return *this;}
274 
280  inline long GetTimeout() const{ return m_timeout; }
281 
287  inline void SetTimeout(long value) { m_timeoutHasBeenSet = true; m_timeout = value; }
288 
294  inline FunctionConfiguration& WithTimeout(long value) { SetTimeout(value); return *this;}
295 
300  inline long GetMemorySize() const{ return m_memorySize; }
301 
306  inline void SetMemorySize(long value) { m_memorySizeHasBeenSet = true; m_memorySize = value; }
307 
312  inline FunctionConfiguration& WithMemorySize(long value) { SetMemorySize(value); return *this;}
313 
317  inline const Aws::String& GetLastModified() const{ return m_lastModified; }
318 
322  inline void SetLastModified(const Aws::String& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
323 
327  inline void SetLastModified(Aws::String&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
328 
332  inline void SetLastModified(const char* value) { m_lastModifiedHasBeenSet = true; m_lastModified.assign(value); }
333 
337  inline FunctionConfiguration& WithLastModified(const Aws::String& value) { SetLastModified(value); return *this;}
338 
342  inline FunctionConfiguration& WithLastModified(Aws::String&& value) { SetLastModified(value); return *this;}
343 
347  inline FunctionConfiguration& WithLastModified(const char* value) { SetLastModified(value); return *this;}
348 
352  inline const Aws::String& GetCodeSha256() const{ return m_codeSha256; }
353 
357  inline void SetCodeSha256(const Aws::String& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = value; }
358 
362  inline void SetCodeSha256(Aws::String&& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = value; }
363 
367  inline void SetCodeSha256(const char* value) { m_codeSha256HasBeenSet = true; m_codeSha256.assign(value); }
368 
372  inline FunctionConfiguration& WithCodeSha256(const Aws::String& value) { SetCodeSha256(value); return *this;}
373 
377  inline FunctionConfiguration& WithCodeSha256(Aws::String&& value) { SetCodeSha256(value); return *this;}
378 
382  inline FunctionConfiguration& WithCodeSha256(const char* value) { SetCodeSha256(value); return *this;}
383 
387  inline const Aws::String& GetVersion() const{ return m_version; }
388 
392  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
393 
397  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = value; }
398 
402  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
403 
407  inline FunctionConfiguration& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
408 
412  inline FunctionConfiguration& WithVersion(Aws::String&& value) { SetVersion(value); return *this;}
413 
417  inline FunctionConfiguration& WithVersion(const char* value) { SetVersion(value); return *this;}
418 
422  inline const VpcConfigResponse& GetVpcConfig() const{ return m_vpcConfig; }
423 
427  inline void SetVpcConfig(const VpcConfigResponse& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
428 
432  inline void SetVpcConfig(VpcConfigResponse&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
433 
437  inline FunctionConfiguration& WithVpcConfig(const VpcConfigResponse& value) { SetVpcConfig(value); return *this;}
438 
442  inline FunctionConfiguration& WithVpcConfig(VpcConfigResponse&& value) { SetVpcConfig(value); return *this;}
443 
444  private:
445  Aws::String m_functionName;
446  bool m_functionNameHasBeenSet;
447  Aws::String m_functionArn;
448  bool m_functionArnHasBeenSet;
449  Runtime m_runtime;
450  bool m_runtimeHasBeenSet;
451  Aws::String m_role;
452  bool m_roleHasBeenSet;
453  Aws::String m_handler;
454  bool m_handlerHasBeenSet;
455  long long m_codeSize;
456  bool m_codeSizeHasBeenSet;
457  Aws::String m_description;
458  bool m_descriptionHasBeenSet;
459  long m_timeout;
460  bool m_timeoutHasBeenSet;
461  long m_memorySize;
462  bool m_memorySizeHasBeenSet;
463  Aws::String m_lastModified;
464  bool m_lastModifiedHasBeenSet;
465  Aws::String m_codeSha256;
466  bool m_codeSha256HasBeenSet;
467  Aws::String m_version;
468  bool m_versionHasBeenSet;
469  VpcConfigResponse m_vpcConfig;
470  bool m_vpcConfigHasBeenSet;
471  };
472 
473 } // namespace Model
474 } // namespace Lambda
475 } // 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 & WithMemorySize(long 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 & WithHandler(const Aws::String &value)
const VpcConfigResponse & GetVpcConfig() const
FunctionConfiguration & WithFunctionName(const char *value)
#define AWS_LAMBDA_API
FunctionConfiguration & WithTimeout(long value)
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)
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)