AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateEventSourceMappingRequest.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/FilterCriteria.h>
11#include <aws/lambda/model/DestinationConfig.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lambda/model/ScalingConfig.h>
14#include <aws/lambda/model/DocumentDBEventSourceConfig.h>
15#include <aws/lambda/model/SourceAccessConfiguration.h>
16#include <aws/lambda/model/FunctionResponseType.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Lambda
22{
23namespace Model
24{
25
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateEventSourceMapping"; }
38
39 AWS_LAMBDA_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetUUID() const{ return m_uUID; }
47 inline bool UUIDHasBeenSet() const { return m_uUIDHasBeenSet; }
48 inline void SetUUID(const Aws::String& value) { m_uUIDHasBeenSet = true; m_uUID = value; }
49 inline void SetUUID(Aws::String&& value) { m_uUIDHasBeenSet = true; m_uUID = std::move(value); }
50 inline void SetUUID(const char* value) { m_uUIDHasBeenSet = true; m_uUID.assign(value); }
51 inline UpdateEventSourceMappingRequest& WithUUID(const Aws::String& value) { SetUUID(value); return *this;}
52 inline UpdateEventSourceMappingRequest& WithUUID(Aws::String&& value) { SetUUID(std::move(value)); return *this;}
53 inline UpdateEventSourceMappingRequest& WithUUID(const char* value) { SetUUID(value); return *this;}
55
57
69 inline const Aws::String& GetFunctionName() const{ return m_functionName; }
70 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
71 inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
72 inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
73 inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
74 inline UpdateEventSourceMappingRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
75 inline UpdateEventSourceMappingRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
76 inline UpdateEventSourceMappingRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
78
80
84 inline bool GetEnabled() const{ return m_enabled; }
85 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
86 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
87 inline UpdateEventSourceMappingRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
89
91
105 inline int GetBatchSize() const{ return m_batchSize; }
106 inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; }
107 inline void SetBatchSize(int value) { m_batchSizeHasBeenSet = true; m_batchSize = value; }
108 inline UpdateEventSourceMappingRequest& WithBatchSize(int value) { SetBatchSize(value); return *this;}
110
112
118 inline const FilterCriteria& GetFilterCriteria() const{ return m_filterCriteria; }
119 inline bool FilterCriteriaHasBeenSet() const { return m_filterCriteriaHasBeenSet; }
120 inline void SetFilterCriteria(const FilterCriteria& value) { m_filterCriteriaHasBeenSet = true; m_filterCriteria = value; }
121 inline void SetFilterCriteria(FilterCriteria&& value) { m_filterCriteriaHasBeenSet = true; m_filterCriteria = std::move(value); }
123 inline UpdateEventSourceMappingRequest& WithFilterCriteria(FilterCriteria&& value) { SetFilterCriteria(std::move(value)); return *this;}
125
127
142 inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; }
143 inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; }
144 inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSecondsHasBeenSet = true; m_maximumBatchingWindowInSeconds = value; }
147
149
154 inline const DestinationConfig& GetDestinationConfig() const{ return m_destinationConfig; }
155 inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; }
156 inline void SetDestinationConfig(const DestinationConfig& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = value; }
157 inline void SetDestinationConfig(DestinationConfig&& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = std::move(value); }
161
163
167 inline int GetMaximumRecordAgeInSeconds() const{ return m_maximumRecordAgeInSeconds; }
168 inline bool MaximumRecordAgeInSecondsHasBeenSet() const { return m_maximumRecordAgeInSecondsHasBeenSet; }
169 inline void SetMaximumRecordAgeInSeconds(int value) { m_maximumRecordAgeInSecondsHasBeenSet = true; m_maximumRecordAgeInSeconds = value; }
172
174
178 inline bool GetBisectBatchOnFunctionError() const{ return m_bisectBatchOnFunctionError; }
179 inline bool BisectBatchOnFunctionErrorHasBeenSet() const { return m_bisectBatchOnFunctionErrorHasBeenSet; }
180 inline void SetBisectBatchOnFunctionError(bool value) { m_bisectBatchOnFunctionErrorHasBeenSet = true; m_bisectBatchOnFunctionError = value; }
183
185
190 inline int GetMaximumRetryAttempts() const{ return m_maximumRetryAttempts; }
191 inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; }
192 inline void SetMaximumRetryAttempts(int value) { m_maximumRetryAttemptsHasBeenSet = true; m_maximumRetryAttempts = value; }
195
197
201 inline int GetParallelizationFactor() const{ return m_parallelizationFactor; }
202 inline bool ParallelizationFactorHasBeenSet() const { return m_parallelizationFactorHasBeenSet; }
203 inline void SetParallelizationFactor(int value) { m_parallelizationFactorHasBeenSet = true; m_parallelizationFactor = value; }
206
208
212 inline const Aws::Vector<SourceAccessConfiguration>& GetSourceAccessConfigurations() const{ return m_sourceAccessConfigurations; }
213 inline bool SourceAccessConfigurationsHasBeenSet() const { return m_sourceAccessConfigurationsHasBeenSet; }
214 inline void SetSourceAccessConfigurations(const Aws::Vector<SourceAccessConfiguration>& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations = value; }
215 inline void SetSourceAccessConfigurations(Aws::Vector<SourceAccessConfiguration>&& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations = std::move(value); }
218 inline UpdateEventSourceMappingRequest& AddSourceAccessConfigurations(const SourceAccessConfiguration& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations.push_back(value); return *this; }
219 inline UpdateEventSourceMappingRequest& AddSourceAccessConfigurations(SourceAccessConfiguration&& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations.push_back(std::move(value)); return *this; }
221
223
228 inline int GetTumblingWindowInSeconds() const{ return m_tumblingWindowInSeconds; }
229 inline bool TumblingWindowInSecondsHasBeenSet() const { return m_tumblingWindowInSecondsHasBeenSet; }
230 inline void SetTumblingWindowInSeconds(int value) { m_tumblingWindowInSecondsHasBeenSet = true; m_tumblingWindowInSeconds = value; }
233
235
239 inline const Aws::Vector<FunctionResponseType>& GetFunctionResponseTypes() const{ return m_functionResponseTypes; }
240 inline bool FunctionResponseTypesHasBeenSet() const { return m_functionResponseTypesHasBeenSet; }
241 inline void SetFunctionResponseTypes(const Aws::Vector<FunctionResponseType>& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes = value; }
242 inline void SetFunctionResponseTypes(Aws::Vector<FunctionResponseType>&& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes = std::move(value); }
245 inline UpdateEventSourceMappingRequest& AddFunctionResponseTypes(const FunctionResponseType& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes.push_back(value); return *this; }
246 inline UpdateEventSourceMappingRequest& AddFunctionResponseTypes(FunctionResponseType&& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes.push_back(std::move(value)); return *this; }
248
250
256 inline const ScalingConfig& GetScalingConfig() const{ return m_scalingConfig; }
257 inline bool ScalingConfigHasBeenSet() const { return m_scalingConfigHasBeenSet; }
258 inline void SetScalingConfig(const ScalingConfig& value) { m_scalingConfigHasBeenSet = true; m_scalingConfig = value; }
259 inline void SetScalingConfig(ScalingConfig&& value) { m_scalingConfigHasBeenSet = true; m_scalingConfig = std::move(value); }
261 inline UpdateEventSourceMappingRequest& WithScalingConfig(ScalingConfig&& value) { SetScalingConfig(std::move(value)); return *this;}
263
265
268 inline const DocumentDBEventSourceConfig& GetDocumentDBEventSourceConfig() const{ return m_documentDBEventSourceConfig; }
269 inline bool DocumentDBEventSourceConfigHasBeenSet() const { return m_documentDBEventSourceConfigHasBeenSet; }
270 inline void SetDocumentDBEventSourceConfig(const DocumentDBEventSourceConfig& value) { m_documentDBEventSourceConfigHasBeenSet = true; m_documentDBEventSourceConfig = value; }
271 inline void SetDocumentDBEventSourceConfig(DocumentDBEventSourceConfig&& value) { m_documentDBEventSourceConfigHasBeenSet = true; m_documentDBEventSourceConfig = std::move(value); }
275
277
284 inline const Aws::String& GetKMSKeyArn() const{ return m_kMSKeyArn; }
285 inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
286 inline void SetKMSKeyArn(const Aws::String& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = value; }
287 inline void SetKMSKeyArn(Aws::String&& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = std::move(value); }
288 inline void SetKMSKeyArn(const char* value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn.assign(value); }
289 inline UpdateEventSourceMappingRequest& WithKMSKeyArn(const Aws::String& value) { SetKMSKeyArn(value); return *this;}
290 inline UpdateEventSourceMappingRequest& WithKMSKeyArn(Aws::String&& value) { SetKMSKeyArn(std::move(value)); return *this;}
291 inline UpdateEventSourceMappingRequest& WithKMSKeyArn(const char* value) { SetKMSKeyArn(value); return *this;}
293 private:
294
295 Aws::String m_uUID;
296 bool m_uUIDHasBeenSet = false;
297
298 Aws::String m_functionName;
299 bool m_functionNameHasBeenSet = false;
300
301 bool m_enabled;
302 bool m_enabledHasBeenSet = false;
303
304 int m_batchSize;
305 bool m_batchSizeHasBeenSet = false;
306
307 FilterCriteria m_filterCriteria;
308 bool m_filterCriteriaHasBeenSet = false;
309
310 int m_maximumBatchingWindowInSeconds;
311 bool m_maximumBatchingWindowInSecondsHasBeenSet = false;
312
313 DestinationConfig m_destinationConfig;
314 bool m_destinationConfigHasBeenSet = false;
315
316 int m_maximumRecordAgeInSeconds;
317 bool m_maximumRecordAgeInSecondsHasBeenSet = false;
318
319 bool m_bisectBatchOnFunctionError;
320 bool m_bisectBatchOnFunctionErrorHasBeenSet = false;
321
322 int m_maximumRetryAttempts;
323 bool m_maximumRetryAttemptsHasBeenSet = false;
324
325 int m_parallelizationFactor;
326 bool m_parallelizationFactorHasBeenSet = false;
327
328 Aws::Vector<SourceAccessConfiguration> m_sourceAccessConfigurations;
329 bool m_sourceAccessConfigurationsHasBeenSet = false;
330
331 int m_tumblingWindowInSeconds;
332 bool m_tumblingWindowInSecondsHasBeenSet = false;
333
334 Aws::Vector<FunctionResponseType> m_functionResponseTypes;
335 bool m_functionResponseTypesHasBeenSet = false;
336
337 ScalingConfig m_scalingConfig;
338 bool m_scalingConfigHasBeenSet = false;
339
340 DocumentDBEventSourceConfig m_documentDBEventSourceConfig;
341 bool m_documentDBEventSourceConfigHasBeenSet = false;
342
343 Aws::String m_kMSKeyArn;
344 bool m_kMSKeyArnHasBeenSet = false;
345 };
346
347} // namespace Model
348} // namespace Lambda
349} // namespace Aws
UpdateEventSourceMappingRequest & WithScalingConfig(const ScalingConfig &value)
UpdateEventSourceMappingRequest & WithFunctionResponseTypes(const Aws::Vector< FunctionResponseType > &value)
UpdateEventSourceMappingRequest & WithSourceAccessConfigurations(const Aws::Vector< SourceAccessConfiguration > &value)
UpdateEventSourceMappingRequest & WithKMSKeyArn(const char *value)
UpdateEventSourceMappingRequest & AddSourceAccessConfigurations(SourceAccessConfiguration &&value)
UpdateEventSourceMappingRequest & WithFunctionName(const Aws::String &value)
void SetSourceAccessConfigurations(Aws::Vector< SourceAccessConfiguration > &&value)
void SetFunctionResponseTypes(Aws::Vector< FunctionResponseType > &&value)
const DocumentDBEventSourceConfig & GetDocumentDBEventSourceConfig() const
UpdateEventSourceMappingRequest & AddFunctionResponseTypes(const FunctionResponseType &value)
UpdateEventSourceMappingRequest & WithBisectBatchOnFunctionError(bool value)
void SetDocumentDBEventSourceConfig(DocumentDBEventSourceConfig &&value)
UpdateEventSourceMappingRequest & WithFilterCriteria(const FilterCriteria &value)
UpdateEventSourceMappingRequest & WithSourceAccessConfigurations(Aws::Vector< SourceAccessConfiguration > &&value)
UpdateEventSourceMappingRequest & WithMaximumBatchingWindowInSeconds(int value)
UpdateEventSourceMappingRequest & WithDestinationConfig(DestinationConfig &&value)
UpdateEventSourceMappingRequest & WithFilterCriteria(FilterCriteria &&value)
UpdateEventSourceMappingRequest & WithTumblingWindowInSeconds(int value)
UpdateEventSourceMappingRequest & WithFunctionResponseTypes(Aws::Vector< FunctionResponseType > &&value)
void SetSourceAccessConfigurations(const Aws::Vector< SourceAccessConfiguration > &value)
UpdateEventSourceMappingRequest & WithDestinationConfig(const DestinationConfig &value)
UpdateEventSourceMappingRequest & WithFunctionName(const char *value)
const Aws::Vector< FunctionResponseType > & GetFunctionResponseTypes() const
UpdateEventSourceMappingRequest & WithUUID(Aws::String &&value)
UpdateEventSourceMappingRequest & WithKMSKeyArn(const Aws::String &value)
UpdateEventSourceMappingRequest & WithUUID(const char *value)
UpdateEventSourceMappingRequest & WithKMSKeyArn(Aws::String &&value)
UpdateEventSourceMappingRequest & WithMaximumRecordAgeInSeconds(int value)
AWS_LAMBDA_API Aws::String SerializePayload() const override
void SetDocumentDBEventSourceConfig(const DocumentDBEventSourceConfig &value)
UpdateEventSourceMappingRequest & WithEnabled(bool value)
UpdateEventSourceMappingRequest & WithDocumentDBEventSourceConfig(DocumentDBEventSourceConfig &&value)
UpdateEventSourceMappingRequest & WithMaximumRetryAttempts(int value)
UpdateEventSourceMappingRequest & AddSourceAccessConfigurations(const SourceAccessConfiguration &value)
UpdateEventSourceMappingRequest & WithScalingConfig(ScalingConfig &&value)
UpdateEventSourceMappingRequest & WithFunctionName(Aws::String &&value)
UpdateEventSourceMappingRequest & WithParallelizationFactor(int value)
UpdateEventSourceMappingRequest & AddFunctionResponseTypes(FunctionResponseType &&value)
UpdateEventSourceMappingRequest & WithUUID(const Aws::String &value)
UpdateEventSourceMappingRequest & WithDocumentDBEventSourceConfig(const DocumentDBEventSourceConfig &value)
void SetFunctionResponseTypes(const Aws::Vector< FunctionResponseType > &value)
const Aws::Vector< SourceAccessConfiguration > & GetSourceAccessConfigurations() const
UpdateEventSourceMappingRequest & WithBatchSize(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector