AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename FunctionNameT = Aws::String>
52 void SetFunctionName(FunctionNameT&& value) { m_functionNameHasBeenSet = true; m_functionName = std::forward<FunctionNameT>(value); }
53 template<typename FunctionNameT = Aws::String>
54 UpdateFunctionCodeRequest& WithFunctionName(FunctionNameT&& value) { SetFunctionName(std::forward<FunctionNameT>(value)); return *this;}
56
58
63 inline const Aws::Utils::CryptoBuffer& GetZipFile() const { return m_zipFile; }
64 inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
65 template<typename ZipFileT = Aws::Utils::CryptoBuffer>
66 void SetZipFile(ZipFileT&& value) { m_zipFileHasBeenSet = true; m_zipFile = std::forward<ZipFileT>(value); }
67 template<typename ZipFileT = Aws::Utils::CryptoBuffer>
68 UpdateFunctionCodeRequest& WithZipFile(ZipFileT&& value) { SetZipFile(std::forward<ZipFileT>(value)); return *this;}
70
72
77 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
78 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
79 template<typename S3BucketT = Aws::String>
80 void SetS3Bucket(S3BucketT&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::forward<S3BucketT>(value); }
81 template<typename S3BucketT = Aws::String>
82 UpdateFunctionCodeRequest& WithS3Bucket(S3BucketT&& value) { SetS3Bucket(std::forward<S3BucketT>(value)); return *this;}
84
86
90 inline const Aws::String& GetS3Key() const { return m_s3Key; }
91 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
92 template<typename S3KeyT = Aws::String>
93 void SetS3Key(S3KeyT&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::forward<S3KeyT>(value); }
94 template<typename S3KeyT = Aws::String>
95 UpdateFunctionCodeRequest& WithS3Key(S3KeyT&& value) { SetS3Key(std::forward<S3KeyT>(value)); return *this;}
97
99
103 inline const Aws::String& GetS3ObjectVersion() const { return m_s3ObjectVersion; }
104 inline bool S3ObjectVersionHasBeenSet() const { return m_s3ObjectVersionHasBeenSet; }
105 template<typename S3ObjectVersionT = Aws::String>
106 void SetS3ObjectVersion(S3ObjectVersionT&& value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion = std::forward<S3ObjectVersionT>(value); }
107 template<typename S3ObjectVersionT = Aws::String>
108 UpdateFunctionCodeRequest& WithS3ObjectVersion(S3ObjectVersionT&& value) { SetS3ObjectVersion(std::forward<S3ObjectVersionT>(value)); return *this;}
110
112
116 inline const Aws::String& GetImageUri() const { return m_imageUri; }
117 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
118 template<typename ImageUriT = Aws::String>
119 void SetImageUri(ImageUriT&& value) { m_imageUriHasBeenSet = true; m_imageUri = std::forward<ImageUriT>(value); }
120 template<typename ImageUriT = Aws::String>
121 UpdateFunctionCodeRequest& WithImageUri(ImageUriT&& value) { SetImageUri(std::forward<ImageUriT>(value)); return *this;}
123
125
129 inline bool GetPublish() const { return m_publish; }
130 inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
131 inline void SetPublish(bool value) { m_publishHasBeenSet = true; m_publish = value; }
132 inline UpdateFunctionCodeRequest& WithPublish(bool value) { SetPublish(value); return *this;}
134
136
140 inline bool GetDryRun() const { return m_dryRun; }
141 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
142 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
143 inline UpdateFunctionCodeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
145
147
152 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
153 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
154 template<typename RevisionIdT = Aws::String>
155 void SetRevisionId(RevisionIdT&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::forward<RevisionIdT>(value); }
156 template<typename RevisionIdT = Aws::String>
157 UpdateFunctionCodeRequest& WithRevisionId(RevisionIdT&& value) { SetRevisionId(std::forward<RevisionIdT>(value)); return *this;}
159
161
166 inline const Aws::Vector<Architecture>& GetArchitectures() const { return m_architectures; }
167 inline bool ArchitecturesHasBeenSet() const { return m_architecturesHasBeenSet; }
168 template<typename ArchitecturesT = Aws::Vector<Architecture>>
169 void SetArchitectures(ArchitecturesT&& value) { m_architecturesHasBeenSet = true; m_architectures = std::forward<ArchitecturesT>(value); }
170 template<typename ArchitecturesT = Aws::Vector<Architecture>>
171 UpdateFunctionCodeRequest& WithArchitectures(ArchitecturesT&& value) { SetArchitectures(std::forward<ArchitecturesT>(value)); return *this;}
172 inline UpdateFunctionCodeRequest& AddArchitectures(Architecture value) { m_architecturesHasBeenSet = true; m_architectures.push_back(value); return *this; }
174
176
181 inline const Aws::String& GetSourceKMSKeyArn() const { return m_sourceKMSKeyArn; }
182 inline bool SourceKMSKeyArnHasBeenSet() const { return m_sourceKMSKeyArnHasBeenSet; }
183 template<typename SourceKMSKeyArnT = Aws::String>
184 void SetSourceKMSKeyArn(SourceKMSKeyArnT&& value) { m_sourceKMSKeyArnHasBeenSet = true; m_sourceKMSKeyArn = std::forward<SourceKMSKeyArnT>(value); }
185 template<typename SourceKMSKeyArnT = Aws::String>
186 UpdateFunctionCodeRequest& WithSourceKMSKeyArn(SourceKMSKeyArnT&& value) { SetSourceKMSKeyArn(std::forward<SourceKMSKeyArnT>(value)); return *this;}
188 private:
189
190 Aws::String m_functionName;
191 bool m_functionNameHasBeenSet = false;
192
193 Aws::Utils::CryptoBuffer m_zipFile{};
194 bool m_zipFileHasBeenSet = false;
195
196 Aws::String m_s3Bucket;
197 bool m_s3BucketHasBeenSet = false;
198
199 Aws::String m_s3Key;
200 bool m_s3KeyHasBeenSet = false;
201
202 Aws::String m_s3ObjectVersion;
203 bool m_s3ObjectVersionHasBeenSet = false;
204
205 Aws::String m_imageUri;
206 bool m_imageUriHasBeenSet = false;
207
208 bool m_publish{false};
209 bool m_publishHasBeenSet = false;
210
211 bool m_dryRun{false};
212 bool m_dryRunHasBeenSet = false;
213
214 Aws::String m_revisionId;
215 bool m_revisionIdHasBeenSet = false;
216
217 Aws::Vector<Architecture> m_architectures;
218 bool m_architecturesHasBeenSet = false;
219
220 Aws::String m_sourceKMSKeyArn;
221 bool m_sourceKMSKeyArnHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace Lambda
226} // 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