AWS SDK for C++  1.9.19
AWS SDK for C++
UpdateFunctionCodeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/core/utils/Array.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Lambda
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
35 
46  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
47 
58  inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
59 
70  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
71 
82  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
83 
94  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
95 
106  inline UpdateFunctionCodeRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
107 
118  inline UpdateFunctionCodeRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
119 
130  inline UpdateFunctionCodeRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
131 
132 
137  inline const Aws::Utils::CryptoBuffer& GetZipFile() const{ return m_zipFile; }
138 
143  inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
144 
149  inline void SetZipFile(const Aws::Utils::CryptoBuffer& value) { m_zipFileHasBeenSet = true; m_zipFile = value; }
150 
155  inline void SetZipFile(Aws::Utils::CryptoBuffer&& value) { m_zipFileHasBeenSet = true; m_zipFile = std::move(value); }
156 
161  inline UpdateFunctionCodeRequest& WithZipFile(const Aws::Utils::CryptoBuffer& value) { SetZipFile(value); return *this;}
162 
167  inline UpdateFunctionCodeRequest& WithZipFile(Aws::Utils::CryptoBuffer&& value) { SetZipFile(std::move(value)); return *this;}
168 
169 
174  inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
175 
180  inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
181 
186  inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
187 
192  inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
193 
198  inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
199 
204  inline UpdateFunctionCodeRequest& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
205 
210  inline UpdateFunctionCodeRequest& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;}
211 
216  inline UpdateFunctionCodeRequest& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
217 
218 
222  inline const Aws::String& GetS3Key() const{ return m_s3Key; }
223 
227  inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
228 
232  inline void SetS3Key(const Aws::String& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
233 
237  inline void SetS3Key(Aws::String&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::move(value); }
238 
242  inline void SetS3Key(const char* value) { m_s3KeyHasBeenSet = true; m_s3Key.assign(value); }
243 
247  inline UpdateFunctionCodeRequest& WithS3Key(const Aws::String& value) { SetS3Key(value); return *this;}
248 
252  inline UpdateFunctionCodeRequest& WithS3Key(Aws::String&& value) { SetS3Key(std::move(value)); return *this;}
253 
257  inline UpdateFunctionCodeRequest& WithS3Key(const char* value) { SetS3Key(value); return *this;}
258 
259 
264  inline const Aws::String& GetS3ObjectVersion() const{ return m_s3ObjectVersion; }
265 
270  inline bool S3ObjectVersionHasBeenSet() const { return m_s3ObjectVersionHasBeenSet; }
271 
276  inline void SetS3ObjectVersion(const Aws::String& value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion = value; }
277 
282  inline void SetS3ObjectVersion(Aws::String&& value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion = std::move(value); }
283 
288  inline void SetS3ObjectVersion(const char* value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion.assign(value); }
289 
294  inline UpdateFunctionCodeRequest& WithS3ObjectVersion(const Aws::String& value) { SetS3ObjectVersion(value); return *this;}
295 
300  inline UpdateFunctionCodeRequest& WithS3ObjectVersion(Aws::String&& value) { SetS3ObjectVersion(std::move(value)); return *this;}
301 
306  inline UpdateFunctionCodeRequest& WithS3ObjectVersion(const char* value) { SetS3ObjectVersion(value); return *this;}
307 
308 
312  inline const Aws::String& GetImageUri() const{ return m_imageUri; }
313 
317  inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
318 
322  inline void SetImageUri(const Aws::String& value) { m_imageUriHasBeenSet = true; m_imageUri = value; }
323 
327  inline void SetImageUri(Aws::String&& value) { m_imageUriHasBeenSet = true; m_imageUri = std::move(value); }
328 
332  inline void SetImageUri(const char* value) { m_imageUriHasBeenSet = true; m_imageUri.assign(value); }
333 
337  inline UpdateFunctionCodeRequest& WithImageUri(const Aws::String& value) { SetImageUri(value); return *this;}
338 
342  inline UpdateFunctionCodeRequest& WithImageUri(Aws::String&& value) { SetImageUri(std::move(value)); return *this;}
343 
347  inline UpdateFunctionCodeRequest& WithImageUri(const char* value) { SetImageUri(value); return *this;}
348 
349 
354  inline bool GetPublish() const{ return m_publish; }
355 
360  inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
361 
366  inline void SetPublish(bool value) { m_publishHasBeenSet = true; m_publish = value; }
367 
372  inline UpdateFunctionCodeRequest& WithPublish(bool value) { SetPublish(value); return *this;}
373 
374 
379  inline bool GetDryRun() const{ return m_dryRun; }
380 
385  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
386 
391  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
392 
397  inline UpdateFunctionCodeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
398 
399 
405  inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
406 
412  inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
413 
419  inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
420 
426  inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
427 
433  inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
434 
440  inline UpdateFunctionCodeRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
441 
447  inline UpdateFunctionCodeRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
448 
454  inline UpdateFunctionCodeRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
455 
456  private:
457 
458  Aws::String m_functionName;
459  bool m_functionNameHasBeenSet;
460 
461  Aws::Utils::CryptoBuffer m_zipFile;
462  bool m_zipFileHasBeenSet;
463 
464  Aws::String m_s3Bucket;
465  bool m_s3BucketHasBeenSet;
466 
467  Aws::String m_s3Key;
468  bool m_s3KeyHasBeenSet;
469 
470  Aws::String m_s3ObjectVersion;
471  bool m_s3ObjectVersionHasBeenSet;
472 
473  Aws::String m_imageUri;
474  bool m_imageUriHasBeenSet;
475 
476  bool m_publish;
477  bool m_publishHasBeenSet;
478 
479  bool m_dryRun;
480  bool m_dryRunHasBeenSet;
481 
482  Aws::String m_revisionId;
483  bool m_revisionIdHasBeenSet;
484  };
485 
486 } // namespace Model
487 } // namespace Lambda
488 } // namespace Aws
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetPublish
void SetPublish(bool value)
Definition: UpdateFunctionCodeRequest.h:366
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetS3Bucket
void SetS3Bucket(const Aws::String &value)
Definition: UpdateFunctionCodeRequest.h:186
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithS3ObjectVersion
UpdateFunctionCodeRequest & WithS3ObjectVersion(Aws::String &&value)
Definition: UpdateFunctionCodeRequest.h:300
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithZipFile
UpdateFunctionCodeRequest & WithZipFile(const Aws::Utils::CryptoBuffer &value)
Definition: UpdateFunctionCodeRequest.h:161
Aws::Lambda::Model::UpdateFunctionCodeRequest::ZipFileHasBeenSet
bool ZipFileHasBeenSet() const
Definition: UpdateFunctionCodeRequest.h:143
Aws::Lambda::Model::UpdateFunctionCodeRequest::S3BucketHasBeenSet
bool S3BucketHasBeenSet() const
Definition: UpdateFunctionCodeRequest.h:180
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithRevisionId
UpdateFunctionCodeRequest & WithRevisionId(const Aws::String &value)
Definition: UpdateFunctionCodeRequest.h:440
Aws::Lambda::Model::UpdateFunctionCodeRequest::GetZipFile
const Aws::Utils::CryptoBuffer & GetZipFile() const
Definition: UpdateFunctionCodeRequest.h:137
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetImageUri
void SetImageUri(const char *value)
Definition: UpdateFunctionCodeRequest.h:332
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithS3Key
UpdateFunctionCodeRequest & WithS3Key(const Aws::String &value)
Definition: UpdateFunctionCodeRequest.h:247
Aws::Lambda::Model::UpdateFunctionCodeRequest::GetS3ObjectVersion
const Aws::String & GetS3ObjectVersion() const
Definition: UpdateFunctionCodeRequest.h:264
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetS3ObjectVersion
void SetS3ObjectVersion(const char *value)
Definition: UpdateFunctionCodeRequest.h:288
Aws::Lambda::Model::UpdateFunctionCodeRequest
Definition: UpdateFunctionCodeRequest.h:23
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithS3Key
UpdateFunctionCodeRequest & WithS3Key(const char *value)
Definition: UpdateFunctionCodeRequest.h:257
Aws::Lambda::Model::UpdateFunctionCodeRequest::UpdateFunctionCodeRequest
UpdateFunctionCodeRequest()
Aws::Lambda::Model::UpdateFunctionCodeRequest::GetS3Bucket
const Aws::String & GetS3Bucket() const
Definition: UpdateFunctionCodeRequest.h:174
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithPublish
UpdateFunctionCodeRequest & WithPublish(bool value)
Definition: UpdateFunctionCodeRequest.h:372
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithS3Key
UpdateFunctionCodeRequest & WithS3Key(Aws::String &&value)
Definition: UpdateFunctionCodeRequest.h:252
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithFunctionName
UpdateFunctionCodeRequest & WithFunctionName(Aws::String &&value)
Definition: UpdateFunctionCodeRequest.h:118
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithImageUri
UpdateFunctionCodeRequest & WithImageUri(const char *value)
Definition: UpdateFunctionCodeRequest.h:347
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetS3Bucket
void SetS3Bucket(const char *value)
Definition: UpdateFunctionCodeRequest.h:198
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithS3Bucket
UpdateFunctionCodeRequest & WithS3Bucket(const Aws::String &value)
Definition: UpdateFunctionCodeRequest.h:204
Aws::Lambda::Model::UpdateFunctionCodeRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: UpdateFunctionCodeRequest.h:385
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetS3Bucket
void SetS3Bucket(Aws::String &&value)
Definition: UpdateFunctionCodeRequest.h:192
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetS3ObjectVersion
void SetS3ObjectVersion(const Aws::String &value)
Definition: UpdateFunctionCodeRequest.h:276
Aws::Lambda::Model::UpdateFunctionCodeRequest::RevisionIdHasBeenSet
bool RevisionIdHasBeenSet() const
Definition: UpdateFunctionCodeRequest.h:412
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithRevisionId
UpdateFunctionCodeRequest & WithRevisionId(Aws::String &&value)
Definition: UpdateFunctionCodeRequest.h:447
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithS3Bucket
UpdateFunctionCodeRequest & WithS3Bucket(const char *value)
Definition: UpdateFunctionCodeRequest.h:216
Aws::Lambda::Model::UpdateFunctionCodeRequest::FunctionNameHasBeenSet
bool FunctionNameHasBeenSet() const
Definition: UpdateFunctionCodeRequest.h:58
Aws::Lambda::Model::UpdateFunctionCodeRequest::S3ObjectVersionHasBeenSet
bool S3ObjectVersionHasBeenSet() const
Definition: UpdateFunctionCodeRequest.h:270
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetS3Key
void SetS3Key(const char *value)
Definition: UpdateFunctionCodeRequest.h:242
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetFunctionName
void SetFunctionName(Aws::String &&value)
Definition: UpdateFunctionCodeRequest.h:82
Aws::Lambda::Model::UpdateFunctionCodeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetRevisionId
void SetRevisionId(const Aws::String &value)
Definition: UpdateFunctionCodeRequest.h:419
Aws::Lambda::Model::UpdateFunctionCodeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateFunctionCodeRequest.h:31
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetFunctionName
void SetFunctionName(const char *value)
Definition: UpdateFunctionCodeRequest.h:94
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithImageUri
UpdateFunctionCodeRequest & WithImageUri(Aws::String &&value)
Definition: UpdateFunctionCodeRequest.h:342
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetImageUri
void SetImageUri(const Aws::String &value)
Definition: UpdateFunctionCodeRequest.h:322
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithDryRun
UpdateFunctionCodeRequest & WithDryRun(bool value)
Definition: UpdateFunctionCodeRequest.h:397
Aws::Lambda::Model::UpdateFunctionCodeRequest::GetS3Key
const Aws::String & GetS3Key() const
Definition: UpdateFunctionCodeRequest.h:222
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetRevisionId
void SetRevisionId(Aws::String &&value)
Definition: UpdateFunctionCodeRequest.h:426
AWSString.h
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetS3Key
void SetS3Key(const Aws::String &value)
Definition: UpdateFunctionCodeRequest.h:232
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetImageUri
void SetImageUri(Aws::String &&value)
Definition: UpdateFunctionCodeRequest.h:327
LambdaRequest.h
Aws::Lambda::Model::UpdateFunctionCodeRequest::S3KeyHasBeenSet
bool S3KeyHasBeenSet() const
Definition: UpdateFunctionCodeRequest.h:227
Aws::Lambda::Model::UpdateFunctionCodeRequest::GetDryRun
bool GetDryRun() const
Definition: UpdateFunctionCodeRequest.h:379
Aws::Lambda::LambdaRequest
Definition: LambdaRequest.h:18
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithS3ObjectVersion
UpdateFunctionCodeRequest & WithS3ObjectVersion(const char *value)
Definition: UpdateFunctionCodeRequest.h:306
Aws::Lambda::Model::UpdateFunctionCodeRequest::GetFunctionName
const Aws::String & GetFunctionName() const
Definition: UpdateFunctionCodeRequest.h:46
Aws::Utils::CryptoBuffer
Definition: Array.h:229
Aws::Lambda::Model::UpdateFunctionCodeRequest::GetRevisionId
const Aws::String & GetRevisionId() const
Definition: UpdateFunctionCodeRequest.h:405
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetFunctionName
void SetFunctionName(const Aws::String &value)
Definition: UpdateFunctionCodeRequest.h:70
Array.h
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetRevisionId
void SetRevisionId(const char *value)
Definition: UpdateFunctionCodeRequest.h:433
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetZipFile
void SetZipFile(const Aws::Utils::CryptoBuffer &value)
Definition: UpdateFunctionCodeRequest.h:149
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetZipFile
void SetZipFile(Aws::Utils::CryptoBuffer &&value)
Definition: UpdateFunctionCodeRequest.h:155
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetS3Key
void SetS3Key(Aws::String &&value)
Definition: UpdateFunctionCodeRequest.h:237
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithS3ObjectVersion
UpdateFunctionCodeRequest & WithS3ObjectVersion(const Aws::String &value)
Definition: UpdateFunctionCodeRequest.h:294
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithFunctionName
UpdateFunctionCodeRequest & WithFunctionName(const Aws::String &value)
Definition: UpdateFunctionCodeRequest.h:106
Aws::Lambda::Model::UpdateFunctionCodeRequest::GetPublish
bool GetPublish() const
Definition: UpdateFunctionCodeRequest.h:354
Aws::Lambda::Model::UpdateFunctionCodeRequest::ImageUriHasBeenSet
bool ImageUriHasBeenSet() const
Definition: UpdateFunctionCodeRequest.h:317
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetS3ObjectVersion
void SetS3ObjectVersion(Aws::String &&value)
Definition: UpdateFunctionCodeRequest.h:282
Aws::Lambda::Model::UpdateFunctionCodeRequest::PublishHasBeenSet
bool PublishHasBeenSet() const
Definition: UpdateFunctionCodeRequest.h:360
Aws::Lambda::Model::UpdateFunctionCodeRequest::GetImageUri
const Aws::String & GetImageUri() const
Definition: UpdateFunctionCodeRequest.h:312
Aws::Lambda::Model::UpdateFunctionCodeRequest::SetDryRun
void SetDryRun(bool value)
Definition: UpdateFunctionCodeRequest.h:391
Lambda_EXPORTS.h
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithRevisionId
UpdateFunctionCodeRequest & WithRevisionId(const char *value)
Definition: UpdateFunctionCodeRequest.h:454
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithFunctionName
UpdateFunctionCodeRequest & WithFunctionName(const char *value)
Definition: UpdateFunctionCodeRequest.h:130
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithZipFile
UpdateFunctionCodeRequest & WithZipFile(Aws::Utils::CryptoBuffer &&value)
Definition: UpdateFunctionCodeRequest.h:167
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithImageUri
UpdateFunctionCodeRequest & WithImageUri(const Aws::String &value)
Definition: UpdateFunctionCodeRequest.h:337
Aws::Lambda::Model::UpdateFunctionCodeRequest::WithS3Bucket
UpdateFunctionCodeRequest & WithS3Bucket(Aws::String &&value)
Definition: UpdateFunctionCodeRequest.h:210