AWS SDK for C++  0.12.9
AWS SDK for C++
FunctionCode.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
17 #include <aws/core/utils/Array.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace Lambda
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  FunctionCode();
41  FunctionCode(const Aws::Utils::Json::JsonValue& jsonValue);
42  FunctionCode& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
53  inline const Aws::Utils::ByteBuffer& GetZipFile() const{ return m_zipFile; }
54 
63  inline void SetZipFile(const Aws::Utils::ByteBuffer& value) { m_zipFileHasBeenSet = true; m_zipFile = value; }
64 
73  inline void SetZipFile(Aws::Utils::ByteBuffer&& value) { m_zipFileHasBeenSet = true; m_zipFile = value; }
74 
83  inline FunctionCode& WithZipFile(const Aws::Utils::ByteBuffer& value) { SetZipFile(value); return *this;}
84 
93  inline FunctionCode& WithZipFile(Aws::Utils::ByteBuffer&& value) { SetZipFile(value); return *this;}
94 
100  inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
101 
107  inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
108 
114  inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
115 
121  inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
122 
128  inline FunctionCode& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
129 
135  inline FunctionCode& WithS3Bucket(Aws::String&& value) { SetS3Bucket(value); return *this;}
136 
142  inline FunctionCode& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
143 
148  inline const Aws::String& GetS3Key() const{ return m_s3Key; }
149 
154  inline void SetS3Key(const Aws::String& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
155 
160  inline void SetS3Key(Aws::String&& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
161 
166  inline void SetS3Key(const char* value) { m_s3KeyHasBeenSet = true; m_s3Key.assign(value); }
167 
172  inline FunctionCode& WithS3Key(const Aws::String& value) { SetS3Key(value); return *this;}
173 
178  inline FunctionCode& WithS3Key(Aws::String&& value) { SetS3Key(value); return *this;}
179 
184  inline FunctionCode& WithS3Key(const char* value) { SetS3Key(value); return *this;}
185 
189  inline const Aws::String& GetS3ObjectVersion() const{ return m_s3ObjectVersion; }
190 
194  inline void SetS3ObjectVersion(const Aws::String& value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion = value; }
195 
199  inline void SetS3ObjectVersion(Aws::String&& value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion = value; }
200 
204  inline void SetS3ObjectVersion(const char* value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion.assign(value); }
205 
209  inline FunctionCode& WithS3ObjectVersion(const Aws::String& value) { SetS3ObjectVersion(value); return *this;}
210 
214  inline FunctionCode& WithS3ObjectVersion(Aws::String&& value) { SetS3ObjectVersion(value); return *this;}
215 
219  inline FunctionCode& WithS3ObjectVersion(const char* value) { SetS3ObjectVersion(value); return *this;}
220 
221  private:
222  Aws::Utils::ByteBuffer m_zipFile;
223  bool m_zipFileHasBeenSet;
224  Aws::String m_s3Bucket;
225  bool m_s3BucketHasBeenSet;
226  Aws::String m_s3Key;
227  bool m_s3KeyHasBeenSet;
228  Aws::String m_s3ObjectVersion;
229  bool m_s3ObjectVersionHasBeenSet;
230  };
231 
232 } // namespace Model
233 } // namespace Lambda
234 } // namespace Aws
FunctionCode & WithS3ObjectVersion(Aws::String &&value)
Definition: FunctionCode.h:214
const Aws::Utils::ByteBuffer & GetZipFile() const
Definition: FunctionCode.h:53
FunctionCode & WithS3Key(Aws::String &&value)
Definition: FunctionCode.h:178
FunctionCode & WithS3Key(const Aws::String &value)
Definition: FunctionCode.h:172
void SetS3Bucket(const Aws::String &value)
Definition: FunctionCode.h:107
FunctionCode & WithZipFile(const Aws::Utils::ByteBuffer &value)
Definition: FunctionCode.h:83
FunctionCode & WithS3Bucket(Aws::String &&value)
Definition: FunctionCode.h:135
FunctionCode & WithS3Key(const char *value)
Definition: FunctionCode.h:184
void SetS3ObjectVersion(const char *value)
Definition: FunctionCode.h:204
void SetS3Key(const Aws::String &value)
Definition: FunctionCode.h:154
#define AWS_LAMBDA_API
FunctionCode & WithS3ObjectVersion(const Aws::String &value)
Definition: FunctionCode.h:209
FunctionCode & WithS3ObjectVersion(const char *value)
Definition: FunctionCode.h:219
void SetZipFile(const Aws::Utils::ByteBuffer &value)
Definition: FunctionCode.h:63
void SetS3Bucket(Aws::String &&value)
Definition: FunctionCode.h:114
const Aws::String & GetS3Key() const
Definition: FunctionCode.h:148
void SetS3ObjectVersion(const Aws::String &value)
Definition: FunctionCode.h:194
FunctionCode & WithZipFile(Aws::Utils::ByteBuffer &&value)
Definition: FunctionCode.h:93
const Aws::String & GetS3Bucket() const
Definition: FunctionCode.h:100
void SetS3ObjectVersion(Aws::String &&value)
Definition: FunctionCode.h:199
FunctionCode & WithS3Bucket(const char *value)
Definition: FunctionCode.h:142
void SetS3Key(const char *value)
Definition: FunctionCode.h:166
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetS3Key(Aws::String &&value)
Definition: FunctionCode.h:160
void SetZipFile(Aws::Utils::ByteBuffer &&value)
Definition: FunctionCode.h:73
const Aws::String & GetS3ObjectVersion() const
Definition: FunctionCode.h:189
void SetS3Bucket(const char *value)
Definition: FunctionCode.h:121
JSON (JavaScript Object Notation).
FunctionCode & WithS3Bucket(const Aws::String &value)
Definition: FunctionCode.h:128