AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateEventSourceMappingRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lambda/LambdaRequest.h>
12#include <aws/lambda/Lambda_EXPORTS.h>
13#include <aws/lambda/model/AmazonManagedKafkaEventSourceConfig.h>
14#include <aws/lambda/model/DestinationConfig.h>
15#include <aws/lambda/model/DocumentDBEventSourceConfig.h>
16#include <aws/lambda/model/EventSourceMappingLoggingConfig.h>
17#include <aws/lambda/model/EventSourceMappingMetricsConfig.h>
18#include <aws/lambda/model/EventSourcePosition.h>
19#include <aws/lambda/model/FilterCriteria.h>
20#include <aws/lambda/model/FunctionResponseType.h>
21#include <aws/lambda/model/ProvisionedPollerConfig.h>
22#include <aws/lambda/model/ScalingConfig.h>
23#include <aws/lambda/model/SelfManagedEventSource.h>
24#include <aws/lambda/model/SelfManagedKafkaEventSourceConfig.h>
25#include <aws/lambda/model/SourceAccessConfiguration.h>
26
27#include <utility>
28
29namespace Aws {
30namespace Lambda {
31namespace Model {
32
36 public:
37 AWS_LAMBDA_API CreateEventSourceMappingRequest() = default;
38
39 // Service request name is the Operation name which will send this request out,
40 // each operation should has unique request name, so that we can get operation's name from this request.
41 // Note: this is not true for response, multiple operations may have the same response name,
42 // so we can not get operation's name from response.
43 inline virtual const char* GetServiceRequestName() const override { return "CreateEventSourceMapping"; }
44
45 AWS_LAMBDA_API Aws::String SerializePayload() const override;
46
48
60 inline const Aws::String& GetEventSourceArn() const { return m_eventSourceArn; }
61 inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
62 template <typename EventSourceArnT = Aws::String>
63 void SetEventSourceArn(EventSourceArnT&& value) {
64 m_eventSourceArnHasBeenSet = true;
65 m_eventSourceArn = std::forward<EventSourceArnT>(value);
66 }
67 template <typename EventSourceArnT = Aws::String>
69 SetEventSourceArn(std::forward<EventSourceArnT>(value));
70 return *this;
71 }
73
75
87 inline const Aws::String& GetFunctionName() const { return m_functionName; }
88 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
89 template <typename FunctionNameT = Aws::String>
90 void SetFunctionName(FunctionNameT&& value) {
91 m_functionNameHasBeenSet = true;
92 m_functionName = std::forward<FunctionNameT>(value);
93 }
94 template <typename FunctionNameT = Aws::String>
96 SetFunctionName(std::forward<FunctionNameT>(value));
97 return *this;
98 }
100
102
106 inline bool GetEnabled() const { return m_enabled; }
107 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
108 inline void SetEnabled(bool value) {
109 m_enabledHasBeenSet = true;
110 m_enabled = value;
111 }
113 SetEnabled(value);
114 return *this;
115 }
117
119
133 inline int GetBatchSize() const { return m_batchSize; }
134 inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; }
135 inline void SetBatchSize(int value) {
136 m_batchSizeHasBeenSet = true;
137 m_batchSize = value;
138 }
140 SetBatchSize(value);
141 return *this;
142 }
144
146
152 inline const FilterCriteria& GetFilterCriteria() const { return m_filterCriteria; }
153 inline bool FilterCriteriaHasBeenSet() const { return m_filterCriteriaHasBeenSet; }
154 template <typename FilterCriteriaT = FilterCriteria>
155 void SetFilterCriteria(FilterCriteriaT&& value) {
156 m_filterCriteriaHasBeenSet = true;
157 m_filterCriteria = std::forward<FilterCriteriaT>(value);
158 }
159 template <typename FilterCriteriaT = FilterCriteria>
161 SetFilterCriteria(std::forward<FilterCriteriaT>(value));
162 return *this;
163 }
165
167
174 inline const Aws::String& GetKMSKeyArn() const { return m_kMSKeyArn; }
175 inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
176 template <typename KMSKeyArnT = Aws::String>
177 void SetKMSKeyArn(KMSKeyArnT&& value) {
178 m_kMSKeyArnHasBeenSet = true;
179 m_kMSKeyArn = std::forward<KMSKeyArnT>(value);
180 }
181 template <typename KMSKeyArnT = Aws::String>
183 SetKMSKeyArn(std::forward<KMSKeyArnT>(value));
184 return *this;
185 }
187
189
194 inline const EventSourceMappingMetricsConfig& GetMetricsConfig() const { return m_metricsConfig; }
195 inline bool MetricsConfigHasBeenSet() const { return m_metricsConfigHasBeenSet; }
196 template <typename MetricsConfigT = EventSourceMappingMetricsConfig>
197 void SetMetricsConfig(MetricsConfigT&& value) {
198 m_metricsConfigHasBeenSet = true;
199 m_metricsConfig = std::forward<MetricsConfigT>(value);
200 }
201 template <typename MetricsConfigT = EventSourceMappingMetricsConfig>
203 SetMetricsConfig(std::forward<MetricsConfigT>(value));
204 return *this;
205 }
207
209
215 inline const EventSourceMappingLoggingConfig& GetLoggingConfig() const { return m_loggingConfig; }
216 inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; }
217 template <typename LoggingConfigT = EventSourceMappingLoggingConfig>
218 void SetLoggingConfig(LoggingConfigT&& value) {
219 m_loggingConfigHasBeenSet = true;
220 m_loggingConfig = std::forward<LoggingConfigT>(value);
221 }
222 template <typename LoggingConfigT = EventSourceMappingLoggingConfig>
224 SetLoggingConfig(std::forward<LoggingConfigT>(value));
225 return *this;
226 }
228
230
236 inline const ScalingConfig& GetScalingConfig() const { return m_scalingConfig; }
237 inline bool ScalingConfigHasBeenSet() const { return m_scalingConfigHasBeenSet; }
238 template <typename ScalingConfigT = ScalingConfig>
239 void SetScalingConfig(ScalingConfigT&& value) {
240 m_scalingConfigHasBeenSet = true;
241 m_scalingConfig = std::forward<ScalingConfigT>(value);
242 }
243 template <typename ScalingConfigT = ScalingConfig>
245 SetScalingConfig(std::forward<ScalingConfigT>(value));
246 return *this;
247 }
249
251
268 inline int GetMaximumBatchingWindowInSeconds() const { return m_maximumBatchingWindowInSeconds; }
269 inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; }
270 inline void SetMaximumBatchingWindowInSeconds(int value) {
271 m_maximumBatchingWindowInSecondsHasBeenSet = true;
272 m_maximumBatchingWindowInSeconds = value;
273 }
279
281
285 inline int GetParallelizationFactor() const { return m_parallelizationFactor; }
286 inline bool ParallelizationFactorHasBeenSet() const { return m_parallelizationFactorHasBeenSet; }
287 inline void SetParallelizationFactor(int value) {
288 m_parallelizationFactorHasBeenSet = true;
289 m_parallelizationFactor = value;
290 }
293 return *this;
294 }
296
298
305 inline EventSourcePosition GetStartingPosition() const { return m_startingPosition; }
306 inline bool StartingPositionHasBeenSet() const { return m_startingPositionHasBeenSet; }
308 m_startingPositionHasBeenSet = true;
309 m_startingPosition = value;
310 }
316
318
324 inline const Aws::Utils::DateTime& GetStartingPositionTimestamp() const { return m_startingPositionTimestamp; }
325 inline bool StartingPositionTimestampHasBeenSet() const { return m_startingPositionTimestampHasBeenSet; }
326 template <typename StartingPositionTimestampT = Aws::Utils::DateTime>
327 void SetStartingPositionTimestamp(StartingPositionTimestampT&& value) {
328 m_startingPositionTimestampHasBeenSet = true;
329 m_startingPositionTimestamp = std::forward<StartingPositionTimestampT>(value);
330 }
331 template <typename StartingPositionTimestampT = Aws::Utils::DateTime>
333 SetStartingPositionTimestamp(std::forward<StartingPositionTimestampT>(value));
334 return *this;
335 }
337
339
344 inline const DestinationConfig& GetDestinationConfig() const { return m_destinationConfig; }
345 inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; }
346 template <typename DestinationConfigT = DestinationConfig>
347 void SetDestinationConfig(DestinationConfigT&& value) {
348 m_destinationConfigHasBeenSet = true;
349 m_destinationConfig = std::forward<DestinationConfigT>(value);
350 }
351 template <typename DestinationConfigT = DestinationConfig>
353 SetDestinationConfig(std::forward<DestinationConfigT>(value));
354 return *this;
355 }
357
359
364 inline int GetMaximumRecordAgeInSeconds() const { return m_maximumRecordAgeInSeconds; }
365 inline bool MaximumRecordAgeInSecondsHasBeenSet() const { return m_maximumRecordAgeInSecondsHasBeenSet; }
366 inline void SetMaximumRecordAgeInSeconds(int value) {
367 m_maximumRecordAgeInSecondsHasBeenSet = true;
368 m_maximumRecordAgeInSeconds = value;
369 }
375
377
381 inline bool GetBisectBatchOnFunctionError() const { return m_bisectBatchOnFunctionError; }
382 inline bool BisectBatchOnFunctionErrorHasBeenSet() const { return m_bisectBatchOnFunctionErrorHasBeenSet; }
383 inline void SetBisectBatchOnFunctionError(bool value) {
384 m_bisectBatchOnFunctionErrorHasBeenSet = true;
385 m_bisectBatchOnFunctionError = value;
386 }
392
394
404 inline int GetMaximumRetryAttempts() const { return m_maximumRetryAttempts; }
405 inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; }
406 inline void SetMaximumRetryAttempts(int value) {
407 m_maximumRetryAttemptsHasBeenSet = true;
408 m_maximumRetryAttempts = value;
409 }
412 return *this;
413 }
415
417
420 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
421 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
422 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
423 void SetTags(TagsT&& value) {
424 m_tagsHasBeenSet = true;
425 m_tags = std::forward<TagsT>(value);
426 }
427 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
429 SetTags(std::forward<TagsT>(value));
430 return *this;
431 }
432 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
433 CreateEventSourceMappingRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
434 m_tagsHasBeenSet = true;
435 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
436 return *this;
437 }
439
441
446 inline int GetTumblingWindowInSeconds() const { return m_tumblingWindowInSeconds; }
447 inline bool TumblingWindowInSecondsHasBeenSet() const { return m_tumblingWindowInSecondsHasBeenSet; }
448 inline void SetTumblingWindowInSeconds(int value) {
449 m_tumblingWindowInSecondsHasBeenSet = true;
450 m_tumblingWindowInSeconds = value;
451 }
454 return *this;
455 }
457
459
462 inline const Aws::Vector<Aws::String>& GetTopics() const { return m_topics; }
463 inline bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; }
464 template <typename TopicsT = Aws::Vector<Aws::String>>
465 void SetTopics(TopicsT&& value) {
466 m_topicsHasBeenSet = true;
467 m_topics = std::forward<TopicsT>(value);
468 }
469 template <typename TopicsT = Aws::Vector<Aws::String>>
471 SetTopics(std::forward<TopicsT>(value));
472 return *this;
473 }
474 template <typename TopicsT = Aws::String>
476 m_topicsHasBeenSet = true;
477 m_topics.emplace_back(std::forward<TopicsT>(value));
478 return *this;
479 }
481
483
486 inline const Aws::Vector<Aws::String>& GetQueues() const { return m_queues; }
487 inline bool QueuesHasBeenSet() const { return m_queuesHasBeenSet; }
488 template <typename QueuesT = Aws::Vector<Aws::String>>
489 void SetQueues(QueuesT&& value) {
490 m_queuesHasBeenSet = true;
491 m_queues = std::forward<QueuesT>(value);
492 }
493 template <typename QueuesT = Aws::Vector<Aws::String>>
495 SetQueues(std::forward<QueuesT>(value));
496 return *this;
497 }
498 template <typename QueuesT = Aws::String>
500 m_queuesHasBeenSet = true;
501 m_queues.emplace_back(std::forward<QueuesT>(value));
502 return *this;
503 }
505
507
511 inline const Aws::Vector<SourceAccessConfiguration>& GetSourceAccessConfigurations() const { return m_sourceAccessConfigurations; }
512 inline bool SourceAccessConfigurationsHasBeenSet() const { return m_sourceAccessConfigurationsHasBeenSet; }
513 template <typename SourceAccessConfigurationsT = Aws::Vector<SourceAccessConfiguration>>
514 void SetSourceAccessConfigurations(SourceAccessConfigurationsT&& value) {
515 m_sourceAccessConfigurationsHasBeenSet = true;
516 m_sourceAccessConfigurations = std::forward<SourceAccessConfigurationsT>(value);
517 }
518 template <typename SourceAccessConfigurationsT = Aws::Vector<SourceAccessConfiguration>>
520 SetSourceAccessConfigurations(std::forward<SourceAccessConfigurationsT>(value));
521 return *this;
522 }
523 template <typename SourceAccessConfigurationsT = SourceAccessConfiguration>
525 m_sourceAccessConfigurationsHasBeenSet = true;
526 m_sourceAccessConfigurations.emplace_back(std::forward<SourceAccessConfigurationsT>(value));
527 return *this;
528 }
530
532
535 inline const SelfManagedEventSource& GetSelfManagedEventSource() const { return m_selfManagedEventSource; }
536 inline bool SelfManagedEventSourceHasBeenSet() const { return m_selfManagedEventSourceHasBeenSet; }
537 template <typename SelfManagedEventSourceT = SelfManagedEventSource>
538 void SetSelfManagedEventSource(SelfManagedEventSourceT&& value) {
539 m_selfManagedEventSourceHasBeenSet = true;
540 m_selfManagedEventSource = std::forward<SelfManagedEventSourceT>(value);
541 }
542 template <typename SelfManagedEventSourceT = SelfManagedEventSource>
544 SetSelfManagedEventSource(std::forward<SelfManagedEventSourceT>(value));
545 return *this;
546 }
548
550
555 inline const Aws::Vector<FunctionResponseType>& GetFunctionResponseTypes() const { return m_functionResponseTypes; }
556 inline bool FunctionResponseTypesHasBeenSet() const { return m_functionResponseTypesHasBeenSet; }
557 template <typename FunctionResponseTypesT = Aws::Vector<FunctionResponseType>>
558 void SetFunctionResponseTypes(FunctionResponseTypesT&& value) {
559 m_functionResponseTypesHasBeenSet = true;
560 m_functionResponseTypes = std::forward<FunctionResponseTypesT>(value);
561 }
562 template <typename FunctionResponseTypesT = Aws::Vector<FunctionResponseType>>
564 SetFunctionResponseTypes(std::forward<FunctionResponseTypesT>(value));
565 return *this;
566 }
568 m_functionResponseTypesHasBeenSet = true;
569 m_functionResponseTypes.push_back(value);
570 return *this;
571 }
573
575
580 return m_amazonManagedKafkaEventSourceConfig;
581 }
582 inline bool AmazonManagedKafkaEventSourceConfigHasBeenSet() const { return m_amazonManagedKafkaEventSourceConfigHasBeenSet; }
583 template <typename AmazonManagedKafkaEventSourceConfigT = AmazonManagedKafkaEventSourceConfig>
584 void SetAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT&& value) {
585 m_amazonManagedKafkaEventSourceConfigHasBeenSet = true;
586 m_amazonManagedKafkaEventSourceConfig = std::forward<AmazonManagedKafkaEventSourceConfigT>(value);
587 }
588 template <typename AmazonManagedKafkaEventSourceConfigT = AmazonManagedKafkaEventSourceConfig>
589 CreateEventSourceMappingRequest& WithAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT&& value) {
590 SetAmazonManagedKafkaEventSourceConfig(std::forward<AmazonManagedKafkaEventSourceConfigT>(value));
591 return *this;
592 }
594
596
601 return m_selfManagedKafkaEventSourceConfig;
602 }
603 inline bool SelfManagedKafkaEventSourceConfigHasBeenSet() const { return m_selfManagedKafkaEventSourceConfigHasBeenSet; }
604 template <typename SelfManagedKafkaEventSourceConfigT = SelfManagedKafkaEventSourceConfig>
605 void SetSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT&& value) {
606 m_selfManagedKafkaEventSourceConfigHasBeenSet = true;
607 m_selfManagedKafkaEventSourceConfig = std::forward<SelfManagedKafkaEventSourceConfigT>(value);
608 }
609 template <typename SelfManagedKafkaEventSourceConfigT = SelfManagedKafkaEventSourceConfig>
610 CreateEventSourceMappingRequest& WithSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT&& value) {
611 SetSelfManagedKafkaEventSourceConfig(std::forward<SelfManagedKafkaEventSourceConfigT>(value));
612 return *this;
613 }
615
617
620 inline const DocumentDBEventSourceConfig& GetDocumentDBEventSourceConfig() const { return m_documentDBEventSourceConfig; }
621 inline bool DocumentDBEventSourceConfigHasBeenSet() const { return m_documentDBEventSourceConfigHasBeenSet; }
622 template <typename DocumentDBEventSourceConfigT = DocumentDBEventSourceConfig>
623 void SetDocumentDBEventSourceConfig(DocumentDBEventSourceConfigT&& value) {
624 m_documentDBEventSourceConfigHasBeenSet = true;
625 m_documentDBEventSourceConfig = std::forward<DocumentDBEventSourceConfigT>(value);
626 }
627 template <typename DocumentDBEventSourceConfigT = DocumentDBEventSourceConfig>
629 SetDocumentDBEventSourceConfig(std::forward<DocumentDBEventSourceConfigT>(value));
630 return *this;
631 }
633
635
641 inline const ProvisionedPollerConfig& GetProvisionedPollerConfig() const { return m_provisionedPollerConfig; }
642 inline bool ProvisionedPollerConfigHasBeenSet() const { return m_provisionedPollerConfigHasBeenSet; }
643 template <typename ProvisionedPollerConfigT = ProvisionedPollerConfig>
644 void SetProvisionedPollerConfig(ProvisionedPollerConfigT&& value) {
645 m_provisionedPollerConfigHasBeenSet = true;
646 m_provisionedPollerConfig = std::forward<ProvisionedPollerConfigT>(value);
647 }
648 template <typename ProvisionedPollerConfigT = ProvisionedPollerConfig>
650 SetProvisionedPollerConfig(std::forward<ProvisionedPollerConfigT>(value));
651 return *this;
652 }
654 private:
655 Aws::String m_eventSourceArn;
656
657 Aws::String m_functionName;
658
659 bool m_enabled{false};
660
661 int m_batchSize{0};
662
663 FilterCriteria m_filterCriteria;
664
665 Aws::String m_kMSKeyArn;
666
667 EventSourceMappingMetricsConfig m_metricsConfig;
668
669 EventSourceMappingLoggingConfig m_loggingConfig;
670
671 ScalingConfig m_scalingConfig;
672
673 int m_maximumBatchingWindowInSeconds{0};
674
675 int m_parallelizationFactor{0};
676
678
679 Aws::Utils::DateTime m_startingPositionTimestamp{};
680
681 DestinationConfig m_destinationConfig;
682
683 int m_maximumRecordAgeInSeconds{0};
684
685 bool m_bisectBatchOnFunctionError{false};
686
687 int m_maximumRetryAttempts{0};
688
690
691 int m_tumblingWindowInSeconds{0};
692
694
696
697 Aws::Vector<SourceAccessConfiguration> m_sourceAccessConfigurations;
698
699 SelfManagedEventSource m_selfManagedEventSource;
700
701 Aws::Vector<FunctionResponseType> m_functionResponseTypes;
702
703 AmazonManagedKafkaEventSourceConfig m_amazonManagedKafkaEventSourceConfig;
704
705 SelfManagedKafkaEventSourceConfig m_selfManagedKafkaEventSourceConfig;
706
707 DocumentDBEventSourceConfig m_documentDBEventSourceConfig;
708
709 ProvisionedPollerConfig m_provisionedPollerConfig;
710 bool m_eventSourceArnHasBeenSet = false;
711 bool m_functionNameHasBeenSet = false;
712 bool m_enabledHasBeenSet = false;
713 bool m_batchSizeHasBeenSet = false;
714 bool m_filterCriteriaHasBeenSet = false;
715 bool m_kMSKeyArnHasBeenSet = false;
716 bool m_metricsConfigHasBeenSet = false;
717 bool m_loggingConfigHasBeenSet = false;
718 bool m_scalingConfigHasBeenSet = false;
719 bool m_maximumBatchingWindowInSecondsHasBeenSet = false;
720 bool m_parallelizationFactorHasBeenSet = false;
721 bool m_startingPositionHasBeenSet = false;
722 bool m_startingPositionTimestampHasBeenSet = false;
723 bool m_destinationConfigHasBeenSet = false;
724 bool m_maximumRecordAgeInSecondsHasBeenSet = false;
725 bool m_bisectBatchOnFunctionErrorHasBeenSet = false;
726 bool m_maximumRetryAttemptsHasBeenSet = false;
727 bool m_tagsHasBeenSet = false;
728 bool m_tumblingWindowInSecondsHasBeenSet = false;
729 bool m_topicsHasBeenSet = false;
730 bool m_queuesHasBeenSet = false;
731 bool m_sourceAccessConfigurationsHasBeenSet = false;
732 bool m_selfManagedEventSourceHasBeenSet = false;
733 bool m_functionResponseTypesHasBeenSet = false;
734 bool m_amazonManagedKafkaEventSourceConfigHasBeenSet = false;
735 bool m_selfManagedKafkaEventSourceConfigHasBeenSet = false;
736 bool m_documentDBEventSourceConfigHasBeenSet = false;
737 bool m_provisionedPollerConfigHasBeenSet = false;
738};
739
740} // namespace Model
741} // namespace Lambda
742} // namespace Aws
CreateEventSourceMappingRequest & WithMetricsConfig(MetricsConfigT &&value)
CreateEventSourceMappingRequest & WithTumblingWindowInSeconds(int value)
CreateEventSourceMappingRequest & WithKMSKeyArn(KMSKeyArnT &&value)
CreateEventSourceMappingRequest & WithBatchSize(int value)
CreateEventSourceMappingRequest & WithEventSourceArn(EventSourceArnT &&value)
CreateEventSourceMappingRequest & AddFunctionResponseTypes(FunctionResponseType value)
CreateEventSourceMappingRequest & WithDestinationConfig(DestinationConfigT &&value)
CreateEventSourceMappingRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateEventSourceMappingRequest & WithBisectBatchOnFunctionError(bool value)
const SelfManagedKafkaEventSourceConfig & GetSelfManagedKafkaEventSourceConfig() const
CreateEventSourceMappingRequest & WithTags(TagsT &&value)
CreateEventSourceMappingRequest & WithAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT &&value)
CreateEventSourceMappingRequest & WithFilterCriteria(FilterCriteriaT &&value)
CreateEventSourceMappingRequest & WithQueues(QueuesT &&value)
void SetDocumentDBEventSourceConfig(DocumentDBEventSourceConfigT &&value)
CreateEventSourceMappingRequest & WithMaximumRecordAgeInSeconds(int value)
void SetAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT &&value)
const AmazonManagedKafkaEventSourceConfig & GetAmazonManagedKafkaEventSourceConfig() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const EventSourceMappingLoggingConfig & GetLoggingConfig() const
AWS_LAMBDA_API CreateEventSourceMappingRequest()=default
CreateEventSourceMappingRequest & WithFunctionName(FunctionNameT &&value)
CreateEventSourceMappingRequest & AddQueues(QueuesT &&value)
const Aws::Vector< FunctionResponseType > & GetFunctionResponseTypes() const
void SetSourceAccessConfigurations(SourceAccessConfigurationsT &&value)
CreateEventSourceMappingRequest & WithMaximumBatchingWindowInSeconds(int value)
CreateEventSourceMappingRequest & WithParallelizationFactor(int value)
CreateEventSourceMappingRequest & WithSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT &&value)
CreateEventSourceMappingRequest & WithStartingPosition(EventSourcePosition value)
CreateEventSourceMappingRequest & WithSelfManagedEventSource(SelfManagedEventSourceT &&value)
CreateEventSourceMappingRequest & WithScalingConfig(ScalingConfigT &&value)
CreateEventSourceMappingRequest & AddTopics(TopicsT &&value)
CreateEventSourceMappingRequest & AddSourceAccessConfigurations(SourceAccessConfigurationsT &&value)
AWS_LAMBDA_API Aws::String SerializePayload() const override
CreateEventSourceMappingRequest & WithTopics(TopicsT &&value)
CreateEventSourceMappingRequest & WithDocumentDBEventSourceConfig(DocumentDBEventSourceConfigT &&value)
void SetSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT &&value)
const EventSourceMappingMetricsConfig & GetMetricsConfig() const
CreateEventSourceMappingRequest & WithMaximumRetryAttempts(int value)
const DocumentDBEventSourceConfig & GetDocumentDBEventSourceConfig() const
CreateEventSourceMappingRequest & WithLoggingConfig(LoggingConfigT &&value)
CreateEventSourceMappingRequest & WithStartingPositionTimestamp(StartingPositionTimestampT &&value)
CreateEventSourceMappingRequest & WithFunctionResponseTypes(FunctionResponseTypesT &&value)
const Aws::Vector< SourceAccessConfiguration > & GetSourceAccessConfigurations() const
CreateEventSourceMappingRequest & WithProvisionedPollerConfig(ProvisionedPollerConfigT &&value)
void SetStartingPositionTimestamp(StartingPositionTimestampT &&value)
CreateEventSourceMappingRequest & WithEnabled(bool value)
CreateEventSourceMappingRequest & WithSourceAccessConfigurations(SourceAccessConfigurationsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector