AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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
14#include <utility>
15
16namespace Aws {
17namespace Lambda {
18namespace Model {
19
23 public:
24 AWS_LAMBDA_API UpdateFunctionCodeRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateFunctionCode"; }
31
32 AWS_LAMBDA_API Aws::String SerializePayload() const override;
33
35
45 inline const Aws::String& GetFunctionName() const { return m_functionName; }
46 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
47 template <typename FunctionNameT = Aws::String>
48 void SetFunctionName(FunctionNameT&& value) {
49 m_functionNameHasBeenSet = true;
50 m_functionName = std::forward<FunctionNameT>(value);
51 }
52 template <typename FunctionNameT = Aws::String>
54 SetFunctionName(std::forward<FunctionNameT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::Utils::CryptoBuffer& GetZipFile() const { return m_zipFile; }
66 inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
67 template <typename ZipFileT = Aws::Utils::CryptoBuffer>
68 void SetZipFile(ZipFileT&& value) {
69 m_zipFileHasBeenSet = true;
70 m_zipFile = std::forward<ZipFileT>(value);
71 }
72 template <typename ZipFileT = Aws::Utils::CryptoBuffer>
74 SetZipFile(std::forward<ZipFileT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
86 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
87 template <typename S3BucketT = Aws::String>
88 void SetS3Bucket(S3BucketT&& value) {
89 m_s3BucketHasBeenSet = true;
90 m_s3Bucket = std::forward<S3BucketT>(value);
91 }
92 template <typename S3BucketT = Aws::String>
94 SetS3Bucket(std::forward<S3BucketT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::String& GetS3Key() const { return m_s3Key; }
105 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
106 template <typename S3KeyT = Aws::String>
107 void SetS3Key(S3KeyT&& value) {
108 m_s3KeyHasBeenSet = true;
109 m_s3Key = std::forward<S3KeyT>(value);
110 }
111 template <typename S3KeyT = Aws::String>
113 SetS3Key(std::forward<S3KeyT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::String& GetS3ObjectVersion() const { return m_s3ObjectVersion; }
124 inline bool S3ObjectVersionHasBeenSet() const { return m_s3ObjectVersionHasBeenSet; }
125 template <typename S3ObjectVersionT = Aws::String>
126 void SetS3ObjectVersion(S3ObjectVersionT&& value) {
127 m_s3ObjectVersionHasBeenSet = true;
128 m_s3ObjectVersion = std::forward<S3ObjectVersionT>(value);
129 }
130 template <typename S3ObjectVersionT = Aws::String>
132 SetS3ObjectVersion(std::forward<S3ObjectVersionT>(value));
133 return *this;
134 }
136
138
142 inline const Aws::String& GetImageUri() const { return m_imageUri; }
143 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
144 template <typename ImageUriT = Aws::String>
145 void SetImageUri(ImageUriT&& value) {
146 m_imageUriHasBeenSet = true;
147 m_imageUri = std::forward<ImageUriT>(value);
148 }
149 template <typename ImageUriT = Aws::String>
151 SetImageUri(std::forward<ImageUriT>(value));
152 return *this;
153 }
155
157
161 inline bool GetPublish() const { return m_publish; }
162 inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
163 inline void SetPublish(bool value) {
164 m_publishHasBeenSet = true;
165 m_publish = value;
166 }
168 SetPublish(value);
169 return *this;
170 }
172
174
178 inline bool GetDryRun() const { return m_dryRun; }
179 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
180 inline void SetDryRun(bool value) {
181 m_dryRunHasBeenSet = true;
182 m_dryRun = value;
183 }
185 SetDryRun(value);
186 return *this;
187 }
189
191
196 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
197 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
198 template <typename RevisionIdT = Aws::String>
199 void SetRevisionId(RevisionIdT&& value) {
200 m_revisionIdHasBeenSet = true;
201 m_revisionId = std::forward<RevisionIdT>(value);
202 }
203 template <typename RevisionIdT = Aws::String>
205 SetRevisionId(std::forward<RevisionIdT>(value));
206 return *this;
207 }
209
211
216 inline const Aws::Vector<Architecture>& GetArchitectures() const { return m_architectures; }
217 inline bool ArchitecturesHasBeenSet() const { return m_architecturesHasBeenSet; }
218 template <typename ArchitecturesT = Aws::Vector<Architecture>>
219 void SetArchitectures(ArchitecturesT&& value) {
220 m_architecturesHasBeenSet = true;
221 m_architectures = std::forward<ArchitecturesT>(value);
222 }
223 template <typename ArchitecturesT = Aws::Vector<Architecture>>
225 SetArchitectures(std::forward<ArchitecturesT>(value));
226 return *this;
227 }
229 m_architecturesHasBeenSet = true;
230 m_architectures.push_back(value);
231 return *this;
232 }
234
236
241 inline const Aws::String& GetSourceKMSKeyArn() const { return m_sourceKMSKeyArn; }
242 inline bool SourceKMSKeyArnHasBeenSet() const { return m_sourceKMSKeyArnHasBeenSet; }
243 template <typename SourceKMSKeyArnT = Aws::String>
244 void SetSourceKMSKeyArn(SourceKMSKeyArnT&& value) {
245 m_sourceKMSKeyArnHasBeenSet = true;
246 m_sourceKMSKeyArn = std::forward<SourceKMSKeyArnT>(value);
247 }
248 template <typename SourceKMSKeyArnT = Aws::String>
250 SetSourceKMSKeyArn(std::forward<SourceKMSKeyArnT>(value));
251 return *this;
252 }
254 private:
255 Aws::String m_functionName;
256 bool m_functionNameHasBeenSet = false;
257
258 Aws::Utils::CryptoBuffer m_zipFile{};
259 bool m_zipFileHasBeenSet = false;
260
261 Aws::String m_s3Bucket;
262 bool m_s3BucketHasBeenSet = false;
263
264 Aws::String m_s3Key;
265 bool m_s3KeyHasBeenSet = false;
266
267 Aws::String m_s3ObjectVersion;
268 bool m_s3ObjectVersionHasBeenSet = false;
269
270 Aws::String m_imageUri;
271 bool m_imageUriHasBeenSet = false;
272
273 bool m_publish{false};
274 bool m_publishHasBeenSet = false;
275
276 bool m_dryRun{false};
277 bool m_dryRunHasBeenSet = false;
278
279 Aws::String m_revisionId;
280 bool m_revisionIdHasBeenSet = false;
281
282 Aws::Vector<Architecture> m_architectures;
283 bool m_architecturesHasBeenSet = false;
284
285 Aws::String m_sourceKMSKeyArn;
286 bool m_sourceKMSKeyArnHasBeenSet = false;
287};
288
289} // namespace Model
290} // namespace Lambda
291} // namespace Aws
UpdateFunctionCodeRequest & WithS3ObjectVersion(S3ObjectVersionT &&value)
UpdateFunctionCodeRequest & WithPublish(bool value)
UpdateFunctionCodeRequest & WithS3Key(S3KeyT &&value)
const Aws::Utils::CryptoBuffer & GetZipFile() const
UpdateFunctionCodeRequest & WithZipFile(ZipFileT &&value)
AWS_LAMBDA_API UpdateFunctionCodeRequest()=default
AWS_LAMBDA_API Aws::String SerializePayload() const override
const Aws::Vector< Architecture > & GetArchitectures() const
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