AWS SDK for C++

AWS SDK for C++ Version 1.11.834

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
248 inline int GetMaximumBatchingWindowInSeconds() const { return m_maximumBatchingWindowInSeconds; }
249 inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; }
250 inline void SetMaximumBatchingWindowInSeconds(int value) {
251 m_maximumBatchingWindowInSecondsHasBeenSet = true;
252 m_maximumBatchingWindowInSeconds = value;
253 }
256 return *this;
257 }
259
261
265 inline int GetParallelizationFactor() const { return m_parallelizationFactor; }
266 inline bool ParallelizationFactorHasBeenSet() const { return m_parallelizationFactorHasBeenSet; }
267 inline void SetParallelizationFactor(int value) {
268 m_parallelizationFactorHasBeenSet = true;
269 m_parallelizationFactor = value;
270 }
273 return *this;
274 }
276
278
283 inline const DestinationConfig& GetDestinationConfig() const { return m_destinationConfig; }
284 inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; }
285 template <typename DestinationConfigT = DestinationConfig>
286 void SetDestinationConfig(DestinationConfigT&& value) {
287 m_destinationConfigHasBeenSet = true;
288 m_destinationConfig = std::forward<DestinationConfigT>(value);
289 }
290 template <typename DestinationConfigT = DestinationConfig>
292 SetDestinationConfig(std::forward<DestinationConfigT>(value));
293 return *this;
294 }
296
298
303 inline int GetMaximumRecordAgeInSeconds() const { return m_maximumRecordAgeInSeconds; }
304 inline bool MaximumRecordAgeInSecondsHasBeenSet() const { return m_maximumRecordAgeInSecondsHasBeenSet; }
305 inline void SetMaximumRecordAgeInSeconds(int value) {
306 m_maximumRecordAgeInSecondsHasBeenSet = true;
307 m_maximumRecordAgeInSeconds = value;
308 }
311 return *this;
312 }
314
316
320 inline bool GetBisectBatchOnFunctionError() const { return m_bisectBatchOnFunctionError; }
321 inline bool BisectBatchOnFunctionErrorHasBeenSet() const { return m_bisectBatchOnFunctionErrorHasBeenSet; }
322 inline void SetBisectBatchOnFunctionError(bool value) {
323 m_bisectBatchOnFunctionErrorHasBeenSet = true;
324 m_bisectBatchOnFunctionError = value;
325 }
328 return *this;
329 }
331
333
339 inline int GetMaximumRetryAttempts() const { return m_maximumRetryAttempts; }
340 inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; }
341 inline void SetMaximumRetryAttempts(int value) {
342 m_maximumRetryAttemptsHasBeenSet = true;
343 m_maximumRetryAttempts = value;
344 }
347 return *this;
348 }
350
352
357 inline int GetTumblingWindowInSeconds() const { return m_tumblingWindowInSeconds; }
358 inline bool TumblingWindowInSecondsHasBeenSet() const { return m_tumblingWindowInSecondsHasBeenSet; }
359 inline void SetTumblingWindowInSeconds(int value) {
360 m_tumblingWindowInSecondsHasBeenSet = true;
361 m_tumblingWindowInSeconds = value;
362 }
365 return *this;
366 }
368
370
374 inline const Aws::Vector<SourceAccessConfiguration>& GetSourceAccessConfigurations() const { return m_sourceAccessConfigurations; }
375 inline bool SourceAccessConfigurationsHasBeenSet() const { return m_sourceAccessConfigurationsHasBeenSet; }
376 template <typename SourceAccessConfigurationsT = Aws::Vector<SourceAccessConfiguration>>
377 void SetSourceAccessConfigurations(SourceAccessConfigurationsT&& value) {
378 m_sourceAccessConfigurationsHasBeenSet = true;
379 m_sourceAccessConfigurations = std::forward<SourceAccessConfigurationsT>(value);
380 }
381 template <typename SourceAccessConfigurationsT = Aws::Vector<SourceAccessConfiguration>>
383 SetSourceAccessConfigurations(std::forward<SourceAccessConfigurationsT>(value));
384 return *this;
385 }
386 template <typename SourceAccessConfigurationsT = SourceAccessConfiguration>
388 m_sourceAccessConfigurationsHasBeenSet = true;
389 m_sourceAccessConfigurations.emplace_back(std::forward<SourceAccessConfigurationsT>(value));
390 return *this;
391 }
393
395
400 inline const Aws::Vector<FunctionResponseType>& GetFunctionResponseTypes() const { return m_functionResponseTypes; }
401 inline bool FunctionResponseTypesHasBeenSet() const { return m_functionResponseTypesHasBeenSet; }
402 template <typename FunctionResponseTypesT = Aws::Vector<FunctionResponseType>>
403 void SetFunctionResponseTypes(FunctionResponseTypesT&& value) {
404 m_functionResponseTypesHasBeenSet = true;
405 m_functionResponseTypes = std::forward<FunctionResponseTypesT>(value);
406 }
407 template <typename FunctionResponseTypesT = Aws::Vector<FunctionResponseType>>
409 SetFunctionResponseTypes(std::forward<FunctionResponseTypesT>(value));
410 return *this;
411 }
413 m_functionResponseTypesHasBeenSet = true;
414 m_functionResponseTypes.push_back(value);
415 return *this;
416 }
418
420
422 return m_amazonManagedKafkaEventSourceConfig;
423 }
424 inline bool AmazonManagedKafkaEventSourceConfigHasBeenSet() const { return m_amazonManagedKafkaEventSourceConfigHasBeenSet; }
425 template <typename AmazonManagedKafkaEventSourceConfigT = AmazonManagedKafkaEventSourceConfig>
426 void SetAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT&& value) {
427 m_amazonManagedKafkaEventSourceConfigHasBeenSet = true;
428 m_amazonManagedKafkaEventSourceConfig = std::forward<AmazonManagedKafkaEventSourceConfigT>(value);
429 }
430 template <typename AmazonManagedKafkaEventSourceConfigT = AmazonManagedKafkaEventSourceConfig>
431 UpdateEventSourceMappingRequest& WithAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT&& value) {
432 SetAmazonManagedKafkaEventSourceConfig(std::forward<AmazonManagedKafkaEventSourceConfigT>(value));
433 return *this;
434 }
436
438
440 return m_selfManagedKafkaEventSourceConfig;
441 }
442 inline bool SelfManagedKafkaEventSourceConfigHasBeenSet() const { return m_selfManagedKafkaEventSourceConfigHasBeenSet; }
443 template <typename SelfManagedKafkaEventSourceConfigT = SelfManagedKafkaEventSourceConfig>
444 void SetSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT&& value) {
445 m_selfManagedKafkaEventSourceConfigHasBeenSet = true;
446 m_selfManagedKafkaEventSourceConfig = std::forward<SelfManagedKafkaEventSourceConfigT>(value);
447 }
448 template <typename SelfManagedKafkaEventSourceConfigT = SelfManagedKafkaEventSourceConfig>
449 UpdateEventSourceMappingRequest& WithSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT&& value) {
450 SetSelfManagedKafkaEventSourceConfig(std::forward<SelfManagedKafkaEventSourceConfigT>(value));
451 return *this;
452 }
454
456
459 inline const DocumentDBEventSourceConfig& GetDocumentDBEventSourceConfig() const { return m_documentDBEventSourceConfig; }
460 inline bool DocumentDBEventSourceConfigHasBeenSet() const { return m_documentDBEventSourceConfigHasBeenSet; }
461 template <typename DocumentDBEventSourceConfigT = DocumentDBEventSourceConfig>
462 void SetDocumentDBEventSourceConfig(DocumentDBEventSourceConfigT&& value) {
463 m_documentDBEventSourceConfigHasBeenSet = true;
464 m_documentDBEventSourceConfig = std::forward<DocumentDBEventSourceConfigT>(value);
465 }
466 template <typename DocumentDBEventSourceConfigT = DocumentDBEventSourceConfig>
468 SetDocumentDBEventSourceConfig(std::forward<DocumentDBEventSourceConfigT>(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 Aws::String m_kMSKeyArn;
505
506 EventSourceMappingMetricsConfig m_metricsConfig;
507
508 EventSourceMappingLoggingConfig m_loggingConfig;
509
510 ScalingConfig m_scalingConfig;
511
512 int m_maximumBatchingWindowInSeconds{0};
513
514 int m_parallelizationFactor{0};
515
516 DestinationConfig m_destinationConfig;
517
518 int m_maximumRecordAgeInSeconds{0};
519
520 bool m_bisectBatchOnFunctionError{false};
521
522 int m_maximumRetryAttempts{0};
523
524 int m_tumblingWindowInSeconds{0};
525
526 Aws::Vector<SourceAccessConfiguration> m_sourceAccessConfigurations;
527
528 Aws::Vector<FunctionResponseType> m_functionResponseTypes;
529
530 AmazonManagedKafkaEventSourceConfig m_amazonManagedKafkaEventSourceConfig;
531
532 SelfManagedKafkaEventSourceConfig m_selfManagedKafkaEventSourceConfig;
533
534 DocumentDBEventSourceConfig m_documentDBEventSourceConfig;
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_kMSKeyArnHasBeenSet = false;
543 bool m_metricsConfigHasBeenSet = false;
544 bool m_loggingConfigHasBeenSet = false;
545 bool m_scalingConfigHasBeenSet = false;
546 bool m_maximumBatchingWindowInSecondsHasBeenSet = false;
547 bool m_parallelizationFactorHasBeenSet = false;
548 bool m_destinationConfigHasBeenSet = false;
549 bool m_maximumRecordAgeInSecondsHasBeenSet = false;
550 bool m_bisectBatchOnFunctionErrorHasBeenSet = false;
551 bool m_maximumRetryAttemptsHasBeenSet = false;
552 bool m_tumblingWindowInSecondsHasBeenSet = false;
553 bool m_sourceAccessConfigurationsHasBeenSet = false;
554 bool m_functionResponseTypesHasBeenSet = false;
555 bool m_amazonManagedKafkaEventSourceConfigHasBeenSet = false;
556 bool m_selfManagedKafkaEventSourceConfigHasBeenSet = false;
557 bool m_documentDBEventSourceConfigHasBeenSet = 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