AWS SDK for C++  0.14.3
AWS SDK for C++
UpdateFunctionCodeRequest.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
19 #include <aws/core/utils/Array.h>
20 
21 namespace Aws
22 {
23 namespace Lambda
24 {
25 namespace Model
26 {
27 
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 UpdateFunctionCodeRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
96 
107  inline UpdateFunctionCodeRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(value); return *this;}
108 
119  inline UpdateFunctionCodeRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
120 
129  inline const Aws::Utils::ByteBuffer& GetZipFile() const{ return m_zipFile; }
130 
139  inline void SetZipFile(const Aws::Utils::ByteBuffer& value) { m_zipFileHasBeenSet = true; m_zipFile = value; }
140 
149  inline void SetZipFile(Aws::Utils::ByteBuffer&& value) { m_zipFileHasBeenSet = true; m_zipFile = value; }
150 
159  inline UpdateFunctionCodeRequest& WithZipFile(const Aws::Utils::ByteBuffer& value) { SetZipFile(value); return *this;}
160 
169  inline UpdateFunctionCodeRequest& WithZipFile(Aws::Utils::ByteBuffer&& value) { SetZipFile(value); return *this;}
170 
176  inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
177 
183  inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
184 
190  inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
191 
197  inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
198 
204  inline UpdateFunctionCodeRequest& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
205 
211  inline UpdateFunctionCodeRequest& WithS3Bucket(Aws::String&& value) { SetS3Bucket(value); return *this;}
212 
218  inline UpdateFunctionCodeRequest& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
219 
224  inline const Aws::String& GetS3Key() const{ return m_s3Key; }
225 
230  inline void SetS3Key(const Aws::String& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
231 
236  inline void SetS3Key(Aws::String&& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
237 
242  inline void SetS3Key(const char* value) { m_s3KeyHasBeenSet = true; m_s3Key.assign(value); }
243 
248  inline UpdateFunctionCodeRequest& WithS3Key(const Aws::String& value) { SetS3Key(value); return *this;}
249 
254  inline UpdateFunctionCodeRequest& WithS3Key(Aws::String&& value) { SetS3Key(value); return *this;}
255 
260  inline UpdateFunctionCodeRequest& WithS3Key(const char* value) { SetS3Key(value); return *this;}
261 
265  inline const Aws::String& GetS3ObjectVersion() const{ return m_s3ObjectVersion; }
266 
270  inline void SetS3ObjectVersion(const Aws::String& value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion = value; }
271 
275  inline void SetS3ObjectVersion(Aws::String&& value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion = value; }
276 
280  inline void SetS3ObjectVersion(const char* value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion.assign(value); }
281 
285  inline UpdateFunctionCodeRequest& WithS3ObjectVersion(const Aws::String& value) { SetS3ObjectVersion(value); return *this;}
286 
290  inline UpdateFunctionCodeRequest& WithS3ObjectVersion(Aws::String&& value) { SetS3ObjectVersion(value); return *this;}
291 
295  inline UpdateFunctionCodeRequest& WithS3ObjectVersion(const char* value) { SetS3ObjectVersion(value); return *this;}
296 
301  inline bool GetPublish() const{ return m_publish; }
302 
307  inline void SetPublish(bool value) { m_publishHasBeenSet = true; m_publish = value; }
308 
313  inline UpdateFunctionCodeRequest& WithPublish(bool value) { SetPublish(value); return *this;}
314 
315  private:
316  Aws::String m_functionName;
317  bool m_functionNameHasBeenSet;
318  Aws::Utils::ByteBuffer m_zipFile;
319  bool m_zipFileHasBeenSet;
320  Aws::String m_s3Bucket;
321  bool m_s3BucketHasBeenSet;
322  Aws::String m_s3Key;
323  bool m_s3KeyHasBeenSet;
324  Aws::String m_s3ObjectVersion;
325  bool m_s3ObjectVersionHasBeenSet;
326  bool m_publish;
327  bool m_publishHasBeenSet;
328  };
329 
330 } // namespace Model
331 } // namespace Lambda
332 } // namespace Aws
const Aws::Utils::ByteBuffer & GetZipFile() const
UpdateFunctionCodeRequest & WithFunctionName(const Aws::String &value)
UpdateFunctionCodeRequest & WithS3Bucket(const char *value)
UpdateFunctionCodeRequest & WithS3Key(const Aws::String &value)
UpdateFunctionCodeRequest & WithFunctionName(Aws::String &&value)
UpdateFunctionCodeRequest & WithS3ObjectVersion(Aws::String &&value)
UpdateFunctionCodeRequest & WithPublish(bool value)
#define AWS_LAMBDA_API
UpdateFunctionCodeRequest & WithZipFile(const Aws::Utils::ByteBuffer &value)
UpdateFunctionCodeRequest & WithS3Key(Aws::String &&value)
UpdateFunctionCodeRequest & WithS3Bucket(const Aws::String &value)
UpdateFunctionCodeRequest & WithS3ObjectVersion(const char *value)
void SetZipFile(Aws::Utils::ByteBuffer &&value)
UpdateFunctionCodeRequest & WithS3Bucket(Aws::String &&value)
UpdateFunctionCodeRequest & WithS3Key(const char *value)
UpdateFunctionCodeRequest & WithS3ObjectVersion(const Aws::String &value)
void SetZipFile(const Aws::Utils::ByteBuffer &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateFunctionCodeRequest & WithFunctionName(const char *value)
UpdateFunctionCodeRequest & WithZipFile(Aws::Utils::ByteBuffer &&value)
JSON (JavaScript Object Notation).