AWS SDK for C++  0.14.3
AWS SDK for C++
CreateFunctionResult.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 CreateFunctionResult& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
71 
75  inline CreateFunctionResult& WithFunctionName(Aws::String&& value) { SetFunctionName(value); return *this;}
76 
80  inline CreateFunctionResult& 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 CreateFunctionResult& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
106 
110  inline CreateFunctionResult& WithFunctionArn(Aws::String&& value) { SetFunctionArn(value); return *this;}
111 
115  inline CreateFunctionResult& 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 CreateFunctionResult& WithRuntime(const Runtime& value) { SetRuntime(value); return *this;}
144 
150  inline CreateFunctionResult& 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 CreateFunctionResult& WithRole(const Aws::String& value) { SetRole(value); return *this;}
186 
192  inline CreateFunctionResult& WithRole(Aws::String&& value) { SetRole(value); return *this;}
193 
199  inline CreateFunctionResult& 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 CreateFunctionResult& WithHandler(const Aws::String& value) { SetHandler(value); return *this;}
225 
229  inline CreateFunctionResult& WithHandler(Aws::String&& value) { SetHandler(value); return *this;}
230 
234  inline CreateFunctionResult& 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 CreateFunctionResult& 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 CreateFunctionResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
275 
279  inline CreateFunctionResult& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
280 
284  inline CreateFunctionResult& 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 CreateFunctionResult& 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 CreateFunctionResult& 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 CreateFunctionResult& WithLastModified(const Aws::String& value) { SetLastModified(value); return *this;}
349 
353  inline CreateFunctionResult& WithLastModified(Aws::String&& value) { SetLastModified(value); return *this;}
354 
358  inline CreateFunctionResult& 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 CreateFunctionResult& WithCodeSha256(const Aws::String& value) { SetCodeSha256(value); return *this;}
384 
388  inline CreateFunctionResult& WithCodeSha256(Aws::String&& value) { SetCodeSha256(value); return *this;}
389 
393  inline CreateFunctionResult& 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 CreateFunctionResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
419 
423  inline CreateFunctionResult& WithVersion(Aws::String&& value) { SetVersion(value); return *this;}
424 
428  inline CreateFunctionResult& 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 CreateFunctionResult& WithVpcConfig(const VpcConfigResponse& value) { SetVpcConfig(value); return *this;}
449 
453  inline CreateFunctionResult& 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
CreateFunctionResult & WithFunctionName(Aws::String &&value)
CreateFunctionResult & WithFunctionArn(const char *value)
CreateFunctionResult & WithRole(const char *value)
CreateFunctionResult & WithHandler(const Aws::String &value)
CreateFunctionResult & WithHandler(Aws::String &&value)
void SetVpcConfig(VpcConfigResponse &&value)
CreateFunctionResult & WithRuntime(const Runtime &value)
CreateFunctionResult & WithDescription(const char *value)
CreateFunctionResult & WithHandler(const char *value)
CreateFunctionResult & WithCodeSize(long long value)
void SetFunctionName(const Aws::String &value)
CreateFunctionResult & WithMemorySize(int value)
CreateFunctionResult & WithVersion(Aws::String &&value)
void SetDescription(const Aws::String &value)
CreateFunctionResult & WithFunctionName(const char *value)
CreateFunctionResult & WithVpcConfig(const VpcConfigResponse &value)
const Aws::String & GetDescription() const
CreateFunctionResult & WithLastModified(Aws::String &&value)
#define AWS_LAMBDA_API
void SetVersion(const Aws::String &value)
const Aws::String & GetLastModified() const
CreateFunctionResult & WithFunctionName(const Aws::String &value)
const Aws::String & GetFunctionName() const
CreateFunctionResult & WithDescription(const Aws::String &value)
const Aws::String & GetFunctionArn() const
CreateFunctionResult & WithVersion(const Aws::String &value)
const VpcConfigResponse & GetVpcConfig() const
const Aws::String & GetCodeSha256() const
CreateFunctionResult & WithCodeSha256(const char *value)
CreateFunctionResult & WithVpcConfig(VpcConfigResponse &&value)
CreateFunctionResult & WithVersion(const char *value)
void SetCodeSha256(const Aws::String &value)
CreateFunctionResult & WithCodeSha256(const Aws::String &value)
CreateFunctionResult & WithRuntime(Runtime &&value)
void SetRole(const Aws::String &value)
CreateFunctionResult & WithFunctionArn(const Aws::String &value)
CreateFunctionResult & WithRole(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateFunctionResult & WithLastModified(const Aws::String &value)
void SetFunctionArn(const Aws::String &value)
CreateFunctionResult & WithTimeout(int value)
CreateFunctionResult & WithCodeSha256(Aws::String &&value)
CreateFunctionResult & WithFunctionArn(Aws::String &&value)
CreateFunctionResult & WithLastModified(const char *value)
void SetHandler(const Aws::String &value)
CreateFunctionResult & WithRole(const Aws::String &value)
void SetLastModified(const Aws::String &value)
void SetVpcConfig(const VpcConfigResponse &value)
JSON (JavaScript Object Notation).
CreateFunctionResult & WithDescription(Aws::String &&value)