AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateFunctionCodeRequest.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/lambda/LambdaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lambda/model/Architecture.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Lambda
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LAMBDA_API UpdateFunctionCodeRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateFunctionCode"; }
34
35 AWS_LAMBDA_API Aws::String SerializePayload() const override;
36
37
39
49 inline const Aws::String& GetFunctionName() const{ return m_functionName; }
50 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
51 inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
52 inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
53 inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
54 inline UpdateFunctionCodeRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
55 inline UpdateFunctionCodeRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
56 inline UpdateFunctionCodeRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
58
60
65 inline const Aws::Utils::CryptoBuffer& GetZipFile() const{ return m_zipFile; }
66 inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
67 inline void SetZipFile(const Aws::Utils::CryptoBuffer& value) { m_zipFileHasBeenSet = true; m_zipFile = value; }
68 inline void SetZipFile(Aws::Utils::CryptoBuffer&& value) { m_zipFileHasBeenSet = true; m_zipFile = std::move(value); }
69 inline UpdateFunctionCodeRequest& WithZipFile(const Aws::Utils::CryptoBuffer& value) { SetZipFile(value); return *this;}
70 inline UpdateFunctionCodeRequest& WithZipFile(Aws::Utils::CryptoBuffer&& value) { SetZipFile(std::move(value)); return *this;}
72
74
79 inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
80 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
81 inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
82 inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
83 inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
84 inline UpdateFunctionCodeRequest& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
85 inline UpdateFunctionCodeRequest& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;}
86 inline UpdateFunctionCodeRequest& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
88
90
94 inline const Aws::String& GetS3Key() const{ return m_s3Key; }
95 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
96 inline void SetS3Key(const Aws::String& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
97 inline void SetS3Key(Aws::String&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::move(value); }
98 inline void SetS3Key(const char* value) { m_s3KeyHasBeenSet = true; m_s3Key.assign(value); }
99 inline UpdateFunctionCodeRequest& WithS3Key(const Aws::String& value) { SetS3Key(value); return *this;}
100 inline UpdateFunctionCodeRequest& WithS3Key(Aws::String&& value) { SetS3Key(std::move(value)); return *this;}
101 inline UpdateFunctionCodeRequest& WithS3Key(const char* value) { SetS3Key(value); return *this;}
103
105
109 inline const Aws::String& GetS3ObjectVersion() const{ return m_s3ObjectVersion; }
110 inline bool S3ObjectVersionHasBeenSet() const { return m_s3ObjectVersionHasBeenSet; }
111 inline void SetS3ObjectVersion(const Aws::String& value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion = value; }
112 inline void SetS3ObjectVersion(Aws::String&& value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion = std::move(value); }
113 inline void SetS3ObjectVersion(const char* value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion.assign(value); }
115 inline UpdateFunctionCodeRequest& WithS3ObjectVersion(Aws::String&& value) { SetS3ObjectVersion(std::move(value)); return *this;}
116 inline UpdateFunctionCodeRequest& WithS3ObjectVersion(const char* value) { SetS3ObjectVersion(value); return *this;}
118
120
124 inline const Aws::String& GetImageUri() const{ return m_imageUri; }
125 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
126 inline void SetImageUri(const Aws::String& value) { m_imageUriHasBeenSet = true; m_imageUri = value; }
127 inline void SetImageUri(Aws::String&& value) { m_imageUriHasBeenSet = true; m_imageUri = std::move(value); }
128 inline void SetImageUri(const char* value) { m_imageUriHasBeenSet = true; m_imageUri.assign(value); }
129 inline UpdateFunctionCodeRequest& WithImageUri(const Aws::String& value) { SetImageUri(value); return *this;}
130 inline UpdateFunctionCodeRequest& WithImageUri(Aws::String&& value) { SetImageUri(std::move(value)); return *this;}
131 inline UpdateFunctionCodeRequest& WithImageUri(const char* value) { SetImageUri(value); return *this;}
133
135
139 inline bool GetPublish() const{ return m_publish; }
140 inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
141 inline void SetPublish(bool value) { m_publishHasBeenSet = true; m_publish = value; }
142 inline UpdateFunctionCodeRequest& WithPublish(bool value) { SetPublish(value); return *this;}
144
146
150 inline bool GetDryRun() const{ return m_dryRun; }
151 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
152 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
153 inline UpdateFunctionCodeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
155
157
162 inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
163 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
164 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
165 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
166 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
167 inline UpdateFunctionCodeRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
168 inline UpdateFunctionCodeRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
169 inline UpdateFunctionCodeRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
171
173
178 inline const Aws::Vector<Architecture>& GetArchitectures() const{ return m_architectures; }
179 inline bool ArchitecturesHasBeenSet() const { return m_architecturesHasBeenSet; }
180 inline void SetArchitectures(const Aws::Vector<Architecture>& value) { m_architecturesHasBeenSet = true; m_architectures = value; }
181 inline void SetArchitectures(Aws::Vector<Architecture>&& value) { m_architecturesHasBeenSet = true; m_architectures = std::move(value); }
184 inline UpdateFunctionCodeRequest& AddArchitectures(const Architecture& value) { m_architecturesHasBeenSet = true; m_architectures.push_back(value); return *this; }
185 inline UpdateFunctionCodeRequest& AddArchitectures(Architecture&& value) { m_architecturesHasBeenSet = true; m_architectures.push_back(std::move(value)); return *this; }
187 private:
188
189 Aws::String m_functionName;
190 bool m_functionNameHasBeenSet = false;
191
192 Aws::Utils::CryptoBuffer m_zipFile;
193 bool m_zipFileHasBeenSet = false;
194
195 Aws::String m_s3Bucket;
196 bool m_s3BucketHasBeenSet = false;
197
198 Aws::String m_s3Key;
199 bool m_s3KeyHasBeenSet = false;
200
201 Aws::String m_s3ObjectVersion;
202 bool m_s3ObjectVersionHasBeenSet = false;
203
204 Aws::String m_imageUri;
205 bool m_imageUriHasBeenSet = false;
206
207 bool m_publish;
208 bool m_publishHasBeenSet = false;
209
210 bool m_dryRun;
211 bool m_dryRunHasBeenSet = false;
212
213 Aws::String m_revisionId;
214 bool m_revisionIdHasBeenSet = false;
215
216 Aws::Vector<Architecture> m_architectures;
217 bool m_architecturesHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace Lambda
222} // namespace Aws
UpdateFunctionCodeRequest & WithS3Key(const char *value)
void SetArchitectures(Aws::Vector< Architecture > &&value)
UpdateFunctionCodeRequest & WithPublish(bool value)
void SetZipFile(const Aws::Utils::CryptoBuffer &value)
UpdateFunctionCodeRequest & WithFunctionName(Aws::String &&value)
UpdateFunctionCodeRequest & AddArchitectures(Architecture &&value)
const Aws::Utils::CryptoBuffer & GetZipFile() const
UpdateFunctionCodeRequest & WithS3Key(Aws::String &&value)
UpdateFunctionCodeRequest & WithArchitectures(const Aws::Vector< Architecture > &value)
UpdateFunctionCodeRequest & AddArchitectures(const Architecture &value)
UpdateFunctionCodeRequest & WithS3Bucket(const char *value)
UpdateFunctionCodeRequest & WithRevisionId(Aws::String &&value)
UpdateFunctionCodeRequest & WithS3Key(const Aws::String &value)
AWS_LAMBDA_API Aws::String SerializePayload() const override
const Aws::Vector< Architecture > & GetArchitectures() const
UpdateFunctionCodeRequest & WithFunctionName(const Aws::String &value)
UpdateFunctionCodeRequest & WithZipFile(Aws::Utils::CryptoBuffer &&value)
UpdateFunctionCodeRequest & WithS3ObjectVersion(const char *value)
UpdateFunctionCodeRequest & WithS3ObjectVersion(const Aws::String &value)
UpdateFunctionCodeRequest & WithImageUri(Aws::String &&value)
void SetArchitectures(const Aws::Vector< Architecture > &value)
UpdateFunctionCodeRequest & WithImageUri(const char *value)
UpdateFunctionCodeRequest & WithDryRun(bool value)
void SetZipFile(Aws::Utils::CryptoBuffer &&value)
UpdateFunctionCodeRequest & WithS3Bucket(Aws::String &&value)
UpdateFunctionCodeRequest & WithS3Bucket(const Aws::String &value)
UpdateFunctionCodeRequest & WithRevisionId(const char *value)
UpdateFunctionCodeRequest & WithRevisionId(const Aws::String &value)
UpdateFunctionCodeRequest & WithS3ObjectVersion(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateFunctionCodeRequest & WithArchitectures(Aws::Vector< Architecture > &&value)
UpdateFunctionCodeRequest & WithImageUri(const Aws::String &value)
UpdateFunctionCodeRequest & WithZipFile(const Aws::Utils::CryptoBuffer &value)
UpdateFunctionCodeRequest & WithFunctionName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector