AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
15#include <utility>
16
17namespace Aws {
18namespace Lambda {
19namespace Model {
20
24 public:
25 AWS_LAMBDA_API UpdateFunctionCodeRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateFunctionCode"; }
32
33 AWS_LAMBDA_API Aws::String SerializePayload() const override;
34
36
46 inline const Aws::String& GetFunctionName() const { return m_functionName; }
47 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
48 template <typename FunctionNameT = Aws::String>
49 void SetFunctionName(FunctionNameT&& value) {
50 m_functionNameHasBeenSet = true;
51 m_functionName = std::forward<FunctionNameT>(value);
52 }
53 template <typename FunctionNameT = Aws::String>
55 SetFunctionName(std::forward<FunctionNameT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::Utils::CryptoBuffer& GetZipFile() const { return m_zipFile; }
67 inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
68 template <typename ZipFileT = Aws::Utils::CryptoBuffer>
69 void SetZipFile(ZipFileT&& value) {
70 m_zipFileHasBeenSet = true;
71 m_zipFile = std::forward<ZipFileT>(value);
72 }
73 template <typename ZipFileT = Aws::Utils::CryptoBuffer>
75 SetZipFile(std::forward<ZipFileT>(value));
76 return *this;
77 }
79
81
86 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
87 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
88 template <typename S3BucketT = Aws::String>
89 void SetS3Bucket(S3BucketT&& value) {
90 m_s3BucketHasBeenSet = true;
91 m_s3Bucket = std::forward<S3BucketT>(value);
92 }
93 template <typename S3BucketT = Aws::String>
95 SetS3Bucket(std::forward<S3BucketT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::String& GetS3Key() const { return m_s3Key; }
106 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
107 template <typename S3KeyT = Aws::String>
108 void SetS3Key(S3KeyT&& value) {
109 m_s3KeyHasBeenSet = true;
110 m_s3Key = std::forward<S3KeyT>(value);
111 }
112 template <typename S3KeyT = Aws::String>
114 SetS3Key(std::forward<S3KeyT>(value));
115 return *this;
116 }
118
120
124 inline const Aws::String& GetS3ObjectVersion() const { return m_s3ObjectVersion; }
125 inline bool S3ObjectVersionHasBeenSet() const { return m_s3ObjectVersionHasBeenSet; }
126 template <typename S3ObjectVersionT = Aws::String>
127 void SetS3ObjectVersion(S3ObjectVersionT&& value) {
128 m_s3ObjectVersionHasBeenSet = true;
129 m_s3ObjectVersion = std::forward<S3ObjectVersionT>(value);
130 }
131 template <typename S3ObjectVersionT = Aws::String>
133 SetS3ObjectVersion(std::forward<S3ObjectVersionT>(value));
134 return *this;
135 }
137
139
143 inline const Aws::String& GetImageUri() const { return m_imageUri; }
144 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
145 template <typename ImageUriT = Aws::String>
146 void SetImageUri(ImageUriT&& value) {
147 m_imageUriHasBeenSet = true;
148 m_imageUri = std::forward<ImageUriT>(value);
149 }
150 template <typename ImageUriT = Aws::String>
152 SetImageUri(std::forward<ImageUriT>(value));
153 return *this;
154 }
156
158
162 inline bool GetPublish() const { return m_publish; }
163 inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
164 inline void SetPublish(bool value) {
165 m_publishHasBeenSet = true;
166 m_publish = value;
167 }
169 SetPublish(value);
170 return *this;
171 }
173
175
179 inline bool GetDryRun() const { return m_dryRun; }
180 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
181 inline void SetDryRun(bool value) {
182 m_dryRunHasBeenSet = true;
183 m_dryRun = value;
184 }
186 SetDryRun(value);
187 return *this;
188 }
190
192
197 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
198 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
199 template <typename RevisionIdT = Aws::String>
200 void SetRevisionId(RevisionIdT&& value) {
201 m_revisionIdHasBeenSet = true;
202 m_revisionId = std::forward<RevisionIdT>(value);
203 }
204 template <typename RevisionIdT = Aws::String>
206 SetRevisionId(std::forward<RevisionIdT>(value));
207 return *this;
208 }
210
212
217 inline const Aws::Vector<Architecture>& GetArchitectures() const { return m_architectures; }
218 inline bool ArchitecturesHasBeenSet() const { return m_architecturesHasBeenSet; }
219 template <typename ArchitecturesT = Aws::Vector<Architecture>>
220 void SetArchitectures(ArchitecturesT&& value) {
221 m_architecturesHasBeenSet = true;
222 m_architectures = std::forward<ArchitecturesT>(value);
223 }
224 template <typename ArchitecturesT = Aws::Vector<Architecture>>
226 SetArchitectures(std::forward<ArchitecturesT>(value));
227 return *this;
228 }
230 m_architecturesHasBeenSet = true;
231 m_architectures.push_back(value);
232 return *this;
233 }
235
237
242 inline const Aws::String& GetSourceKMSKeyArn() const { return m_sourceKMSKeyArn; }
243 inline bool SourceKMSKeyArnHasBeenSet() const { return m_sourceKMSKeyArnHasBeenSet; }
244 template <typename SourceKMSKeyArnT = Aws::String>
245 void SetSourceKMSKeyArn(SourceKMSKeyArnT&& value) {
246 m_sourceKMSKeyArnHasBeenSet = true;
247 m_sourceKMSKeyArn = std::forward<SourceKMSKeyArnT>(value);
248 }
249 template <typename SourceKMSKeyArnT = Aws::String>
251 SetSourceKMSKeyArn(std::forward<SourceKMSKeyArnT>(value));
252 return *this;
253 }
255
257
260 inline FunctionVersionLatestPublished GetPublishTo() const { return m_publishTo; }
261 inline bool PublishToHasBeenSet() const { return m_publishToHasBeenSet; }
263 m_publishToHasBeenSet = true;
264 m_publishTo = value;
265 }
267 SetPublishTo(value);
268 return *this;
269 }
271 private:
272 Aws::String m_functionName;
273
274 Aws::Utils::CryptoBuffer m_zipFile{};
275
276 Aws::String m_s3Bucket;
277
278 Aws::String m_s3Key;
279
280 Aws::String m_s3ObjectVersion;
281
282 Aws::String m_imageUri;
283
284 bool m_publish{false};
285
286 bool m_dryRun{false};
287
288 Aws::String m_revisionId;
289
290 Aws::Vector<Architecture> m_architectures;
291
292 Aws::String m_sourceKMSKeyArn;
293
295 bool m_functionNameHasBeenSet = false;
296 bool m_zipFileHasBeenSet = false;
297 bool m_s3BucketHasBeenSet = false;
298 bool m_s3KeyHasBeenSet = false;
299 bool m_s3ObjectVersionHasBeenSet = false;
300 bool m_imageUriHasBeenSet = false;
301 bool m_publishHasBeenSet = false;
302 bool m_dryRunHasBeenSet = false;
303 bool m_revisionIdHasBeenSet = false;
304 bool m_architecturesHasBeenSet = false;
305 bool m_sourceKMSKeyArnHasBeenSet = false;
306 bool m_publishToHasBeenSet = false;
307};
308
309} // namespace Model
310} // namespace Lambda
311} // namespace Aws
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