AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateEventSourceMappingRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lambda/LambdaRequest.h>
10#include <aws/lambda/Lambda_EXPORTS.h>
11#include <aws/lambda/model/AmazonManagedKafkaEventSourceConfig.h>
12#include <aws/lambda/model/DestinationConfig.h>
13#include <aws/lambda/model/DocumentDBEventSourceConfig.h>
14#include <aws/lambda/model/EventSourceMappingLoggingConfig.h>
15#include <aws/lambda/model/EventSourceMappingMetricsConfig.h>
16#include <aws/lambda/model/FilterCriteria.h>
17#include <aws/lambda/model/FunctionResponseType.h>
18#include <aws/lambda/model/ProvisionedPollerConfig.h>
19#include <aws/lambda/model/ScalingConfig.h>
20#include <aws/lambda/model/SelfManagedKafkaEventSourceConfig.h>
21#include <aws/lambda/model/SourceAccessConfiguration.h>
22
23#include <utility>
24
25namespace Aws {
26namespace Lambda {
27namespace Model {
28
32 public:
33 AWS_LAMBDA_API UpdateEventSourceMappingRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "UpdateEventSourceMapping"; }
40
41 AWS_LAMBDA_API Aws::String SerializePayload() const override;
42
44
47 inline const Aws::String& GetUUID() const { return m_uUID; }
48 inline bool UUIDHasBeenSet() const { return m_uUIDHasBeenSet; }
49 template <typename UUIDT = Aws::String>
50 void SetUUID(UUIDT&& value) {
51 m_uUIDHasBeenSet = true;
52 m_uUID = std::forward<UUIDT>(value);
53 }
54 template <typename UUIDT = Aws::String>
56 SetUUID(std::forward<UUIDT>(value));
57 return *this;
58 }
60
62
74 inline const Aws::String& GetFunctionName() const { return m_functionName; }
75 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
76 template <typename FunctionNameT = Aws::String>
77 void SetFunctionName(FunctionNameT&& value) {
78 m_functionNameHasBeenSet = true;
79 m_functionName = std::forward<FunctionNameT>(value);
80 }
81 template <typename FunctionNameT = Aws::String>
83 SetFunctionName(std::forward<FunctionNameT>(value));
84 return *this;
85 }
87
89
93 inline bool GetEnabled() const { return m_enabled; }
94 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
95 inline void SetEnabled(bool value) {
96 m_enabledHasBeenSet = true;
97 m_enabled = value;
98 }
100 SetEnabled(value);
101 return *this;
102 }
104
106
120 inline int GetBatchSize() const { return m_batchSize; }
121 inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; }
122 inline void SetBatchSize(int value) {
123 m_batchSizeHasBeenSet = true;
124 m_batchSize = value;
125 }
127 SetBatchSize(value);
128 return *this;
129 }
131
133
139 inline const FilterCriteria& GetFilterCriteria() const { return m_filterCriteria; }
140 inline bool FilterCriteriaHasBeenSet() const { return m_filterCriteriaHasBeenSet; }
141 template <typename FilterCriteriaT = FilterCriteria>
142 void SetFilterCriteria(FilterCriteriaT&& value) {
143 m_filterCriteriaHasBeenSet = true;
144 m_filterCriteria = std::forward<FilterCriteriaT>(value);
145 }
146 template <typename FilterCriteriaT = FilterCriteria>
148 SetFilterCriteria(std::forward<FilterCriteriaT>(value));
149 return *this;
150 }
152
154
169 inline int GetMaximumBatchingWindowInSeconds() const { return m_maximumBatchingWindowInSeconds; }
170 inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; }
171 inline void SetMaximumBatchingWindowInSeconds(int value) {
172 m_maximumBatchingWindowInSecondsHasBeenSet = true;
173 m_maximumBatchingWindowInSeconds = value;
174 }
177 return *this;
178 }
180
182
187 inline const DestinationConfig& GetDestinationConfig() const { return m_destinationConfig; }
188 inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; }
189 template <typename DestinationConfigT = DestinationConfig>
190 void SetDestinationConfig(DestinationConfigT&& value) {
191 m_destinationConfigHasBeenSet = true;
192 m_destinationConfig = std::forward<DestinationConfigT>(value);
193 }
194 template <typename DestinationConfigT = DestinationConfig>
196 SetDestinationConfig(std::forward<DestinationConfigT>(value));
197 return *this;
198 }
200
202
207 inline int GetMaximumRecordAgeInSeconds() const { return m_maximumRecordAgeInSeconds; }
208 inline bool MaximumRecordAgeInSecondsHasBeenSet() const { return m_maximumRecordAgeInSecondsHasBeenSet; }
209 inline void SetMaximumRecordAgeInSeconds(int value) {
210 m_maximumRecordAgeInSecondsHasBeenSet = true;
211 m_maximumRecordAgeInSeconds = value;
212 }
215 return *this;
216 }
218
220
224 inline bool GetBisectBatchOnFunctionError() const { return m_bisectBatchOnFunctionError; }
225 inline bool BisectBatchOnFunctionErrorHasBeenSet() const { return m_bisectBatchOnFunctionErrorHasBeenSet; }
226 inline void SetBisectBatchOnFunctionError(bool value) {
227 m_bisectBatchOnFunctionErrorHasBeenSet = true;
228 m_bisectBatchOnFunctionError = value;
229 }
232 return *this;
233 }
235
237
243 inline int GetMaximumRetryAttempts() const { return m_maximumRetryAttempts; }
244 inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; }
245 inline void SetMaximumRetryAttempts(int value) {
246 m_maximumRetryAttemptsHasBeenSet = true;
247 m_maximumRetryAttempts = value;
248 }
251 return *this;
252 }
254
256
260 inline int GetParallelizationFactor() const { return m_parallelizationFactor; }
261 inline bool ParallelizationFactorHasBeenSet() const { return m_parallelizationFactorHasBeenSet; }
262 inline void SetParallelizationFactor(int value) {
263 m_parallelizationFactorHasBeenSet = true;
264 m_parallelizationFactor = value;
265 }
268 return *this;
269 }
271
273
277 inline const Aws::Vector<SourceAccessConfiguration>& GetSourceAccessConfigurations() const { return m_sourceAccessConfigurations; }
278 inline bool SourceAccessConfigurationsHasBeenSet() const { return m_sourceAccessConfigurationsHasBeenSet; }
279 template <typename SourceAccessConfigurationsT = Aws::Vector<SourceAccessConfiguration>>
280 void SetSourceAccessConfigurations(SourceAccessConfigurationsT&& value) {
281 m_sourceAccessConfigurationsHasBeenSet = true;
282 m_sourceAccessConfigurations = std::forward<SourceAccessConfigurationsT>(value);
283 }
284 template <typename SourceAccessConfigurationsT = Aws::Vector<SourceAccessConfiguration>>
286 SetSourceAccessConfigurations(std::forward<SourceAccessConfigurationsT>(value));
287 return *this;
288 }
289 template <typename SourceAccessConfigurationsT = SourceAccessConfiguration>
291 m_sourceAccessConfigurationsHasBeenSet = true;
292 m_sourceAccessConfigurations.emplace_back(std::forward<SourceAccessConfigurationsT>(value));
293 return *this;
294 }
296
298
303 inline int GetTumblingWindowInSeconds() const { return m_tumblingWindowInSeconds; }
304 inline bool TumblingWindowInSecondsHasBeenSet() const { return m_tumblingWindowInSecondsHasBeenSet; }
305 inline void SetTumblingWindowInSeconds(int value) {
306 m_tumblingWindowInSecondsHasBeenSet = true;
307 m_tumblingWindowInSeconds = value;
308 }
311 return *this;
312 }
314
316
321 inline const Aws::Vector<FunctionResponseType>& GetFunctionResponseTypes() const { return m_functionResponseTypes; }
322 inline bool FunctionResponseTypesHasBeenSet() const { return m_functionResponseTypesHasBeenSet; }
323 template <typename FunctionResponseTypesT = Aws::Vector<FunctionResponseType>>
324 void SetFunctionResponseTypes(FunctionResponseTypesT&& value) {
325 m_functionResponseTypesHasBeenSet = true;
326 m_functionResponseTypes = std::forward<FunctionResponseTypesT>(value);
327 }
328 template <typename FunctionResponseTypesT = Aws::Vector<FunctionResponseType>>
330 SetFunctionResponseTypes(std::forward<FunctionResponseTypesT>(value));
331 return *this;
332 }
334 m_functionResponseTypesHasBeenSet = true;
335 m_functionResponseTypes.push_back(value);
336 return *this;
337 }
339
341
347 inline const ScalingConfig& GetScalingConfig() const { return m_scalingConfig; }
348 inline bool ScalingConfigHasBeenSet() const { return m_scalingConfigHasBeenSet; }
349 template <typename ScalingConfigT = ScalingConfig>
350 void SetScalingConfig(ScalingConfigT&& value) {
351 m_scalingConfigHasBeenSet = true;
352 m_scalingConfig = std::forward<ScalingConfigT>(value);
353 }
354 template <typename ScalingConfigT = ScalingConfig>
356 SetScalingConfig(std::forward<ScalingConfigT>(value));
357 return *this;
358 }
360
362
364 return m_amazonManagedKafkaEventSourceConfig;
365 }
366 inline bool AmazonManagedKafkaEventSourceConfigHasBeenSet() const { return m_amazonManagedKafkaEventSourceConfigHasBeenSet; }
367 template <typename AmazonManagedKafkaEventSourceConfigT = AmazonManagedKafkaEventSourceConfig>
368 void SetAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT&& value) {
369 m_amazonManagedKafkaEventSourceConfigHasBeenSet = true;
370 m_amazonManagedKafkaEventSourceConfig = std::forward<AmazonManagedKafkaEventSourceConfigT>(value);
371 }
372 template <typename AmazonManagedKafkaEventSourceConfigT = AmazonManagedKafkaEventSourceConfig>
373 UpdateEventSourceMappingRequest& WithAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT&& value) {
374 SetAmazonManagedKafkaEventSourceConfig(std::forward<AmazonManagedKafkaEventSourceConfigT>(value));
375 return *this;
376 }
378
380
382 return m_selfManagedKafkaEventSourceConfig;
383 }
384 inline bool SelfManagedKafkaEventSourceConfigHasBeenSet() const { return m_selfManagedKafkaEventSourceConfigHasBeenSet; }
385 template <typename SelfManagedKafkaEventSourceConfigT = SelfManagedKafkaEventSourceConfig>
386 void SetSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT&& value) {
387 m_selfManagedKafkaEventSourceConfigHasBeenSet = true;
388 m_selfManagedKafkaEventSourceConfig = std::forward<SelfManagedKafkaEventSourceConfigT>(value);
389 }
390 template <typename SelfManagedKafkaEventSourceConfigT = SelfManagedKafkaEventSourceConfig>
391 UpdateEventSourceMappingRequest& WithSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT&& value) {
392 SetSelfManagedKafkaEventSourceConfig(std::forward<SelfManagedKafkaEventSourceConfigT>(value));
393 return *this;
394 }
396
398
401 inline const DocumentDBEventSourceConfig& GetDocumentDBEventSourceConfig() const { return m_documentDBEventSourceConfig; }
402 inline bool DocumentDBEventSourceConfigHasBeenSet() const { return m_documentDBEventSourceConfigHasBeenSet; }
403 template <typename DocumentDBEventSourceConfigT = DocumentDBEventSourceConfig>
404 void SetDocumentDBEventSourceConfig(DocumentDBEventSourceConfigT&& value) {
405 m_documentDBEventSourceConfigHasBeenSet = true;
406 m_documentDBEventSourceConfig = std::forward<DocumentDBEventSourceConfigT>(value);
407 }
408 template <typename DocumentDBEventSourceConfigT = DocumentDBEventSourceConfig>
410 SetDocumentDBEventSourceConfig(std::forward<DocumentDBEventSourceConfigT>(value));
411 return *this;
412 }
414
416
423 inline const Aws::String& GetKMSKeyArn() const { return m_kMSKeyArn; }
424 inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
425 template <typename KMSKeyArnT = Aws::String>
426 void SetKMSKeyArn(KMSKeyArnT&& value) {
427 m_kMSKeyArnHasBeenSet = true;
428 m_kMSKeyArn = std::forward<KMSKeyArnT>(value);
429 }
430 template <typename KMSKeyArnT = Aws::String>
432 SetKMSKeyArn(std::forward<KMSKeyArnT>(value));
433 return *this;
434 }
436
438
443 inline const EventSourceMappingMetricsConfig& GetMetricsConfig() const { return m_metricsConfig; }
444 inline bool MetricsConfigHasBeenSet() const { return m_metricsConfigHasBeenSet; }
445 template <typename MetricsConfigT = EventSourceMappingMetricsConfig>
446 void SetMetricsConfig(MetricsConfigT&& value) {
447 m_metricsConfigHasBeenSet = true;
448 m_metricsConfig = std::forward<MetricsConfigT>(value);
449 }
450 template <typename MetricsConfigT = EventSourceMappingMetricsConfig>
452 SetMetricsConfig(std::forward<MetricsConfigT>(value));
453 return *this;
454 }
456
458
459 inline const EventSourceMappingLoggingConfig& GetLoggingConfig() const { return m_loggingConfig; }
460 inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; }
461 template <typename LoggingConfigT = EventSourceMappingLoggingConfig>
462 void SetLoggingConfig(LoggingConfigT&& value) {
463 m_loggingConfigHasBeenSet = true;
464 m_loggingConfig = std::forward<LoggingConfigT>(value);
465 }
466 template <typename LoggingConfigT = EventSourceMappingLoggingConfig>
468 SetLoggingConfig(std::forward<LoggingConfigT>(value));
469 return *this;
470 }
472
474
480 inline const ProvisionedPollerConfig& GetProvisionedPollerConfig() const { return m_provisionedPollerConfig; }
481 inline bool ProvisionedPollerConfigHasBeenSet() const { return m_provisionedPollerConfigHasBeenSet; }
482 template <typename ProvisionedPollerConfigT = ProvisionedPollerConfig>
483 void SetProvisionedPollerConfig(ProvisionedPollerConfigT&& value) {
484 m_provisionedPollerConfigHasBeenSet = true;
485 m_provisionedPollerConfig = std::forward<ProvisionedPollerConfigT>(value);
486 }
487 template <typename ProvisionedPollerConfigT = ProvisionedPollerConfig>
489 SetProvisionedPollerConfig(std::forward<ProvisionedPollerConfigT>(value));
490 return *this;
491 }
493 private:
494 Aws::String m_uUID;
495
496 Aws::String m_functionName;
497
498 bool m_enabled{false};
499
500 int m_batchSize{0};
501
502 FilterCriteria m_filterCriteria;
503
504 int m_maximumBatchingWindowInSeconds{0};
505
506 DestinationConfig m_destinationConfig;
507
508 int m_maximumRecordAgeInSeconds{0};
509
510 bool m_bisectBatchOnFunctionError{false};
511
512 int m_maximumRetryAttempts{0};
513
514 int m_parallelizationFactor{0};
515
516 Aws::Vector<SourceAccessConfiguration> m_sourceAccessConfigurations;
517
518 int m_tumblingWindowInSeconds{0};
519
520 Aws::Vector<FunctionResponseType> m_functionResponseTypes;
521
522 ScalingConfig m_scalingConfig;
523
524 AmazonManagedKafkaEventSourceConfig m_amazonManagedKafkaEventSourceConfig;
525
526 SelfManagedKafkaEventSourceConfig m_selfManagedKafkaEventSourceConfig;
527
528 DocumentDBEventSourceConfig m_documentDBEventSourceConfig;
529
530 Aws::String m_kMSKeyArn;
531
532 EventSourceMappingMetricsConfig m_metricsConfig;
533
534 EventSourceMappingLoggingConfig m_loggingConfig;
535
536 ProvisionedPollerConfig m_provisionedPollerConfig;
537 bool m_uUIDHasBeenSet = false;
538 bool m_functionNameHasBeenSet = false;
539 bool m_enabledHasBeenSet = false;
540 bool m_batchSizeHasBeenSet = false;
541 bool m_filterCriteriaHasBeenSet = false;
542 bool m_maximumBatchingWindowInSecondsHasBeenSet = false;
543 bool m_destinationConfigHasBeenSet = false;
544 bool m_maximumRecordAgeInSecondsHasBeenSet = false;
545 bool m_bisectBatchOnFunctionErrorHasBeenSet = false;
546 bool m_maximumRetryAttemptsHasBeenSet = false;
547 bool m_parallelizationFactorHasBeenSet = false;
548 bool m_sourceAccessConfigurationsHasBeenSet = false;
549 bool m_tumblingWindowInSecondsHasBeenSet = false;
550 bool m_functionResponseTypesHasBeenSet = false;
551 bool m_scalingConfigHasBeenSet = false;
552 bool m_amazonManagedKafkaEventSourceConfigHasBeenSet = false;
553 bool m_selfManagedKafkaEventSourceConfigHasBeenSet = false;
554 bool m_documentDBEventSourceConfigHasBeenSet = false;
555 bool m_kMSKeyArnHasBeenSet = false;
556 bool m_metricsConfigHasBeenSet = false;
557 bool m_loggingConfigHasBeenSet = false;
558 bool m_provisionedPollerConfigHasBeenSet = false;
559};
560
561} // namespace Model
562} // namespace Lambda
563} // namespace Aws
const SelfManagedKafkaEventSourceConfig & GetSelfManagedKafkaEventSourceConfig() const
const EventSourceMappingLoggingConfig & GetLoggingConfig() 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 & WithLoggingConfig(LoggingConfigT &&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