AWS SDK for C++  0.12.9
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 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
46  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
47 
58  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
59 
70  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
71 
82  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
83 
94  inline UpdateFunctionCodeRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
95 
106  inline UpdateFunctionCodeRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(value); return *this;}
107 
118  inline UpdateFunctionCodeRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
119 
123  inline const Aws::Utils::ByteBuffer& GetZipFile() const{ return m_zipFile; }
124 
128  inline void SetZipFile(const Aws::Utils::ByteBuffer& value) { m_zipFileHasBeenSet = true; m_zipFile = value; }
129 
133  inline void SetZipFile(Aws::Utils::ByteBuffer&& value) { m_zipFileHasBeenSet = true; m_zipFile = value; }
134 
138  inline UpdateFunctionCodeRequest& WithZipFile(const Aws::Utils::ByteBuffer& value) { SetZipFile(value); return *this;}
139 
143  inline UpdateFunctionCodeRequest& WithZipFile(Aws::Utils::ByteBuffer&& value) { SetZipFile(value); return *this;}
144 
150  inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
151 
157  inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
158 
164  inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
165 
171  inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
172 
178  inline UpdateFunctionCodeRequest& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
179 
185  inline UpdateFunctionCodeRequest& WithS3Bucket(Aws::String&& value) { SetS3Bucket(value); return *this;}
186 
192  inline UpdateFunctionCodeRequest& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
193 
198  inline const Aws::String& GetS3Key() const{ return m_s3Key; }
199 
204  inline void SetS3Key(const Aws::String& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
205 
210  inline void SetS3Key(Aws::String&& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
211 
216  inline void SetS3Key(const char* value) { m_s3KeyHasBeenSet = true; m_s3Key.assign(value); }
217 
222  inline UpdateFunctionCodeRequest& WithS3Key(const Aws::String& value) { SetS3Key(value); return *this;}
223 
228  inline UpdateFunctionCodeRequest& WithS3Key(Aws::String&& value) { SetS3Key(value); return *this;}
229 
234  inline UpdateFunctionCodeRequest& WithS3Key(const char* value) { SetS3Key(value); return *this;}
235 
239  inline const Aws::String& GetS3ObjectVersion() const{ return m_s3ObjectVersion; }
240 
244  inline void SetS3ObjectVersion(const Aws::String& value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion = value; }
245 
249  inline void SetS3ObjectVersion(Aws::String&& value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion = value; }
250 
254  inline void SetS3ObjectVersion(const char* value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion.assign(value); }
255 
259  inline UpdateFunctionCodeRequest& WithS3ObjectVersion(const Aws::String& value) { SetS3ObjectVersion(value); return *this;}
260 
264  inline UpdateFunctionCodeRequest& WithS3ObjectVersion(Aws::String&& value) { SetS3ObjectVersion(value); return *this;}
265 
269  inline UpdateFunctionCodeRequest& WithS3ObjectVersion(const char* value) { SetS3ObjectVersion(value); return *this;}
270 
275  inline bool GetPublish() const{ return m_publish; }
276 
281  inline void SetPublish(bool value) { m_publishHasBeenSet = true; m_publish = value; }
282 
287  inline UpdateFunctionCodeRequest& WithPublish(bool value) { SetPublish(value); return *this;}
288 
289  private:
290  Aws::String m_functionName;
291  bool m_functionNameHasBeenSet;
292  Aws::Utils::ByteBuffer m_zipFile;
293  bool m_zipFileHasBeenSet;
294  Aws::String m_s3Bucket;
295  bool m_s3BucketHasBeenSet;
296  Aws::String m_s3Key;
297  bool m_s3KeyHasBeenSet;
298  Aws::String m_s3ObjectVersion;
299  bool m_s3ObjectVersionHasBeenSet;
300  bool m_publish;
301  bool m_publishHasBeenSet;
302  };
303 
304 } // namespace Model
305 } // namespace Lambda
306 } // 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).