AWS SDK for C++

AWS SDK for C++ Version 1.11.835

Loading...
Searching...
No Matches
UpdateFunctionCodeRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lambda/LambdaRequest.h>
11#include <aws/lambda/Lambda_EXPORTS.h>
12#include <aws/lambda/model/Architecture.h>
13#include <aws/lambda/model/FunctionVersionLatestPublished.h>
14#include <aws/lambda/model/S3ObjectStorageMode.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Lambda {
20namespace Model {
21
25 public:
26 AWS_LAMBDA_API UpdateFunctionCodeRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateFunctionCode"; }
33
34 AWS_LAMBDA_API Aws::String SerializePayload() const override;
35
37
47 inline const Aws::String& GetFunctionName() const { return m_functionName; }
48 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
49 template <typename FunctionNameT = Aws::String>
50 void SetFunctionName(FunctionNameT&& value) {
51 m_functionNameHasBeenSet = true;
52 m_functionName = std::forward<FunctionNameT>(value);
53 }
54 template <typename FunctionNameT = Aws::String>
56 SetFunctionName(std::forward<FunctionNameT>(value));
57 return *this;
58 }
60
62
67 inline const Aws::Utils::CryptoBuffer& GetZipFile() const { return m_zipFile; }
68 inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
69 template <typename ZipFileT = Aws::Utils::CryptoBuffer>
70 void SetZipFile(ZipFileT&& value) {
71 m_zipFileHasBeenSet = true;
72 m_zipFile = std::forward<ZipFileT>(value);
73 }
74 template <typename ZipFileT = Aws::Utils::CryptoBuffer>
76 SetZipFile(std::forward<ZipFileT>(value));
77 return *this;
78 }
80
82
87 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
88 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
89 template <typename S3BucketT = Aws::String>
90 void SetS3Bucket(S3BucketT&& value) {
91 m_s3BucketHasBeenSet = true;
92 m_s3Bucket = std::forward<S3BucketT>(value);
93 }
94 template <typename S3BucketT = Aws::String>
96 SetS3Bucket(std::forward<S3BucketT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::String& GetS3Key() const { return m_s3Key; }
107 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
108 template <typename S3KeyT = Aws::String>
109 void SetS3Key(S3KeyT&& value) {
110 m_s3KeyHasBeenSet = true;
111 m_s3Key = std::forward<S3KeyT>(value);
112 }
113 template <typename S3KeyT = Aws::String>
115 SetS3Key(std::forward<S3KeyT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::String& GetS3ObjectVersion() const { return m_s3ObjectVersion; }
126 inline bool S3ObjectVersionHasBeenSet() const { return m_s3ObjectVersionHasBeenSet; }
127 template <typename S3ObjectVersionT = Aws::String>
128 void SetS3ObjectVersion(S3ObjectVersionT&& value) {
129 m_s3ObjectVersionHasBeenSet = true;
130 m_s3ObjectVersion = std::forward<S3ObjectVersionT>(value);
131 }
132 template <typename S3ObjectVersionT = Aws::String>
134 SetS3ObjectVersion(std::forward<S3ObjectVersionT>(value));
135 return *this;
136 }
138
140
146 inline S3ObjectStorageMode GetS3ObjectStorageMode() const { return m_s3ObjectStorageMode; }
147 inline bool S3ObjectStorageModeHasBeenSet() const { return m_s3ObjectStorageModeHasBeenSet; }
149 m_s3ObjectStorageModeHasBeenSet = true;
150 m_s3ObjectStorageMode = value;
151 }
154 return *this;
155 }
157
159
163 inline const Aws::String& GetImageUri() const { return m_imageUri; }
164 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
165 template <typename ImageUriT = Aws::String>
166 void SetImageUri(ImageUriT&& value) {
167 m_imageUriHasBeenSet = true;
168 m_imageUri = std::forward<ImageUriT>(value);
169 }
170 template <typename ImageUriT = Aws::String>
172 SetImageUri(std::forward<ImageUriT>(value));
173 return *this;
174 }
176
178
183 inline const Aws::Vector<Architecture>& GetArchitectures() const { return m_architectures; }
184 inline bool ArchitecturesHasBeenSet() const { return m_architecturesHasBeenSet; }
185 template <typename ArchitecturesT = Aws::Vector<Architecture>>
186 void SetArchitectures(ArchitecturesT&& value) {
187 m_architecturesHasBeenSet = true;
188 m_architectures = std::forward<ArchitecturesT>(value);
189 }
190 template <typename ArchitecturesT = Aws::Vector<Architecture>>
192 SetArchitectures(std::forward<ArchitecturesT>(value));
193 return *this;
194 }
196 m_architecturesHasBeenSet = true;
197 m_architectures.push_back(value);
198 return *this;
199 }
201
203
207 inline bool GetPublish() const { return m_publish; }
208 inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
209 inline void SetPublish(bool value) {
210 m_publishHasBeenSet = true;
211 m_publish = value;
212 }
214 SetPublish(value);
215 return *this;
216 }
218
220
223 inline FunctionVersionLatestPublished GetPublishTo() const { return m_publishTo; }
224 inline bool PublishToHasBeenSet() const { return m_publishToHasBeenSet; }
226 m_publishToHasBeenSet = true;
227 m_publishTo = value;
228 }
230 SetPublishTo(value);
231 return *this;
232 }
234
236
240 inline bool GetDryRun() const { return m_dryRun; }
241 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
242 inline void SetDryRun(bool value) {
243 m_dryRunHasBeenSet = true;
244 m_dryRun = value;
245 }
247 SetDryRun(value);
248 return *this;
249 }
251
253
258 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
259 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
260 template <typename RevisionIdT = Aws::String>
261 void SetRevisionId(RevisionIdT&& value) {
262 m_revisionIdHasBeenSet = true;
263 m_revisionId = std::forward<RevisionIdT>(value);
264 }
265 template <typename RevisionIdT = Aws::String>
267 SetRevisionId(std::forward<RevisionIdT>(value));
268 return *this;
269 }
271
273
278 inline const Aws::String& GetSourceKMSKeyArn() const { return m_sourceKMSKeyArn; }
279 inline bool SourceKMSKeyArnHasBeenSet() const { return m_sourceKMSKeyArnHasBeenSet; }
280 template <typename SourceKMSKeyArnT = Aws::String>
281 void SetSourceKMSKeyArn(SourceKMSKeyArnT&& value) {
282 m_sourceKMSKeyArnHasBeenSet = true;
283 m_sourceKMSKeyArn = std::forward<SourceKMSKeyArnT>(value);
284 }
285 template <typename SourceKMSKeyArnT = Aws::String>
287 SetSourceKMSKeyArn(std::forward<SourceKMSKeyArnT>(value));
288 return *this;
289 }
291 private:
292 Aws::String m_functionName;
293
294 Aws::Utils::CryptoBuffer m_zipFile{};
295
296 Aws::String m_s3Bucket;
297
298 Aws::String m_s3Key;
299
300 Aws::String m_s3ObjectVersion;
301
303
304 Aws::String m_imageUri;
305
306 Aws::Vector<Architecture> m_architectures;
307
308 bool m_publish{false};
309
311
312 bool m_dryRun{false};
313
314 Aws::String m_revisionId;
315
316 Aws::String m_sourceKMSKeyArn;
317 bool m_functionNameHasBeenSet = false;
318 bool m_zipFileHasBeenSet = false;
319 bool m_s3BucketHasBeenSet = false;
320 bool m_s3KeyHasBeenSet = false;
321 bool m_s3ObjectVersionHasBeenSet = false;
322 bool m_s3ObjectStorageModeHasBeenSet = false;
323 bool m_imageUriHasBeenSet = false;
324 bool m_architecturesHasBeenSet = false;
325 bool m_publishHasBeenSet = false;
326 bool m_publishToHasBeenSet = false;
327 bool m_dryRunHasBeenSet = false;
328 bool m_revisionIdHasBeenSet = false;
329 bool m_sourceKMSKeyArnHasBeenSet = false;
330};
331
332} // namespace Model
333} // namespace Lambda
334} // namespace Aws
UpdateFunctionCodeRequest & WithS3ObjectStorageMode(S3ObjectStorageMode value)
UpdateFunctionCodeRequest & WithS3ObjectVersion(S3ObjectVersionT &&value)
UpdateFunctionCodeRequest & WithPublish(bool value)
UpdateFunctionCodeRequest & WithS3Key(S3KeyT &&value)
UpdateFunctionCodeRequest & WithPublishTo(FunctionVersionLatestPublished value)
const Aws::Utils::CryptoBuffer & GetZipFile() const
UpdateFunctionCodeRequest & WithZipFile(ZipFileT &&value)
AWS_LAMBDA_API UpdateFunctionCodeRequest()=default
FunctionVersionLatestPublished GetPublishTo() const
AWS_LAMBDA_API Aws::String SerializePayload() const override
const Aws::Vector< Architecture > & GetArchitectures() const
void SetPublishTo(FunctionVersionLatestPublished value)
UpdateFunctionCodeRequest & WithArchitectures(ArchitecturesT &&value)
UpdateFunctionCodeRequest & WithDryRun(bool value)
UpdateFunctionCodeRequest & WithSourceKMSKeyArn(SourceKMSKeyArnT &&value)
UpdateFunctionCodeRequest & WithFunctionName(FunctionNameT &&value)
UpdateFunctionCodeRequest & WithRevisionId(RevisionIdT &&value)
virtual const char * GetServiceRequestName() const override
UpdateFunctionCodeRequest & WithImageUri(ImageUriT &&value)
UpdateFunctionCodeRequest & WithS3Bucket(S3BucketT &&value)
UpdateFunctionCodeRequest & AddArchitectures(Architecture value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector