7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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/EventSourcePosition.h>
17#include <aws/lambda/model/FilterCriteria.h>
18#include <aws/lambda/model/FilterCriteriaError.h>
19#include <aws/lambda/model/FunctionResponseType.h>
20#include <aws/lambda/model/ProvisionedPollerConfig.h>
21#include <aws/lambda/model/ScalingConfig.h>
22#include <aws/lambda/model/SelfManagedEventSource.h>
23#include <aws/lambda/model/SelfManagedKafkaEventSourceConfig.h>
24#include <aws/lambda/model/SourceAccessConfiguration.h>
29template <
typename RESULT_TYPE>
30class AmazonWebServiceResult;
56 template <
typename UUIDT = Aws::String>
58 m_uUIDHasBeenSet =
true;
59 m_uUID = std::forward<UUIDT>(value);
61 template <
typename UUIDT = Aws::String>
63 SetUUID(std::forward<UUIDT>(value));
77 m_startingPositionHasBeenSet =
true;
78 m_startingPosition = value;
93 template <
typename StartingPositionTimestampT = Aws::Utils::DateTime>
95 m_startingPositionTimestampHasBeenSet =
true;
96 m_startingPositionTimestamp = std::forward<StartingPositionTimestampT>(value);
98 template <
typename StartingPositionTimestampT = Aws::Utils::DateTime>
117 m_batchSizeHasBeenSet =
true;
144 m_maximumBatchingWindowInSecondsHasBeenSet =
true;
145 m_maximumBatchingWindowInSeconds = value;
160 m_parallelizationFactorHasBeenSet =
true;
161 m_parallelizationFactor = value;
174 template <
typename EventSourceArnT = Aws::String>
176 m_eventSourceArnHasBeenSet =
true;
177 m_eventSourceArn = std::forward<EventSourceArnT>(value);
179 template <
typename EventSourceArnT = Aws::String>
198 template <
typename FilterCriteriaT = FilterCriteria>
200 m_filterCriteriaHasBeenSet =
true;
201 m_filterCriteria = std::forward<FilterCriteriaT>(value);
203 template <
typename FilterCriteriaT = FilterCriteria>
215 template <
typename FunctionArnT = Aws::String>
217 m_functionArnHasBeenSet =
true;
218 m_functionArn = std::forward<FunctionArnT>(value);
220 template <
typename FunctionArnT = Aws::String>
233 template <
typename LastModifiedT = Aws::Utils::DateTime>
235 m_lastModifiedHasBeenSet =
true;
236 m_lastModified = std::forward<LastModifiedT>(value);
238 template <
typename LastModifiedT = Aws::Utils::DateTime>
250 template <
typename LastProcessingResultT = Aws::String>
252 m_lastProcessingResultHasBeenSet =
true;
253 m_lastProcessingResult = std::forward<LastProcessingResultT>(value);
255 template <
typename LastProcessingResultT = Aws::String>
270 template <
typename StateT = Aws::String>
272 m_stateHasBeenSet =
true;
273 m_state = std::forward<StateT>(value);
275 template <
typename StateT = Aws::String>
277 SetState(std::forward<StateT>(value));
288 template <
typename StateTransitionReasonT = Aws::String>
290 m_stateTransitionReasonHasBeenSet =
true;
291 m_stateTransitionReason = std::forward<StateTransitionReasonT>(value);
293 template <
typename StateTransitionReasonT = Aws::String>
307 template <
typename DestinationConfigT = DestinationConfig>
309 m_destinationConfigHasBeenSet =
true;
310 m_destinationConfig = std::forward<DestinationConfigT>(value);
312 template <
typename DestinationConfigT = DestinationConfig>
324 template <
typename TopicsT = Aws::Vector<Aws::String>>
326 m_topicsHasBeenSet =
true;
327 m_topics = std::forward<TopicsT>(value);
329 template <
typename TopicsT = Aws::Vector<Aws::String>>
334 template <
typename TopicsT = Aws::String>
336 m_topicsHasBeenSet =
true;
337 m_topics.emplace_back(std::forward<TopicsT>(value));
348 template <
typename QueuesT = Aws::Vector<Aws::String>>
350 m_queuesHasBeenSet =
true;
351 m_queues = std::forward<QueuesT>(value);
353 template <
typename QueuesT = Aws::Vector<Aws::String>>
358 template <
typename QueuesT = Aws::String>
360 m_queuesHasBeenSet =
true;
361 m_queues.emplace_back(std::forward<QueuesT>(value));
372 template <
typename SourceAccessConfigurationsT = Aws::Vector<SourceAccessConfiguration>>
374 m_sourceAccessConfigurationsHasBeenSet =
true;
375 m_sourceAccessConfigurations = std::forward<SourceAccessConfigurationsT>(value);
377 template <
typename SourceAccessConfigurationsT = Aws::Vector<SourceAccessConfiguration>>
382 template <
typename SourceAccessConfigurationsT = SourceAccessConfiguration>
384 m_sourceAccessConfigurationsHasBeenSet =
true;
385 m_sourceAccessConfigurations.emplace_back(std::forward<SourceAccessConfigurationsT>(value));
395 template <
typename SelfManagedEventSourceT = SelfManagedEventSource>
397 m_selfManagedEventSourceHasBeenSet =
true;
398 m_selfManagedEventSource = std::forward<SelfManagedEventSourceT>(value);
400 template <
typename SelfManagedEventSourceT = SelfManagedEventSource>
418 m_maximumRecordAgeInSecondsHasBeenSet =
true;
419 m_maximumRecordAgeInSeconds = value;
435 m_bisectBatchOnFunctionErrorHasBeenSet =
true;
436 m_bisectBatchOnFunctionError = value;
454 m_maximumRetryAttemptsHasBeenSet =
true;
455 m_maximumRetryAttempts = value;
471 m_tumblingWindowInSecondsHasBeenSet =
true;
472 m_tumblingWindowInSeconds = value;
487 template <
typename FunctionResponseTypesT = Aws::Vector<FunctionResponseType>>
489 m_functionResponseTypesHasBeenSet =
true;
490 m_functionResponseTypes = std::forward<FunctionResponseTypesT>(value);
492 template <
typename FunctionResponseTypesT = Aws::Vector<FunctionResponseType>>
498 m_functionResponseTypesHasBeenSet =
true;
499 m_functionResponseTypes.push_back(value);
510 return m_amazonManagedKafkaEventSourceConfig;
512 template <
typename AmazonManagedKafkaEventSourceConfigT = AmazonManagedKafkaEventSourceConfig>
514 m_amazonManagedKafkaEventSourceConfigHasBeenSet =
true;
515 m_amazonManagedKafkaEventSourceConfig = std::forward<AmazonManagedKafkaEventSourceConfigT>(value);
517 template <
typename AmazonManagedKafkaEventSourceConfigT = AmazonManagedKafkaEventSourceConfig>
530 return m_selfManagedKafkaEventSourceConfig;
532 template <
typename SelfManagedKafkaEventSourceConfigT = SelfManagedKafkaEventSourceConfig>
534 m_selfManagedKafkaEventSourceConfigHasBeenSet =
true;
535 m_selfManagedKafkaEventSourceConfig = std::forward<SelfManagedKafkaEventSourceConfigT>(value);
537 template <
typename SelfManagedKafkaEventSourceConfigT = SelfManagedKafkaEventSourceConfig>
552 template <
typename ScalingConfigT = ScalingConfig>
554 m_scalingConfigHasBeenSet =
true;
555 m_scalingConfig = std::forward<ScalingConfigT>(value);
557 template <
typename ScalingConfigT = ScalingConfig>
569 template <
typename DocumentDBEventSourceConfigT = DocumentDBEventSourceConfig>
571 m_documentDBEventSourceConfigHasBeenSet =
true;
572 m_documentDBEventSourceConfig = std::forward<DocumentDBEventSourceConfigT>(value);
574 template <
typename DocumentDBEventSourceConfigT = DocumentDBEventSourceConfig>
589 template <
typename KMSKeyArnT = Aws::String>
591 m_kMSKeyArnHasBeenSet =
true;
592 m_kMSKeyArn = std::forward<KMSKeyArnT>(value);
594 template <
typename KMSKeyArnT = Aws::String>
607 template <
typename FilterCriteriaErrorT = FilterCriteriaError>
609 m_filterCriteriaErrorHasBeenSet =
true;
610 m_filterCriteriaError = std::forward<FilterCriteriaErrorT>(value);
612 template <
typename FilterCriteriaErrorT = FilterCriteriaError>
624 template <
typename EventSourceMappingArnT = Aws::String>
626 m_eventSourceMappingArnHasBeenSet =
true;
627 m_eventSourceMappingArn = std::forward<EventSourceMappingArnT>(value);
629 template <
typename EventSourceMappingArnT = Aws::String>
643 template <
typename MetricsConfigT = EventSourceMappingMetricsConfig>
645 m_metricsConfigHasBeenSet =
true;
646 m_metricsConfig = std::forward<MetricsConfigT>(value);
648 template <
typename MetricsConfigT = EventSourceMappingMetricsConfig>
663 template <
typename LoggingConfigT = EventSourceMappingLoggingConfig>
665 m_loggingConfigHasBeenSet =
true;
666 m_loggingConfig = std::forward<LoggingConfigT>(value);
668 template <
typename LoggingConfigT = EventSourceMappingLoggingConfig>
683 template <
typename ProvisionedPollerConfigT = ProvisionedPollerConfig>
685 m_provisionedPollerConfigHasBeenSet =
true;
686 m_provisionedPollerConfig = std::forward<ProvisionedPollerConfigT>(value);
688 template <
typename ProvisionedPollerConfigT = ProvisionedPollerConfig>
698 template <
typename RequestIdT = Aws::String>
700 m_requestIdHasBeenSet =
true;
701 m_requestId = std::forward<RequestIdT>(value);
703 template <
typename RequestIdT = Aws::String>
718 int m_maximumBatchingWindowInSeconds{0};
720 int m_parallelizationFactor{0};
724 FilterCriteria m_filterCriteria;
736 DestinationConfig m_destinationConfig;
744 SelfManagedEventSource m_selfManagedEventSource;
746 int m_maximumRecordAgeInSeconds{0};
748 bool m_bisectBatchOnFunctionError{
false};
750 int m_maximumRetryAttempts{0};
752 int m_tumblingWindowInSeconds{0};
756 AmazonManagedKafkaEventSourceConfig m_amazonManagedKafkaEventSourceConfig;
758 SelfManagedKafkaEventSourceConfig m_selfManagedKafkaEventSourceConfig;
760 ScalingConfig m_scalingConfig;
762 DocumentDBEventSourceConfig m_documentDBEventSourceConfig;
766 FilterCriteriaError m_filterCriteriaError;
770 EventSourceMappingMetricsConfig m_metricsConfig;
772 EventSourceMappingLoggingConfig m_loggingConfig;
774 ProvisionedPollerConfig m_provisionedPollerConfig;
777 bool m_uUIDHasBeenSet =
false;
778 bool m_startingPositionHasBeenSet =
false;
779 bool m_startingPositionTimestampHasBeenSet =
false;
780 bool m_batchSizeHasBeenSet =
false;
781 bool m_maximumBatchingWindowInSecondsHasBeenSet =
false;
782 bool m_parallelizationFactorHasBeenSet =
false;
783 bool m_eventSourceArnHasBeenSet =
false;
784 bool m_filterCriteriaHasBeenSet =
false;
785 bool m_functionArnHasBeenSet =
false;
786 bool m_lastModifiedHasBeenSet =
false;
787 bool m_lastProcessingResultHasBeenSet =
false;
788 bool m_stateHasBeenSet =
false;
789 bool m_stateTransitionReasonHasBeenSet =
false;
790 bool m_destinationConfigHasBeenSet =
false;
791 bool m_topicsHasBeenSet =
false;
792 bool m_queuesHasBeenSet =
false;
793 bool m_sourceAccessConfigurationsHasBeenSet =
false;
794 bool m_selfManagedEventSourceHasBeenSet =
false;
795 bool m_maximumRecordAgeInSecondsHasBeenSet =
false;
796 bool m_bisectBatchOnFunctionErrorHasBeenSet =
false;
797 bool m_maximumRetryAttemptsHasBeenSet =
false;
798 bool m_tumblingWindowInSecondsHasBeenSet =
false;
799 bool m_functionResponseTypesHasBeenSet =
false;
800 bool m_amazonManagedKafkaEventSourceConfigHasBeenSet =
false;
801 bool m_selfManagedKafkaEventSourceConfigHasBeenSet =
false;
802 bool m_scalingConfigHasBeenSet =
false;
803 bool m_documentDBEventSourceConfigHasBeenSet =
false;
804 bool m_kMSKeyArnHasBeenSet =
false;
805 bool m_filterCriteriaErrorHasBeenSet =
false;
806 bool m_eventSourceMappingArnHasBeenSet =
false;
807 bool m_metricsConfigHasBeenSet =
false;
808 bool m_loggingConfigHasBeenSet =
false;
809 bool m_provisionedPollerConfigHasBeenSet =
false;
810 bool m_requestIdHasBeenSet =
false;
UpdateEventSourceMappingResult & WithMaximumRetryAttempts(int value)
const Aws::Vector< Aws::String > & GetQueues() const
int GetMaximumBatchingWindowInSeconds() const
void SetFunctionResponseTypes(FunctionResponseTypesT &&value)
UpdateEventSourceMappingResult & WithBatchSize(int value)
const Aws::Vector< FunctionResponseType > & GetFunctionResponseTypes() const
const Aws::Utils::DateTime & GetStartingPositionTimestamp() const
UpdateEventSourceMappingResult & AddTopics(TopicsT &&value)
void SetTumblingWindowInSeconds(int value)
void SetSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT &&value)
UpdateEventSourceMappingResult & WithProvisionedPollerConfig(ProvisionedPollerConfigT &&value)
UpdateEventSourceMappingResult & WithStateTransitionReason(StateTransitionReasonT &&value)
UpdateEventSourceMappingResult & WithFilterCriteria(FilterCriteriaT &&value)
UpdateEventSourceMappingResult & WithBisectBatchOnFunctionError(bool value)
AWS_LAMBDA_API UpdateEventSourceMappingResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLastProcessingResult(LastProcessingResultT &&value)
UpdateEventSourceMappingResult & WithFunctionArn(FunctionArnT &&value)
UpdateEventSourceMappingResult & WithScalingConfig(ScalingConfigT &&value)
int GetTumblingWindowInSeconds() const
UpdateEventSourceMappingResult & AddFunctionResponseTypes(FunctionResponseType value)
void SetMaximumRecordAgeInSeconds(int value)
UpdateEventSourceMappingResult & WithFunctionResponseTypes(FunctionResponseTypesT &&value)
const Aws::String & GetState() const
const Aws::Utils::DateTime & GetLastModified() const
AWS_LAMBDA_API UpdateEventSourceMappingResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetProvisionedPollerConfig(ProvisionedPollerConfigT &&value)
const Aws::String & GetKMSKeyArn() const
void SetMaximumBatchingWindowInSeconds(int value)
UpdateEventSourceMappingResult & WithSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT &&value)
UpdateEventSourceMappingResult & WithParallelizationFactor(int value)
void SetParallelizationFactor(int value)
const SelfManagedKafkaEventSourceConfig & GetSelfManagedKafkaEventSourceConfig() const
void SetSourceAccessConfigurations(SourceAccessConfigurationsT &&value)
void SetAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT &&value)
void SetEventSourceMappingArn(EventSourceMappingArnT &&value)
void SetFilterCriteriaError(FilterCriteriaErrorT &&value)
const Aws::Vector< SourceAccessConfiguration > & GetSourceAccessConfigurations() const
const Aws::String & GetUUID() const
void SetKMSKeyArn(KMSKeyArnT &&value)
const Aws::String & GetFunctionArn() const
const FilterCriteriaError & GetFilterCriteriaError() const
UpdateEventSourceMappingResult & WithDestinationConfig(DestinationConfigT &&value)
UpdateEventSourceMappingResult & WithTumblingWindowInSeconds(int value)
UpdateEventSourceMappingResult & WithLastProcessingResult(LastProcessingResultT &&value)
UpdateEventSourceMappingResult & WithEventSourceArn(EventSourceArnT &&value)
const Aws::String & GetRequestId() const
UpdateEventSourceMappingResult & WithSelfManagedEventSource(SelfManagedEventSourceT &&value)
void SetMetricsConfig(MetricsConfigT &&value)
bool GetBisectBatchOnFunctionError() const
UpdateEventSourceMappingResult & WithLastModified(LastModifiedT &&value)
UpdateEventSourceMappingResult & AddQueues(QueuesT &&value)
UpdateEventSourceMappingResult & WithMetricsConfig(MetricsConfigT &&value)
void SetQueues(QueuesT &&value)
UpdateEventSourceMappingResult & WithEventSourceMappingArn(EventSourceMappingArnT &&value)
const AmazonManagedKafkaEventSourceConfig & GetAmazonManagedKafkaEventSourceConfig() const
UpdateEventSourceMappingResult & WithKMSKeyArn(KMSKeyArnT &&value)
void SetRequestId(RequestIdT &&value)
void SetFilterCriteria(FilterCriteriaT &&value)
void SetMaximumRetryAttempts(int value)
const SelfManagedEventSource & GetSelfManagedEventSource() const
UpdateEventSourceMappingResult & WithAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT &&value)
int GetParallelizationFactor() const
UpdateEventSourceMappingResult & WithRequestId(RequestIdT &&value)
int GetMaximumRecordAgeInSeconds() const
void SetTopics(TopicsT &&value)
void SetFunctionArn(FunctionArnT &&value)
UpdateEventSourceMappingResult & WithFilterCriteriaError(FilterCriteriaErrorT &&value)
UpdateEventSourceMappingResult & WithStartingPosition(EventSourcePosition value)
const ScalingConfig & GetScalingConfig() const
void SetStartingPositionTimestamp(StartingPositionTimestampT &&value)
void SetBisectBatchOnFunctionError(bool value)
void SetSelfManagedEventSource(SelfManagedEventSourceT &&value)
const Aws::String & GetStateTransitionReason() const
UpdateEventSourceMappingResult & WithQueues(QueuesT &&value)
void SetDocumentDBEventSourceConfig(DocumentDBEventSourceConfigT &&value)
const Aws::String & GetEventSourceArn() const
const Aws::String & GetEventSourceMappingArn() const
void SetUUID(UUIDT &&value)
UpdateEventSourceMappingResult & WithSourceAccessConfigurations(SourceAccessConfigurationsT &&value)
UpdateEventSourceMappingResult & WithState(StateT &&value)
UpdateEventSourceMappingResult & WithMaximumRecordAgeInSeconds(int value)
void SetStateTransitionReason(StateTransitionReasonT &&value)
void SetEventSourceArn(EventSourceArnT &&value)
const EventSourceMappingLoggingConfig & GetLoggingConfig() const
void SetLoggingConfig(LoggingConfigT &&value)
const Aws::String & GetLastProcessingResult() const
EventSourcePosition GetStartingPosition() const
int GetMaximumRetryAttempts() const
const EventSourceMappingMetricsConfig & GetMetricsConfig() const
const Aws::Vector< Aws::String > & GetTopics() const
const FilterCriteria & GetFilterCriteria() const
UpdateEventSourceMappingResult & WithStartingPositionTimestamp(StartingPositionTimestampT &&value)
void SetState(StateT &&value)
void SetBatchSize(int value)
const ProvisionedPollerConfig & GetProvisionedPollerConfig() const
UpdateEventSourceMappingResult & WithLoggingConfig(LoggingConfigT &&value)
UpdateEventSourceMappingResult & WithUUID(UUIDT &&value)
void SetDestinationConfig(DestinationConfigT &&value)
UpdateEventSourceMappingResult & WithMaximumBatchingWindowInSeconds(int value)
AWS_LAMBDA_API UpdateEventSourceMappingResult()=default
void SetLastModified(LastModifiedT &&value)
const DocumentDBEventSourceConfig & GetDocumentDBEventSourceConfig() const
void SetStartingPosition(EventSourcePosition value)
void SetScalingConfig(ScalingConfigT &&value)
UpdateEventSourceMappingResult & WithDocumentDBEventSourceConfig(DocumentDBEventSourceConfigT &&value)
const DestinationConfig & GetDestinationConfig() const
UpdateEventSourceMappingResult & AddSourceAccessConfigurations(SourceAccessConfigurationsT &&value)
UpdateEventSourceMappingResult & WithTopics(TopicsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue