AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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/AmazonManagedKafkaEventSourceConfig.h>
15#include <aws/lambda/model/SelfManagedKafkaEventSourceConfig.h>
16#include <aws/lambda/model/DocumentDBEventSourceConfig.h>
17#include <aws/lambda/model/EventSourceMappingMetricsConfig.h>
18#include <aws/lambda/model/ProvisionedPollerConfig.h>
19#include <aws/lambda/model/SourceAccessConfiguration.h>
20#include <aws/lambda/model/FunctionResponseType.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Lambda
26{
27namespace Model
28{
29
33 {
34 public:
35 AWS_LAMBDA_API UpdateEventSourceMappingRequest() = default;
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 "UpdateEventSourceMapping"; }
42
43 AWS_LAMBDA_API Aws::String SerializePayload() const override;
44
45
47
50 inline const Aws::String& GetUUID() const { return m_uUID; }
51 inline bool UUIDHasBeenSet() const { return m_uUIDHasBeenSet; }
52 template<typename UUIDT = Aws::String>
53 void SetUUID(UUIDT&& value) { m_uUIDHasBeenSet = true; m_uUID = std::forward<UUIDT>(value); }
54 template<typename UUIDT = Aws::String>
55 UpdateEventSourceMappingRequest& WithUUID(UUIDT&& value) { SetUUID(std::forward<UUIDT>(value)); return *this;}
57
59
71 inline const Aws::String& GetFunctionName() const { return m_functionName; }
72 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
73 template<typename FunctionNameT = Aws::String>
74 void SetFunctionName(FunctionNameT&& value) { m_functionNameHasBeenSet = true; m_functionName = std::forward<FunctionNameT>(value); }
75 template<typename FunctionNameT = Aws::String>
76 UpdateEventSourceMappingRequest& WithFunctionName(FunctionNameT&& value) { SetFunctionName(std::forward<FunctionNameT>(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 template<typename FilterCriteriaT = FilterCriteria>
121 void SetFilterCriteria(FilterCriteriaT&& value) { m_filterCriteriaHasBeenSet = true; m_filterCriteria = std::forward<FilterCriteriaT>(value); }
122 template<typename FilterCriteriaT = FilterCriteria>
123 UpdateEventSourceMappingRequest& WithFilterCriteria(FilterCriteriaT&& value) { SetFilterCriteria(std::forward<FilterCriteriaT>(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 template<typename DestinationConfigT = DestinationConfig>
157 void SetDestinationConfig(DestinationConfigT&& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = std::forward<DestinationConfigT>(value); }
158 template<typename DestinationConfigT = DestinationConfig>
159 UpdateEventSourceMappingRequest& WithDestinationConfig(DestinationConfigT&& value) { SetDestinationConfig(std::forward<DestinationConfigT>(value)); return *this;}
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 template<typename SourceAccessConfigurationsT = Aws::Vector<SourceAccessConfiguration>>
215 void SetSourceAccessConfigurations(SourceAccessConfigurationsT&& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations = std::forward<SourceAccessConfigurationsT>(value); }
216 template<typename SourceAccessConfigurationsT = Aws::Vector<SourceAccessConfiguration>>
217 UpdateEventSourceMappingRequest& WithSourceAccessConfigurations(SourceAccessConfigurationsT&& value) { SetSourceAccessConfigurations(std::forward<SourceAccessConfigurationsT>(value)); return *this;}
218 template<typename SourceAccessConfigurationsT = SourceAccessConfiguration>
219 UpdateEventSourceMappingRequest& AddSourceAccessConfigurations(SourceAccessConfigurationsT&& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations.emplace_back(std::forward<SourceAccessConfigurationsT>(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 template<typename FunctionResponseTypesT = Aws::Vector<FunctionResponseType>>
242 void SetFunctionResponseTypes(FunctionResponseTypesT&& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes = std::forward<FunctionResponseTypesT>(value); }
243 template<typename FunctionResponseTypesT = Aws::Vector<FunctionResponseType>>
244 UpdateEventSourceMappingRequest& WithFunctionResponseTypes(FunctionResponseTypesT&& value) { SetFunctionResponseTypes(std::forward<FunctionResponseTypesT>(value)); return *this;}
245 inline UpdateEventSourceMappingRequest& AddFunctionResponseTypes(FunctionResponseType value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes.push_back(value); return *this; }
247
249
255 inline const ScalingConfig& GetScalingConfig() const { return m_scalingConfig; }
256 inline bool ScalingConfigHasBeenSet() const { return m_scalingConfigHasBeenSet; }
257 template<typename ScalingConfigT = ScalingConfig>
258 void SetScalingConfig(ScalingConfigT&& value) { m_scalingConfigHasBeenSet = true; m_scalingConfig = std::forward<ScalingConfigT>(value); }
259 template<typename ScalingConfigT = ScalingConfig>
260 UpdateEventSourceMappingRequest& WithScalingConfig(ScalingConfigT&& value) { SetScalingConfig(std::forward<ScalingConfigT>(value)); return *this;}
262
264
265 inline const AmazonManagedKafkaEventSourceConfig& GetAmazonManagedKafkaEventSourceConfig() const { return m_amazonManagedKafkaEventSourceConfig; }
266 inline bool AmazonManagedKafkaEventSourceConfigHasBeenSet() const { return m_amazonManagedKafkaEventSourceConfigHasBeenSet; }
267 template<typename AmazonManagedKafkaEventSourceConfigT = AmazonManagedKafkaEventSourceConfig>
268 void SetAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT&& value) { m_amazonManagedKafkaEventSourceConfigHasBeenSet = true; m_amazonManagedKafkaEventSourceConfig = std::forward<AmazonManagedKafkaEventSourceConfigT>(value); }
269 template<typename AmazonManagedKafkaEventSourceConfigT = AmazonManagedKafkaEventSourceConfig>
270 UpdateEventSourceMappingRequest& WithAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT&& value) { SetAmazonManagedKafkaEventSourceConfig(std::forward<AmazonManagedKafkaEventSourceConfigT>(value)); return *this;}
272
274
275 inline const SelfManagedKafkaEventSourceConfig& GetSelfManagedKafkaEventSourceConfig() const { return m_selfManagedKafkaEventSourceConfig; }
276 inline bool SelfManagedKafkaEventSourceConfigHasBeenSet() const { return m_selfManagedKafkaEventSourceConfigHasBeenSet; }
277 template<typename SelfManagedKafkaEventSourceConfigT = SelfManagedKafkaEventSourceConfig>
278 void SetSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT&& value) { m_selfManagedKafkaEventSourceConfigHasBeenSet = true; m_selfManagedKafkaEventSourceConfig = std::forward<SelfManagedKafkaEventSourceConfigT>(value); }
279 template<typename SelfManagedKafkaEventSourceConfigT = SelfManagedKafkaEventSourceConfig>
280 UpdateEventSourceMappingRequest& WithSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT&& value) { SetSelfManagedKafkaEventSourceConfig(std::forward<SelfManagedKafkaEventSourceConfigT>(value)); return *this;}
282
284
287 inline const DocumentDBEventSourceConfig& GetDocumentDBEventSourceConfig() const { return m_documentDBEventSourceConfig; }
288 inline bool DocumentDBEventSourceConfigHasBeenSet() const { return m_documentDBEventSourceConfigHasBeenSet; }
289 template<typename DocumentDBEventSourceConfigT = DocumentDBEventSourceConfig>
290 void SetDocumentDBEventSourceConfig(DocumentDBEventSourceConfigT&& value) { m_documentDBEventSourceConfigHasBeenSet = true; m_documentDBEventSourceConfig = std::forward<DocumentDBEventSourceConfigT>(value); }
291 template<typename DocumentDBEventSourceConfigT = DocumentDBEventSourceConfig>
292 UpdateEventSourceMappingRequest& WithDocumentDBEventSourceConfig(DocumentDBEventSourceConfigT&& value) { SetDocumentDBEventSourceConfig(std::forward<DocumentDBEventSourceConfigT>(value)); return *this;}
294
296
303 inline const Aws::String& GetKMSKeyArn() const { return m_kMSKeyArn; }
304 inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
305 template<typename KMSKeyArnT = Aws::String>
306 void SetKMSKeyArn(KMSKeyArnT&& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = std::forward<KMSKeyArnT>(value); }
307 template<typename KMSKeyArnT = Aws::String>
308 UpdateEventSourceMappingRequest& WithKMSKeyArn(KMSKeyArnT&& value) { SetKMSKeyArn(std::forward<KMSKeyArnT>(value)); return *this;}
310
312
317 inline const EventSourceMappingMetricsConfig& GetMetricsConfig() const { return m_metricsConfig; }
318 inline bool MetricsConfigHasBeenSet() const { return m_metricsConfigHasBeenSet; }
319 template<typename MetricsConfigT = EventSourceMappingMetricsConfig>
320 void SetMetricsConfig(MetricsConfigT&& value) { m_metricsConfigHasBeenSet = true; m_metricsConfig = std::forward<MetricsConfigT>(value); }
321 template<typename MetricsConfigT = EventSourceMappingMetricsConfig>
322 UpdateEventSourceMappingRequest& WithMetricsConfig(MetricsConfigT&& value) { SetMetricsConfig(std::forward<MetricsConfigT>(value)); return *this;}
324
326
332 inline const ProvisionedPollerConfig& GetProvisionedPollerConfig() const { return m_provisionedPollerConfig; }
333 inline bool ProvisionedPollerConfigHasBeenSet() const { return m_provisionedPollerConfigHasBeenSet; }
334 template<typename ProvisionedPollerConfigT = ProvisionedPollerConfig>
335 void SetProvisionedPollerConfig(ProvisionedPollerConfigT&& value) { m_provisionedPollerConfigHasBeenSet = true; m_provisionedPollerConfig = std::forward<ProvisionedPollerConfigT>(value); }
336 template<typename ProvisionedPollerConfigT = ProvisionedPollerConfig>
337 UpdateEventSourceMappingRequest& WithProvisionedPollerConfig(ProvisionedPollerConfigT&& value) { SetProvisionedPollerConfig(std::forward<ProvisionedPollerConfigT>(value)); return *this;}
339 private:
340
341 Aws::String m_uUID;
342 bool m_uUIDHasBeenSet = false;
343
344 Aws::String m_functionName;
345 bool m_functionNameHasBeenSet = false;
346
347 bool m_enabled{false};
348 bool m_enabledHasBeenSet = false;
349
350 int m_batchSize{0};
351 bool m_batchSizeHasBeenSet = false;
352
353 FilterCriteria m_filterCriteria;
354 bool m_filterCriteriaHasBeenSet = false;
355
356 int m_maximumBatchingWindowInSeconds{0};
357 bool m_maximumBatchingWindowInSecondsHasBeenSet = false;
358
359 DestinationConfig m_destinationConfig;
360 bool m_destinationConfigHasBeenSet = false;
361
362 int m_maximumRecordAgeInSeconds{0};
363 bool m_maximumRecordAgeInSecondsHasBeenSet = false;
364
365 bool m_bisectBatchOnFunctionError{false};
366 bool m_bisectBatchOnFunctionErrorHasBeenSet = false;
367
368 int m_maximumRetryAttempts{0};
369 bool m_maximumRetryAttemptsHasBeenSet = false;
370
371 int m_parallelizationFactor{0};
372 bool m_parallelizationFactorHasBeenSet = false;
373
374 Aws::Vector<SourceAccessConfiguration> m_sourceAccessConfigurations;
375 bool m_sourceAccessConfigurationsHasBeenSet = false;
376
377 int m_tumblingWindowInSeconds{0};
378 bool m_tumblingWindowInSecondsHasBeenSet = false;
379
380 Aws::Vector<FunctionResponseType> m_functionResponseTypes;
381 bool m_functionResponseTypesHasBeenSet = false;
382
383 ScalingConfig m_scalingConfig;
384 bool m_scalingConfigHasBeenSet = false;
385
386 AmazonManagedKafkaEventSourceConfig m_amazonManagedKafkaEventSourceConfig;
387 bool m_amazonManagedKafkaEventSourceConfigHasBeenSet = false;
388
389 SelfManagedKafkaEventSourceConfig m_selfManagedKafkaEventSourceConfig;
390 bool m_selfManagedKafkaEventSourceConfigHasBeenSet = false;
391
392 DocumentDBEventSourceConfig m_documentDBEventSourceConfig;
393 bool m_documentDBEventSourceConfigHasBeenSet = false;
394
395 Aws::String m_kMSKeyArn;
396 bool m_kMSKeyArnHasBeenSet = false;
397
398 EventSourceMappingMetricsConfig m_metricsConfig;
399 bool m_metricsConfigHasBeenSet = false;
400
401 ProvisionedPollerConfig m_provisionedPollerConfig;
402 bool m_provisionedPollerConfigHasBeenSet = false;
403 };
404
405} // namespace Model
406} // namespace Lambda
407} // namespace Aws
const SelfManagedKafkaEventSourceConfig & GetSelfManagedKafkaEventSourceConfig() const
UpdateEventSourceMappingRequest & WithSourceAccessConfigurations(SourceAccessConfigurationsT &&value)
UpdateEventSourceMappingRequest & WithSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT &&value)
UpdateEventSourceMappingRequest & WithProvisionedPollerConfig(ProvisionedPollerConfigT &&value)
const DocumentDBEventSourceConfig & GetDocumentDBEventSourceConfig() const
UpdateEventSourceMappingRequest & WithBisectBatchOnFunctionError(bool value)
UpdateEventSourceMappingRequest & WithFunctionName(FunctionNameT &&value)
UpdateEventSourceMappingRequest & WithFunctionResponseTypes(FunctionResponseTypesT &&value)
UpdateEventSourceMappingRequest & WithMaximumBatchingWindowInSeconds(int value)
AWS_LAMBDA_API UpdateEventSourceMappingRequest()=default
UpdateEventSourceMappingRequest & WithTumblingWindowInSeconds(int value)
const Aws::Vector< FunctionResponseType > & GetFunctionResponseTypes() const
UpdateEventSourceMappingRequest & WithDestinationConfig(DestinationConfigT &&value)
void SetDocumentDBEventSourceConfig(DocumentDBEventSourceConfigT &&value)
void SetSourceAccessConfigurations(SourceAccessConfigurationsT &&value)
UpdateEventSourceMappingRequest & WithFilterCriteria(FilterCriteriaT &&value)
UpdateEventSourceMappingRequest & WithMaximumRecordAgeInSeconds(int value)
AWS_LAMBDA_API Aws::String SerializePayload() const override
UpdateEventSourceMappingRequest & WithEnabled(bool value)
UpdateEventSourceMappingRequest & WithMaximumRetryAttempts(int value)
UpdateEventSourceMappingRequest & AddSourceAccessConfigurations(SourceAccessConfigurationsT &&value)
UpdateEventSourceMappingRequest & WithUUID(UUIDT &&value)
void SetAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT &&value)
void SetSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT &&value)
UpdateEventSourceMappingRequest & WithParallelizationFactor(int value)
UpdateEventSourceMappingRequest & WithScalingConfig(ScalingConfigT &&value)
UpdateEventSourceMappingRequest & WithDocumentDBEventSourceConfig(DocumentDBEventSourceConfigT &&value)
UpdateEventSourceMappingRequest & WithMetricsConfig(MetricsConfigT &&value)
UpdateEventSourceMappingRequest & WithKMSKeyArn(KMSKeyArnT &&value)
UpdateEventSourceMappingRequest & AddFunctionResponseTypes(FunctionResponseType value)
UpdateEventSourceMappingRequest & WithAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT &&value)
const Aws::Vector< SourceAccessConfiguration > & GetSourceAccessConfigurations() const
UpdateEventSourceMappingRequest & WithBatchSize(int value)
const EventSourceMappingMetricsConfig & GetMetricsConfig() const
const AmazonManagedKafkaEventSourceConfig & GetAmazonManagedKafkaEventSourceConfig() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector