AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateFunctionConfigurationRequest.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/lambda/model/VpcConfig.h>
11#include <aws/lambda/model/Environment.h>
12#include <aws/lambda/model/Runtime.h>
13#include <aws/lambda/model/DeadLetterConfig.h>
14#include <aws/lambda/model/TracingConfig.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/lambda/model/ImageConfig.h>
17#include <aws/lambda/model/EphemeralStorage.h>
18#include <aws/lambda/model/SnapStart.h>
19#include <aws/lambda/model/LoggingConfig.h>
20#include <aws/lambda/model/FileSystemConfig.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Lambda
26{
27namespace Model
28{
29
33 {
34 public:
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "UpdateFunctionConfiguration"; }
42
43 AWS_LAMBDA_API Aws::String SerializePayload() const override;
44
45
47
57 inline const Aws::String& GetFunctionName() const{ return m_functionName; }
58 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
59 inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
60 inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
61 inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
63 inline UpdateFunctionConfigurationRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
64 inline UpdateFunctionConfigurationRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
66
68
71 inline const Aws::String& GetRole() const{ return m_role; }
72 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
73 inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
74 inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
75 inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
76 inline UpdateFunctionConfigurationRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;}
77 inline UpdateFunctionConfigurationRequest& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
78 inline UpdateFunctionConfigurationRequest& WithRole(const char* value) { SetRole(value); return *this;}
80
82
90 inline const Aws::String& GetHandler() const{ return m_handler; }
91 inline bool HandlerHasBeenSet() const { return m_handlerHasBeenSet; }
92 inline void SetHandler(const Aws::String& value) { m_handlerHasBeenSet = true; m_handler = value; }
93 inline void SetHandler(Aws::String&& value) { m_handlerHasBeenSet = true; m_handler = std::move(value); }
94 inline void SetHandler(const char* value) { m_handlerHasBeenSet = true; m_handler.assign(value); }
95 inline UpdateFunctionConfigurationRequest& WithHandler(const Aws::String& value) { SetHandler(value); return *this;}
96 inline UpdateFunctionConfigurationRequest& WithHandler(Aws::String&& value) { SetHandler(std::move(value)); return *this;}
97 inline UpdateFunctionConfigurationRequest& WithHandler(const char* value) { SetHandler(value); return *this;}
99
101
104 inline const Aws::String& GetDescription() const{ return m_description; }
105 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
106 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
107 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
108 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
110 inline UpdateFunctionConfigurationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
111 inline UpdateFunctionConfigurationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
113
115
122 inline int GetTimeout() const{ return m_timeout; }
123 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
124 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
125 inline UpdateFunctionConfigurationRequest& WithTimeout(int value) { SetTimeout(value); return *this;}
127
129
136 inline int GetMemorySize() const{ return m_memorySize; }
137 inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; }
138 inline void SetMemorySize(int value) { m_memorySizeHasBeenSet = true; m_memorySize = value; }
139 inline UpdateFunctionConfigurationRequest& WithMemorySize(int value) { SetMemorySize(value); return *this;}
141
143
151 inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
152 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
153 inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
154 inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
155 inline UpdateFunctionConfigurationRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
156 inline UpdateFunctionConfigurationRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
158
160
164 inline const Environment& GetEnvironment() const{ return m_environment; }
165 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
166 inline void SetEnvironment(const Environment& value) { m_environmentHasBeenSet = true; m_environment = value; }
167 inline void SetEnvironment(Environment&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
169 inline UpdateFunctionConfigurationRequest& WithEnvironment(Environment&& value) { SetEnvironment(std::move(value)); return *this;}
171
173
187 inline const Runtime& GetRuntime() const{ return m_runtime; }
188 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
189 inline void SetRuntime(const Runtime& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
190 inline void SetRuntime(Runtime&& value) { m_runtimeHasBeenSet = true; m_runtime = std::move(value); }
191 inline UpdateFunctionConfigurationRequest& WithRuntime(const Runtime& value) { SetRuntime(value); return *this;}
192 inline UpdateFunctionConfigurationRequest& WithRuntime(Runtime&& value) { SetRuntime(std::move(value)); return *this;}
194
196
203 inline const DeadLetterConfig& GetDeadLetterConfig() const{ return m_deadLetterConfig; }
204 inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
205 inline void SetDeadLetterConfig(const DeadLetterConfig& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = value; }
206 inline void SetDeadLetterConfig(DeadLetterConfig&& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = std::move(value); }
210
212
225 inline const Aws::String& GetKMSKeyArn() const{ return m_kMSKeyArn; }
226 inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
227 inline void SetKMSKeyArn(const Aws::String& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = value; }
228 inline void SetKMSKeyArn(Aws::String&& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = std::move(value); }
229 inline void SetKMSKeyArn(const char* value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn.assign(value); }
230 inline UpdateFunctionConfigurationRequest& WithKMSKeyArn(const Aws::String& value) { SetKMSKeyArn(value); return *this;}
231 inline UpdateFunctionConfigurationRequest& WithKMSKeyArn(Aws::String&& value) { SetKMSKeyArn(std::move(value)); return *this;}
232 inline UpdateFunctionConfigurationRequest& WithKMSKeyArn(const char* value) { SetKMSKeyArn(value); return *this;}
234
236
241 inline const TracingConfig& GetTracingConfig() const{ return m_tracingConfig; }
242 inline bool TracingConfigHasBeenSet() const { return m_tracingConfigHasBeenSet; }
243 inline void SetTracingConfig(const TracingConfig& value) { m_tracingConfigHasBeenSet = true; m_tracingConfig = value; }
244 inline void SetTracingConfig(TracingConfig&& value) { m_tracingConfigHasBeenSet = true; m_tracingConfig = std::move(value); }
246 inline UpdateFunctionConfigurationRequest& WithTracingConfig(TracingConfig&& value) { SetTracingConfig(std::move(value)); return *this;}
248
250
255 inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
256 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
257 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
258 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
259 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
260 inline UpdateFunctionConfigurationRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
261 inline UpdateFunctionConfigurationRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
262 inline UpdateFunctionConfigurationRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
264
266
272 inline const Aws::Vector<Aws::String>& GetLayers() const{ return m_layers; }
273 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
274 inline void SetLayers(const Aws::Vector<Aws::String>& value) { m_layersHasBeenSet = true; m_layers = value; }
275 inline void SetLayers(Aws::Vector<Aws::String>&& value) { m_layersHasBeenSet = true; m_layers = std::move(value); }
277 inline UpdateFunctionConfigurationRequest& WithLayers(Aws::Vector<Aws::String>&& value) { SetLayers(std::move(value)); return *this;}
278 inline UpdateFunctionConfigurationRequest& AddLayers(const Aws::String& value) { m_layersHasBeenSet = true; m_layers.push_back(value); return *this; }
279 inline UpdateFunctionConfigurationRequest& AddLayers(Aws::String&& value) { m_layersHasBeenSet = true; m_layers.push_back(std::move(value)); return *this; }
280 inline UpdateFunctionConfigurationRequest& AddLayers(const char* value) { m_layersHasBeenSet = true; m_layers.push_back(value); return *this; }
282
284
287 inline const Aws::Vector<FileSystemConfig>& GetFileSystemConfigs() const{ return m_fileSystemConfigs; }
288 inline bool FileSystemConfigsHasBeenSet() const { return m_fileSystemConfigsHasBeenSet; }
289 inline void SetFileSystemConfigs(const Aws::Vector<FileSystemConfig>& value) { m_fileSystemConfigsHasBeenSet = true; m_fileSystemConfigs = value; }
290 inline void SetFileSystemConfigs(Aws::Vector<FileSystemConfig>&& value) { m_fileSystemConfigsHasBeenSet = true; m_fileSystemConfigs = std::move(value); }
293 inline UpdateFunctionConfigurationRequest& AddFileSystemConfigs(const FileSystemConfig& value) { m_fileSystemConfigsHasBeenSet = true; m_fileSystemConfigs.push_back(value); return *this; }
294 inline UpdateFunctionConfigurationRequest& AddFileSystemConfigs(FileSystemConfig&& value) { m_fileSystemConfigsHasBeenSet = true; m_fileSystemConfigs.push_back(std::move(value)); return *this; }
296
298
304 inline const ImageConfig& GetImageConfig() const{ return m_imageConfig; }
305 inline bool ImageConfigHasBeenSet() const { return m_imageConfigHasBeenSet; }
306 inline void SetImageConfig(const ImageConfig& value) { m_imageConfigHasBeenSet = true; m_imageConfig = value; }
307 inline void SetImageConfig(ImageConfig&& value) { m_imageConfigHasBeenSet = true; m_imageConfig = std::move(value); }
309 inline UpdateFunctionConfigurationRequest& WithImageConfig(ImageConfig&& value) { SetImageConfig(std::move(value)); return *this;}
311
313
320 inline const EphemeralStorage& GetEphemeralStorage() const{ return m_ephemeralStorage; }
321 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
322 inline void SetEphemeralStorage(const EphemeralStorage& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = value; }
323 inline void SetEphemeralStorage(EphemeralStorage&& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = std::move(value); }
327
329
334 inline const SnapStart& GetSnapStart() const{ return m_snapStart; }
335 inline bool SnapStartHasBeenSet() const { return m_snapStartHasBeenSet; }
336 inline void SetSnapStart(const SnapStart& value) { m_snapStartHasBeenSet = true; m_snapStart = value; }
337 inline void SetSnapStart(SnapStart&& value) { m_snapStartHasBeenSet = true; m_snapStart = std::move(value); }
338 inline UpdateFunctionConfigurationRequest& WithSnapStart(const SnapStart& value) { SetSnapStart(value); return *this;}
339 inline UpdateFunctionConfigurationRequest& WithSnapStart(SnapStart&& value) { SetSnapStart(std::move(value)); return *this;}
341
343
346 inline const LoggingConfig& GetLoggingConfig() const{ return m_loggingConfig; }
347 inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; }
348 inline void SetLoggingConfig(const LoggingConfig& value) { m_loggingConfigHasBeenSet = true; m_loggingConfig = value; }
349 inline void SetLoggingConfig(LoggingConfig&& value) { m_loggingConfigHasBeenSet = true; m_loggingConfig = std::move(value); }
351 inline UpdateFunctionConfigurationRequest& WithLoggingConfig(LoggingConfig&& value) { SetLoggingConfig(std::move(value)); return *this;}
353 private:
354
355 Aws::String m_functionName;
356 bool m_functionNameHasBeenSet = false;
357
358 Aws::String m_role;
359 bool m_roleHasBeenSet = false;
360
361 Aws::String m_handler;
362 bool m_handlerHasBeenSet = false;
363
364 Aws::String m_description;
365 bool m_descriptionHasBeenSet = false;
366
367 int m_timeout;
368 bool m_timeoutHasBeenSet = false;
369
370 int m_memorySize;
371 bool m_memorySizeHasBeenSet = false;
372
373 VpcConfig m_vpcConfig;
374 bool m_vpcConfigHasBeenSet = false;
375
376 Environment m_environment;
377 bool m_environmentHasBeenSet = false;
378
379 Runtime m_runtime;
380 bool m_runtimeHasBeenSet = false;
381
382 DeadLetterConfig m_deadLetterConfig;
383 bool m_deadLetterConfigHasBeenSet = false;
384
385 Aws::String m_kMSKeyArn;
386 bool m_kMSKeyArnHasBeenSet = false;
387
388 TracingConfig m_tracingConfig;
389 bool m_tracingConfigHasBeenSet = false;
390
391 Aws::String m_revisionId;
392 bool m_revisionIdHasBeenSet = false;
393
395 bool m_layersHasBeenSet = false;
396
397 Aws::Vector<FileSystemConfig> m_fileSystemConfigs;
398 bool m_fileSystemConfigsHasBeenSet = false;
399
400 ImageConfig m_imageConfig;
401 bool m_imageConfigHasBeenSet = false;
402
403 EphemeralStorage m_ephemeralStorage;
404 bool m_ephemeralStorageHasBeenSet = false;
405
406 SnapStart m_snapStart;
407 bool m_snapStartHasBeenSet = false;
408
409 LoggingConfig m_loggingConfig;
410 bool m_loggingConfigHasBeenSet = false;
411 };
412
413} // namespace Model
414} // namespace Lambda
415} // namespace Aws
UpdateFunctionConfigurationRequest & WithRole(Aws::String &&value)
AWS_LAMBDA_API Aws::String SerializePayload() const override
UpdateFunctionConfigurationRequest & AddLayers(const Aws::String &value)
UpdateFunctionConfigurationRequest & WithImageConfig(ImageConfig &&value)
UpdateFunctionConfigurationRequest & WithDescription(const char *value)
UpdateFunctionConfigurationRequest & WithDescription(Aws::String &&value)
UpdateFunctionConfigurationRequest & WithVpcConfig(VpcConfig &&value)
UpdateFunctionConfigurationRequest & WithRevisionId(Aws::String &&value)
UpdateFunctionConfigurationRequest & WithFunctionName(Aws::String &&value)
UpdateFunctionConfigurationRequest & WithKMSKeyArn(const char *value)
UpdateFunctionConfigurationRequest & WithHandler(const char *value)
UpdateFunctionConfigurationRequest & AddLayers(Aws::String &&value)
UpdateFunctionConfigurationRequest & WithRevisionId(const char *value)
UpdateFunctionConfigurationRequest & WithHandler(Aws::String &&value)
UpdateFunctionConfigurationRequest & WithDeadLetterConfig(const DeadLetterConfig &value)
UpdateFunctionConfigurationRequest & AddFileSystemConfigs(FileSystemConfig &&value)
UpdateFunctionConfigurationRequest & WithDeadLetterConfig(DeadLetterConfig &&value)
UpdateFunctionConfigurationRequest & WithDescription(const Aws::String &value)
UpdateFunctionConfigurationRequest & WithFunctionName(const char *value)
UpdateFunctionConfigurationRequest & WithLayers(Aws::Vector< Aws::String > &&value)
UpdateFunctionConfigurationRequest & WithImageConfig(const ImageConfig &value)
const Aws::Vector< FileSystemConfig > & GetFileSystemConfigs() const
UpdateFunctionConfigurationRequest & WithLayers(const Aws::Vector< Aws::String > &value)
UpdateFunctionConfigurationRequest & WithFileSystemConfigs(const Aws::Vector< FileSystemConfig > &value)
UpdateFunctionConfigurationRequest & AddLayers(const char *value)
UpdateFunctionConfigurationRequest & WithTracingConfig(const TracingConfig &value)
void SetFileSystemConfigs(const Aws::Vector< FileSystemConfig > &value)
UpdateFunctionConfigurationRequest & WithEnvironment(Environment &&value)
UpdateFunctionConfigurationRequest & WithTracingConfig(TracingConfig &&value)
UpdateFunctionConfigurationRequest & WithFileSystemConfigs(Aws::Vector< FileSystemConfig > &&value)
UpdateFunctionConfigurationRequest & WithRuntime(const Runtime &value)
UpdateFunctionConfigurationRequest & WithRevisionId(const Aws::String &value)
UpdateFunctionConfigurationRequest & WithRuntime(Runtime &&value)
UpdateFunctionConfigurationRequest & WithLoggingConfig(const LoggingConfig &value)
UpdateFunctionConfigurationRequest & WithSnapStart(SnapStart &&value)
UpdateFunctionConfigurationRequest & WithEphemeralStorage(EphemeralStorage &&value)
UpdateFunctionConfigurationRequest & WithKMSKeyArn(Aws::String &&value)
UpdateFunctionConfigurationRequest & WithVpcConfig(const VpcConfig &value)
UpdateFunctionConfigurationRequest & WithEnvironment(const Environment &value)
UpdateFunctionConfigurationRequest & WithKMSKeyArn(const Aws::String &value)
UpdateFunctionConfigurationRequest & WithRole(const char *value)
UpdateFunctionConfigurationRequest & AddFileSystemConfigs(const FileSystemConfig &value)
UpdateFunctionConfigurationRequest & WithSnapStart(const SnapStart &value)
UpdateFunctionConfigurationRequest & WithEphemeralStorage(const EphemeralStorage &value)
UpdateFunctionConfigurationRequest & WithLoggingConfig(LoggingConfig &&value)
UpdateFunctionConfigurationRequest & WithFunctionName(const Aws::String &value)
UpdateFunctionConfigurationRequest & WithRole(const Aws::String &value)
UpdateFunctionConfigurationRequest & WithHandler(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector