AWS SDK for C++  0.14.3
AWS SDK for C++
GetFunctionConfigurationResult.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 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace Lambda
34 {
35 namespace Model
36 {
41  {
42  public:
46 
50  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
51 
55  inline void SetFunctionName(const Aws::String& value) { m_functionName = value; }
56 
60  inline void SetFunctionName(Aws::String&& value) { m_functionName = value; }
61 
65  inline void SetFunctionName(const char* value) { m_functionName.assign(value); }
66 
70  inline GetFunctionConfigurationResult& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
71 
75  inline GetFunctionConfigurationResult& WithFunctionName(Aws::String&& value) { SetFunctionName(value); return *this;}
76 
80  inline GetFunctionConfigurationResult& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
81 
85  inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
86 
90  inline void SetFunctionArn(const Aws::String& value) { m_functionArn = value; }
91 
95  inline void SetFunctionArn(Aws::String&& value) { m_functionArn = value; }
96 
100  inline void SetFunctionArn(const char* value) { m_functionArn.assign(value); }
101 
105  inline GetFunctionConfigurationResult& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
106 
110  inline GetFunctionConfigurationResult& WithFunctionArn(Aws::String&& value) { SetFunctionArn(value); return *this;}
111 
115  inline GetFunctionConfigurationResult& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
116 
122  inline const Runtime& GetRuntime() const{ return m_runtime; }
123 
129  inline void SetRuntime(const Runtime& value) { m_runtime = value; }
130 
136  inline void SetRuntime(Runtime&& value) { m_runtime = value; }
137 
143  inline GetFunctionConfigurationResult& WithRuntime(const Runtime& value) { SetRuntime(value); return *this;}
144 
150  inline GetFunctionConfigurationResult& WithRuntime(Runtime&& value) { SetRuntime(value); return *this;}
151 
157  inline const Aws::String& GetRole() const{ return m_role; }
158 
164  inline void SetRole(const Aws::String& value) { m_role = value; }
165 
171  inline void SetRole(Aws::String&& value) { m_role = value; }
172 
178  inline void SetRole(const char* value) { m_role.assign(value); }
179 
185  inline GetFunctionConfigurationResult& WithRole(const Aws::String& value) { SetRole(value); return *this;}
186 
192  inline GetFunctionConfigurationResult& WithRole(Aws::String&& value) { SetRole(value); return *this;}
193 
199  inline GetFunctionConfigurationResult& WithRole(const char* value) { SetRole(value); return *this;}
200 
204  inline const Aws::String& GetHandler() const{ return m_handler; }
205 
209  inline void SetHandler(const Aws::String& value) { m_handler = value; }
210 
214  inline void SetHandler(Aws::String&& value) { m_handler = value; }
215 
219  inline void SetHandler(const char* value) { m_handler.assign(value); }
220 
224  inline GetFunctionConfigurationResult& WithHandler(const Aws::String& value) { SetHandler(value); return *this;}
225 
229  inline GetFunctionConfigurationResult& WithHandler(Aws::String&& value) { SetHandler(value); return *this;}
230 
234  inline GetFunctionConfigurationResult& WithHandler(const char* value) { SetHandler(value); return *this;}
235 
239  inline long long GetCodeSize() const{ return m_codeSize; }
240 
244  inline void SetCodeSize(long long value) { m_codeSize = value; }
245 
249  inline GetFunctionConfigurationResult& WithCodeSize(long long value) { SetCodeSize(value); return *this;}
250 
254  inline const Aws::String& GetDescription() const{ return m_description; }
255 
259  inline void SetDescription(const Aws::String& value) { m_description = value; }
260 
264  inline void SetDescription(Aws::String&& value) { m_description = value; }
265 
269  inline void SetDescription(const char* value) { m_description.assign(value); }
270 
274  inline GetFunctionConfigurationResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
275 
279  inline GetFunctionConfigurationResult& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
280 
284  inline GetFunctionConfigurationResult& WithDescription(const char* value) { SetDescription(value); return *this;}
285 
291  inline int GetTimeout() const{ return m_timeout; }
292 
298  inline void SetTimeout(int value) { m_timeout = value; }
299 
305  inline GetFunctionConfigurationResult& WithTimeout(int value) { SetTimeout(value); return *this;}
306 
311  inline int GetMemorySize() const{ return m_memorySize; }
312 
317  inline void SetMemorySize(int value) { m_memorySize = value; }
318 
323  inline GetFunctionConfigurationResult& WithMemorySize(int value) { SetMemorySize(value); return *this;}
324 
328  inline const Aws::String& GetLastModified() const{ return m_lastModified; }
329 
333  inline void SetLastModified(const Aws::String& value) { m_lastModified = value; }
334 
338  inline void SetLastModified(Aws::String&& value) { m_lastModified = value; }
339 
343  inline void SetLastModified(const char* value) { m_lastModified.assign(value); }
344 
348  inline GetFunctionConfigurationResult& WithLastModified(const Aws::String& value) { SetLastModified(value); return *this;}
349 
353  inline GetFunctionConfigurationResult& WithLastModified(Aws::String&& value) { SetLastModified(value); return *this;}
354 
358  inline GetFunctionConfigurationResult& WithLastModified(const char* value) { SetLastModified(value); return *this;}
359 
363  inline const Aws::String& GetCodeSha256() const{ return m_codeSha256; }
364 
368  inline void SetCodeSha256(const Aws::String& value) { m_codeSha256 = value; }
369 
373  inline void SetCodeSha256(Aws::String&& value) { m_codeSha256 = value; }
374 
378  inline void SetCodeSha256(const char* value) { m_codeSha256.assign(value); }
379 
383  inline GetFunctionConfigurationResult& WithCodeSha256(const Aws::String& value) { SetCodeSha256(value); return *this;}
384 
388  inline GetFunctionConfigurationResult& WithCodeSha256(Aws::String&& value) { SetCodeSha256(value); return *this;}
389 
393  inline GetFunctionConfigurationResult& WithCodeSha256(const char* value) { SetCodeSha256(value); return *this;}
394 
398  inline const Aws::String& GetVersion() const{ return m_version; }
399 
403  inline void SetVersion(const Aws::String& value) { m_version = value; }
404 
408  inline void SetVersion(Aws::String&& value) { m_version = value; }
409 
413  inline void SetVersion(const char* value) { m_version.assign(value); }
414 
418  inline GetFunctionConfigurationResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
419 
423  inline GetFunctionConfigurationResult& WithVersion(Aws::String&& value) { SetVersion(value); return *this;}
424 
428  inline GetFunctionConfigurationResult& WithVersion(const char* value) { SetVersion(value); return *this;}
429 
433  inline const VpcConfigResponse& GetVpcConfig() const{ return m_vpcConfig; }
434 
438  inline void SetVpcConfig(const VpcConfigResponse& value) { m_vpcConfig = value; }
439 
443  inline void SetVpcConfig(VpcConfigResponse&& value) { m_vpcConfig = value; }
444 
448  inline GetFunctionConfigurationResult& WithVpcConfig(const VpcConfigResponse& value) { SetVpcConfig(value); return *this;}
449 
453  inline GetFunctionConfigurationResult& WithVpcConfig(VpcConfigResponse&& value) { SetVpcConfig(value); return *this;}
454 
455  private:
456  Aws::String m_functionName;
457  Aws::String m_functionArn;
458  Runtime m_runtime;
459  Aws::String m_role;
460  Aws::String m_handler;
461  long long m_codeSize;
462  Aws::String m_description;
463  int m_timeout;
464  int m_memorySize;
465  Aws::String m_lastModified;
466  Aws::String m_codeSha256;
467  Aws::String m_version;
468  VpcConfigResponse m_vpcConfig;
469  };
470 
471 } // namespace Model
472 } // namespace Lambda
473 } // namespace Aws
GetFunctionConfigurationResult & WithRuntime(Runtime &&value)
GetFunctionConfigurationResult & WithCodeSha256(Aws::String &&value)
GetFunctionConfigurationResult & WithHandler(const Aws::String &value)
GetFunctionConfigurationResult & WithFunctionName(const Aws::String &value)
GetFunctionConfigurationResult & WithCodeSha256(const Aws::String &value)
GetFunctionConfigurationResult & WithFunctionName(const char *value)
GetFunctionConfigurationResult & WithFunctionArn(const Aws::String &value)
GetFunctionConfigurationResult & WithFunctionArn(const char *value)
GetFunctionConfigurationResult & WithHandler(const char *value)
GetFunctionConfigurationResult & WithTimeout(int value)
GetFunctionConfigurationResult & WithDescription(const char *value)
GetFunctionConfigurationResult & WithLastModified(Aws::String &&value)
GetFunctionConfigurationResult & WithFunctionName(Aws::String &&value)
#define AWS_LAMBDA_API
GetFunctionConfigurationResult & WithRole(Aws::String &&value)
GetFunctionConfigurationResult & WithRole(const Aws::String &value)
GetFunctionConfigurationResult & WithDescription(const Aws::String &value)
GetFunctionConfigurationResult & WithRole(const char *value)
GetFunctionConfigurationResult & WithVpcConfig(const VpcConfigResponse &value)
GetFunctionConfigurationResult & WithVersion(const char *value)
GetFunctionConfigurationResult & WithVpcConfig(VpcConfigResponse &&value)
GetFunctionConfigurationResult & WithCodeSize(long long value)
GetFunctionConfigurationResult & WithVersion(Aws::String &&value)
GetFunctionConfigurationResult & WithDescription(Aws::String &&value)
GetFunctionConfigurationResult & WithHandler(Aws::String &&value)
GetFunctionConfigurationResult & WithLastModified(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetFunctionConfigurationResult & WithVersion(const Aws::String &value)
GetFunctionConfigurationResult & WithRuntime(const Runtime &value)
GetFunctionConfigurationResult & WithMemorySize(int value)
GetFunctionConfigurationResult & WithLastModified(const char *value)
GetFunctionConfigurationResult & WithCodeSha256(const char *value)
JSON (JavaScript Object Notation).
GetFunctionConfigurationResult & WithFunctionArn(Aws::String &&value)