AWS SDK for C++

AWS SDK for C++ Version 1.11.935

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
161 inline const Aws::String& GetKMSKeyArn() const { return m_kMSKeyArn; }
162 inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
163 template <typename KMSKeyArnT = Aws::String>
164 void SetKMSKeyArn(KMSKeyArnT&& value) {
165 m_kMSKeyArnHasBeenSet = true;
166 m_kMSKeyArn = std::forward<KMSKeyArnT>(value);
167 }
168 template <typename KMSKeyArnT = Aws::String>
170 SetKMSKeyArn(std::forward<KMSKeyArnT>(value));
171 return *this;
172 }
174
176
181 inline const EventSourceMappingMetricsConfig& GetMetricsConfig() const { return m_metricsConfig; }
182 inline bool MetricsConfigHasBeenSet() const { return m_metricsConfigHasBeenSet; }
183 template <typename MetricsConfigT = EventSourceMappingMetricsConfig>
184 void SetMetricsConfig(MetricsConfigT&& value) {
185 m_metricsConfigHasBeenSet = true;
186 m_metricsConfig = std::forward<MetricsConfigT>(value);
187 }
188 template <typename MetricsConfigT = EventSourceMappingMetricsConfig>
190 SetMetricsConfig(std::forward<MetricsConfigT>(value));
191 return *this;
192 }
194
196
197 inline const EventSourceMappingLoggingConfig& GetLoggingConfig() const { return m_loggingConfig; }
198 inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; }
199 template <typename LoggingConfigT = EventSourceMappingLoggingConfig>
200 void SetLoggingConfig(LoggingConfigT&& value) {
201 m_loggingConfigHasBeenSet = true;
202 m_loggingConfig = std::forward<LoggingConfigT>(value);
203 }
204 template <typename LoggingConfigT = EventSourceMappingLoggingConfig>
206 SetLoggingConfig(std::forward<LoggingConfigT>(value));
207 return *this;
208 }
210
212
218 inline const ScalingConfig& GetScalingConfig() const { return m_scalingConfig; }
219 inline bool ScalingConfigHasBeenSet() const { return m_scalingConfigHasBeenSet; }
220 template <typename ScalingConfigT = ScalingConfig>
221 void SetScalingConfig(ScalingConfigT&& value) {
222 m_scalingConfigHasBeenSet = true;
223 m_scalingConfig = std::forward<ScalingConfigT>(value);
224 }
225 template <typename ScalingConfigT = ScalingConfig>
227 SetScalingConfig(std::forward<ScalingConfigT>(value));
228 return *this;
229 }
231
233
250 inline int GetMaximumBatchingWindowInSeconds() const { return m_maximumBatchingWindowInSeconds; }
251 inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; }
252 inline void SetMaximumBatchingWindowInSeconds(int value) {
253 m_maximumBatchingWindowInSecondsHasBeenSet = true;
254 m_maximumBatchingWindowInSeconds = value;
255 }
261
263
267 inline int GetParallelizationFactor() const { return m_parallelizationFactor; }
268 inline bool ParallelizationFactorHasBeenSet() const { return m_parallelizationFactorHasBeenSet; }
269 inline void SetParallelizationFactor(int value) {
270 m_parallelizationFactorHasBeenSet = true;
271 m_parallelizationFactor = value;
272 }
275 return *this;
276 }
278
280
285 inline const DestinationConfig& GetDestinationConfig() const { return m_destinationConfig; }
286 inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; }
287 template <typename DestinationConfigT = DestinationConfig>
288 void SetDestinationConfig(DestinationConfigT&& value) {
289 m_destinationConfigHasBeenSet = true;
290 m_destinationConfig = std::forward<DestinationConfigT>(value);
291 }
292 template <typename DestinationConfigT = DestinationConfig>
294 SetDestinationConfig(std::forward<DestinationConfigT>(value));
295 return *this;
296 }
298
300
305 inline int GetMaximumRecordAgeInSeconds() const { return m_maximumRecordAgeInSeconds; }
306 inline bool MaximumRecordAgeInSecondsHasBeenSet() const { return m_maximumRecordAgeInSecondsHasBeenSet; }
307 inline void SetMaximumRecordAgeInSeconds(int value) {
308 m_maximumRecordAgeInSecondsHasBeenSet = true;
309 m_maximumRecordAgeInSeconds = value;
310 }
316
318
322 inline bool GetBisectBatchOnFunctionError() const { return m_bisectBatchOnFunctionError; }
323 inline bool BisectBatchOnFunctionErrorHasBeenSet() const { return m_bisectBatchOnFunctionErrorHasBeenSet; }
324 inline void SetBisectBatchOnFunctionError(bool value) {
325 m_bisectBatchOnFunctionErrorHasBeenSet = true;
326 m_bisectBatchOnFunctionError = value;
327 }
333
335
345 inline int GetMaximumRetryAttempts() const { return m_maximumRetryAttempts; }
346 inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; }
347 inline void SetMaximumRetryAttempts(int value) {
348 m_maximumRetryAttemptsHasBeenSet = true;
349 m_maximumRetryAttempts = value;
350 }
353 return *this;
354 }
356
358
363 inline int GetTumblingWindowInSeconds() const { return m_tumblingWindowInSeconds; }
364 inline bool TumblingWindowInSecondsHasBeenSet() const { return m_tumblingWindowInSecondsHasBeenSet; }
365 inline void SetTumblingWindowInSeconds(int value) {
366 m_tumblingWindowInSecondsHasBeenSet = true;
367 m_tumblingWindowInSeconds = value;
368 }
371 return *this;
372 }
374
376
380 inline const Aws::Vector<SourceAccessConfiguration>& GetSourceAccessConfigurations() const { return m_sourceAccessConfigurations; }
381 inline bool SourceAccessConfigurationsHasBeenSet() const { return m_sourceAccessConfigurationsHasBeenSet; }
382 template <typename SourceAccessConfigurationsT = Aws::Vector<SourceAccessConfiguration>>
383 void SetSourceAccessConfigurations(SourceAccessConfigurationsT&& value) {
384 m_sourceAccessConfigurationsHasBeenSet = true;
385 m_sourceAccessConfigurations = std::forward<SourceAccessConfigurationsT>(value);
386 }
387 template <typename SourceAccessConfigurationsT = Aws::Vector<SourceAccessConfiguration>>
389 SetSourceAccessConfigurations(std::forward<SourceAccessConfigurationsT>(value));
390 return *this;
391 }
392 template <typename SourceAccessConfigurationsT = SourceAccessConfiguration>
394 m_sourceAccessConfigurationsHasBeenSet = true;
395 m_sourceAccessConfigurations.emplace_back(std::forward<SourceAccessConfigurationsT>(value));
396 return *this;
397 }
399
401
406 inline const Aws::Vector<FunctionResponseType>& GetFunctionResponseTypes() const { return m_functionResponseTypes; }
407 inline bool FunctionResponseTypesHasBeenSet() const { return m_functionResponseTypesHasBeenSet; }
408 template <typename FunctionResponseTypesT = Aws::Vector<FunctionResponseType>>
409 void SetFunctionResponseTypes(FunctionResponseTypesT&& value) {
410 m_functionResponseTypesHasBeenSet = true;
411 m_functionResponseTypes = std::forward<FunctionResponseTypesT>(value);
412 }
413 template <typename FunctionResponseTypesT = Aws::Vector<FunctionResponseType>>
415 SetFunctionResponseTypes(std::forward<FunctionResponseTypesT>(value));
416 return *this;
417 }
419 m_functionResponseTypesHasBeenSet = true;
420 m_functionResponseTypes.push_back(value);
421 return *this;
422 }
424
426
428 return m_amazonManagedKafkaEventSourceConfig;
429 }
430 inline bool AmazonManagedKafkaEventSourceConfigHasBeenSet() const { return m_amazonManagedKafkaEventSourceConfigHasBeenSet; }
431 template <typename AmazonManagedKafkaEventSourceConfigT = AmazonManagedKafkaEventSourceConfig>
432 void SetAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT&& value) {
433 m_amazonManagedKafkaEventSourceConfigHasBeenSet = true;
434 m_amazonManagedKafkaEventSourceConfig = std::forward<AmazonManagedKafkaEventSourceConfigT>(value);
435 }
436 template <typename AmazonManagedKafkaEventSourceConfigT = AmazonManagedKafkaEventSourceConfig>
437 UpdateEventSourceMappingRequest& WithAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT&& value) {
438 SetAmazonManagedKafkaEventSourceConfig(std::forward<AmazonManagedKafkaEventSourceConfigT>(value));
439 return *this;
440 }
442
444
446 return m_selfManagedKafkaEventSourceConfig;
447 }
448 inline bool SelfManagedKafkaEventSourceConfigHasBeenSet() const { return m_selfManagedKafkaEventSourceConfigHasBeenSet; }
449 template <typename SelfManagedKafkaEventSourceConfigT = SelfManagedKafkaEventSourceConfig>
450 void SetSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT&& value) {
451 m_selfManagedKafkaEventSourceConfigHasBeenSet = true;
452 m_selfManagedKafkaEventSourceConfig = std::forward<SelfManagedKafkaEventSourceConfigT>(value);
453 }
454 template <typename SelfManagedKafkaEventSourceConfigT = SelfManagedKafkaEventSourceConfig>
455 UpdateEventSourceMappingRequest& WithSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT&& value) {
456 SetSelfManagedKafkaEventSourceConfig(std::forward<SelfManagedKafkaEventSourceConfigT>(value));
457 return *this;
458 }
460
462
465 inline const DocumentDBEventSourceConfig& GetDocumentDBEventSourceConfig() const { return m_documentDBEventSourceConfig; }
466 inline bool DocumentDBEventSourceConfigHasBeenSet() const { return m_documentDBEventSourceConfigHasBeenSet; }
467 template <typename DocumentDBEventSourceConfigT = DocumentDBEventSourceConfig>
468 void SetDocumentDBEventSourceConfig(DocumentDBEventSourceConfigT&& value) {
469 m_documentDBEventSourceConfigHasBeenSet = true;
470 m_documentDBEventSourceConfig = std::forward<DocumentDBEventSourceConfigT>(value);
471 }
472 template <typename DocumentDBEventSourceConfigT = DocumentDBEventSourceConfig>
474 SetDocumentDBEventSourceConfig(std::forward<DocumentDBEventSourceConfigT>(value));
475 return *this;
476 }
478
480
486 inline const ProvisionedPollerConfig& GetProvisionedPollerConfig() const { return m_provisionedPollerConfig; }
487 inline bool ProvisionedPollerConfigHasBeenSet() const { return m_provisionedPollerConfigHasBeenSet; }
488 template <typename ProvisionedPollerConfigT = ProvisionedPollerConfig>
489 void SetProvisionedPollerConfig(ProvisionedPollerConfigT&& value) {
490 m_provisionedPollerConfigHasBeenSet = true;
491 m_provisionedPollerConfig = std::forward<ProvisionedPollerConfigT>(value);
492 }
493 template <typename ProvisionedPollerConfigT = ProvisionedPollerConfig>
495 SetProvisionedPollerConfig(std::forward<ProvisionedPollerConfigT>(value));
496 return *this;
497 }
499 private:
500 Aws::String m_uUID;
501
502 Aws::String m_functionName;
503
504 bool m_enabled{false};
505
506 int m_batchSize{0};
507
508 FilterCriteria m_filterCriteria;
509
510 Aws::String m_kMSKeyArn;
511
512 EventSourceMappingMetricsConfig m_metricsConfig;
513
514 EventSourceMappingLoggingConfig m_loggingConfig;
515
516 ScalingConfig m_scalingConfig;
517
518 int m_maximumBatchingWindowInSeconds{0};
519
520 int m_parallelizationFactor{0};
521
522 DestinationConfig m_destinationConfig;
523
524 int m_maximumRecordAgeInSeconds{0};
525
526 bool m_bisectBatchOnFunctionError{false};
527
528 int m_maximumRetryAttempts{0};
529
530 int m_tumblingWindowInSeconds{0};
531
532 Aws::Vector<SourceAccessConfiguration> m_sourceAccessConfigurations;
533
534 Aws::Vector<FunctionResponseType> m_functionResponseTypes;
535
536 AmazonManagedKafkaEventSourceConfig m_amazonManagedKafkaEventSourceConfig;
537
538 SelfManagedKafkaEventSourceConfig m_selfManagedKafkaEventSourceConfig;
539
540 DocumentDBEventSourceConfig m_documentDBEventSourceConfig;
541
542 ProvisionedPollerConfig m_provisionedPollerConfig;
543 bool m_uUIDHasBeenSet = false;
544 bool m_functionNameHasBeenSet = false;
545 bool m_enabledHasBeenSet = false;
546 bool m_batchSizeHasBeenSet = false;
547 bool m_filterCriteriaHasBeenSet = false;
548 bool m_kMSKeyArnHasBeenSet = false;
549 bool m_metricsConfigHasBeenSet = false;
550 bool m_loggingConfigHasBeenSet = false;
551 bool m_scalingConfigHasBeenSet = false;
552 bool m_maximumBatchingWindowInSecondsHasBeenSet = false;
553 bool m_parallelizationFactorHasBeenSet = false;
554 bool m_destinationConfigHasBeenSet = false;
555 bool m_maximumRecordAgeInSecondsHasBeenSet = false;
556 bool m_bisectBatchOnFunctionErrorHasBeenSet = false;
557 bool m_maximumRetryAttemptsHasBeenSet = false;
558 bool m_tumblingWindowInSecondsHasBeenSet = false;
559 bool m_sourceAccessConfigurationsHasBeenSet = false;
560 bool m_functionResponseTypesHasBeenSet = false;
561 bool m_amazonManagedKafkaEventSourceConfigHasBeenSet = false;
562 bool m_selfManagedKafkaEventSourceConfigHasBeenSet = false;
563 bool m_documentDBEventSourceConfigHasBeenSet = false;
564 bool m_provisionedPollerConfigHasBeenSet = false;
565};
566
567} // namespace Model
568} // namespace Lambda
569} // 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