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/EventSourceMappingMetricsConfig.h>
15#include <aws/lambda/model/EventSourcePosition.h>
16#include <aws/lambda/model/FilterCriteria.h>
17#include <aws/lambda/model/FilterCriteriaError.h>
18#include <aws/lambda/model/FunctionResponseType.h>
19#include <aws/lambda/model/ProvisionedPollerConfig.h>
20#include <aws/lambda/model/ScalingConfig.h>
21#include <aws/lambda/model/SelfManagedEventSource.h>
22#include <aws/lambda/model/SelfManagedKafkaEventSourceConfig.h>
23#include <aws/lambda/model/SourceAccessConfiguration.h>
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));
78 m_startingPositionHasBeenSet =
true;
79 m_startingPosition = value;
95 template <
typename StartingPositionTimestampT = Aws::Utils::DateTime>
97 m_startingPositionTimestampHasBeenSet =
true;
98 m_startingPositionTimestamp = std::forward<StartingPositionTimestampT>(value);
100 template <
typename StartingPositionTimestampT = Aws::Utils::DateTime>
120 m_batchSizeHasBeenSet =
true;
148 m_maximumBatchingWindowInSecondsHasBeenSet =
true;
149 m_maximumBatchingWindowInSeconds = value;
165 m_parallelizationFactorHasBeenSet =
true;
166 m_parallelizationFactor = value;
180 template <
typename EventSourceArnT = Aws::String>
182 m_eventSourceArnHasBeenSet =
true;
183 m_eventSourceArn = std::forward<EventSourceArnT>(value);
185 template <
typename EventSourceArnT = Aws::String>
205 template <
typename FilterCriteriaT = FilterCriteria>
207 m_filterCriteriaHasBeenSet =
true;
208 m_filterCriteria = std::forward<FilterCriteriaT>(value);
210 template <
typename FilterCriteriaT = FilterCriteria>
223 template <
typename FunctionArnT = Aws::String>
225 m_functionArnHasBeenSet =
true;
226 m_functionArn = std::forward<FunctionArnT>(value);
228 template <
typename FunctionArnT = Aws::String>
242 template <
typename LastModifiedT = Aws::Utils::DateTime>
244 m_lastModifiedHasBeenSet =
true;
245 m_lastModified = std::forward<LastModifiedT>(value);
247 template <
typename LastModifiedT = Aws::Utils::DateTime>
260 template <
typename LastProcessingResultT = Aws::String>
262 m_lastProcessingResultHasBeenSet =
true;
263 m_lastProcessingResult = std::forward<LastProcessingResultT>(value);
265 template <
typename LastProcessingResultT = Aws::String>
281 template <
typename StateT = Aws::String>
283 m_stateHasBeenSet =
true;
284 m_state = std::forward<StateT>(value);
286 template <
typename StateT = Aws::String>
288 SetState(std::forward<StateT>(value));
300 template <
typename StateTransitionReasonT = Aws::String>
302 m_stateTransitionReasonHasBeenSet =
true;
303 m_stateTransitionReason = std::forward<StateTransitionReasonT>(value);
305 template <
typename StateTransitionReasonT = Aws::String>
320 template <
typename DestinationConfigT = DestinationConfig>
322 m_destinationConfigHasBeenSet =
true;
323 m_destinationConfig = std::forward<DestinationConfigT>(value);
325 template <
typename DestinationConfigT = DestinationConfig>
338 template <
typename TopicsT = Aws::Vector<Aws::String>>
340 m_topicsHasBeenSet =
true;
341 m_topics = std::forward<TopicsT>(value);
343 template <
typename TopicsT = Aws::Vector<Aws::String>>
348 template <
typename TopicsT = Aws::String>
350 m_topicsHasBeenSet =
true;
351 m_topics.emplace_back(std::forward<TopicsT>(value));
363 template <
typename QueuesT = Aws::Vector<Aws::String>>
365 m_queuesHasBeenSet =
true;
366 m_queues = std::forward<QueuesT>(value);
368 template <
typename QueuesT = Aws::Vector<Aws::String>>
373 template <
typename QueuesT = Aws::String>
375 m_queuesHasBeenSet =
true;
376 m_queues.emplace_back(std::forward<QueuesT>(value));
388 template <
typename SourceAccessConfigurationsT = Aws::Vector<SourceAccessConfiguration>>
390 m_sourceAccessConfigurationsHasBeenSet =
true;
391 m_sourceAccessConfigurations = std::forward<SourceAccessConfigurationsT>(value);
393 template <
typename SourceAccessConfigurationsT = Aws::Vector<SourceAccessConfiguration>>
398 template <
typename SourceAccessConfigurationsT = SourceAccessConfiguration>
400 m_sourceAccessConfigurationsHasBeenSet =
true;
401 m_sourceAccessConfigurations.emplace_back(std::forward<SourceAccessConfigurationsT>(value));
412 template <
typename SelfManagedEventSourceT = SelfManagedEventSource>
414 m_selfManagedEventSourceHasBeenSet =
true;
415 m_selfManagedEventSource = std::forward<SelfManagedEventSourceT>(value);
417 template <
typename SelfManagedEventSourceT = SelfManagedEventSource>
436 m_maximumRecordAgeInSecondsHasBeenSet =
true;
437 m_maximumRecordAgeInSeconds = value;
454 m_bisectBatchOnFunctionErrorHasBeenSet =
true;
455 m_bisectBatchOnFunctionError = value;
474 m_maximumRetryAttemptsHasBeenSet =
true;
475 m_maximumRetryAttempts = value;
492 m_tumblingWindowInSecondsHasBeenSet =
true;
493 m_tumblingWindowInSeconds = value;
509 template <
typename FunctionResponseTypesT = Aws::Vector<FunctionResponseType>>
511 m_functionResponseTypesHasBeenSet =
true;
512 m_functionResponseTypes = std::forward<FunctionResponseTypesT>(value);
514 template <
typename FunctionResponseTypesT = Aws::Vector<FunctionResponseType>>
520 m_functionResponseTypesHasBeenSet =
true;
521 m_functionResponseTypes.push_back(value);
532 return m_amazonManagedKafkaEventSourceConfig;
535 template <
typename AmazonManagedKafkaEventSourceConfigT = AmazonManagedKafkaEventSourceConfig>
537 m_amazonManagedKafkaEventSourceConfigHasBeenSet =
true;
538 m_amazonManagedKafkaEventSourceConfig = std::forward<AmazonManagedKafkaEventSourceConfigT>(value);
540 template <
typename AmazonManagedKafkaEventSourceConfigT = AmazonManagedKafkaEventSourceConfig>
553 return m_selfManagedKafkaEventSourceConfig;
556 template <
typename SelfManagedKafkaEventSourceConfigT = SelfManagedKafkaEventSourceConfig>
558 m_selfManagedKafkaEventSourceConfigHasBeenSet =
true;
559 m_selfManagedKafkaEventSourceConfig = std::forward<SelfManagedKafkaEventSourceConfigT>(value);
561 template <
typename SelfManagedKafkaEventSourceConfigT = SelfManagedKafkaEventSourceConfig>
577 template <
typename ScalingConfigT = ScalingConfig>
579 m_scalingConfigHasBeenSet =
true;
580 m_scalingConfig = std::forward<ScalingConfigT>(value);
582 template <
typename ScalingConfigT = ScalingConfig>
595 template <
typename DocumentDBEventSourceConfigT = DocumentDBEventSourceConfig>
597 m_documentDBEventSourceConfigHasBeenSet =
true;
598 m_documentDBEventSourceConfig = std::forward<DocumentDBEventSourceConfigT>(value);
600 template <
typename DocumentDBEventSourceConfigT = DocumentDBEventSourceConfig>
616 template <
typename KMSKeyArnT = Aws::String>
618 m_kMSKeyArnHasBeenSet =
true;
619 m_kMSKeyArn = std::forward<KMSKeyArnT>(value);
621 template <
typename KMSKeyArnT = Aws::String>
635 template <
typename FilterCriteriaErrorT = FilterCriteriaError>
637 m_filterCriteriaErrorHasBeenSet =
true;
638 m_filterCriteriaError = std::forward<FilterCriteriaErrorT>(value);
640 template <
typename FilterCriteriaErrorT = FilterCriteriaError>
653 template <
typename EventSourceMappingArnT = Aws::String>
655 m_eventSourceMappingArnHasBeenSet =
true;
656 m_eventSourceMappingArn = std::forward<EventSourceMappingArnT>(value);
658 template <
typename EventSourceMappingArnT = Aws::String>
673 template <
typename MetricsConfigT = EventSourceMappingMetricsConfig>
675 m_metricsConfigHasBeenSet =
true;
676 m_metricsConfig = std::forward<MetricsConfigT>(value);
678 template <
typename MetricsConfigT = EventSourceMappingMetricsConfig>
694 template <
typename ProvisionedPollerConfigT = ProvisionedPollerConfig>
696 m_provisionedPollerConfigHasBeenSet =
true;
697 m_provisionedPollerConfig = std::forward<ProvisionedPollerConfigT>(value);
699 template <
typename ProvisionedPollerConfigT = ProvisionedPollerConfig>
710 template <
typename RequestIdT = Aws::String>
712 m_requestIdHasBeenSet =
true;
713 m_requestId = std::forward<RequestIdT>(value);
715 template <
typename RequestIdT = Aws::String>
730 int m_maximumBatchingWindowInSeconds{0};
732 int m_parallelizationFactor{0};
736 FilterCriteria m_filterCriteria;
748 DestinationConfig m_destinationConfig;
756 SelfManagedEventSource m_selfManagedEventSource;
758 int m_maximumRecordAgeInSeconds{0};
760 bool m_bisectBatchOnFunctionError{
false};
762 int m_maximumRetryAttempts{0};
764 int m_tumblingWindowInSeconds{0};
768 AmazonManagedKafkaEventSourceConfig m_amazonManagedKafkaEventSourceConfig;
770 SelfManagedKafkaEventSourceConfig m_selfManagedKafkaEventSourceConfig;
772 ScalingConfig m_scalingConfig;
774 DocumentDBEventSourceConfig m_documentDBEventSourceConfig;
778 FilterCriteriaError m_filterCriteriaError;
782 EventSourceMappingMetricsConfig m_metricsConfig;
784 ProvisionedPollerConfig m_provisionedPollerConfig;
787 bool m_uUIDHasBeenSet =
false;
788 bool m_startingPositionHasBeenSet =
false;
789 bool m_startingPositionTimestampHasBeenSet =
false;
790 bool m_batchSizeHasBeenSet =
false;
791 bool m_maximumBatchingWindowInSecondsHasBeenSet =
false;
792 bool m_parallelizationFactorHasBeenSet =
false;
793 bool m_eventSourceArnHasBeenSet =
false;
794 bool m_filterCriteriaHasBeenSet =
false;
795 bool m_functionArnHasBeenSet =
false;
796 bool m_lastModifiedHasBeenSet =
false;
797 bool m_lastProcessingResultHasBeenSet =
false;
798 bool m_stateHasBeenSet =
false;
799 bool m_stateTransitionReasonHasBeenSet =
false;
800 bool m_destinationConfigHasBeenSet =
false;
801 bool m_topicsHasBeenSet =
false;
802 bool m_queuesHasBeenSet =
false;
803 bool m_sourceAccessConfigurationsHasBeenSet =
false;
804 bool m_selfManagedEventSourceHasBeenSet =
false;
805 bool m_maximumRecordAgeInSecondsHasBeenSet =
false;
806 bool m_bisectBatchOnFunctionErrorHasBeenSet =
false;
807 bool m_maximumRetryAttemptsHasBeenSet =
false;
808 bool m_tumblingWindowInSecondsHasBeenSet =
false;
809 bool m_functionResponseTypesHasBeenSet =
false;
810 bool m_amazonManagedKafkaEventSourceConfigHasBeenSet =
false;
811 bool m_selfManagedKafkaEventSourceConfigHasBeenSet =
false;
812 bool m_scalingConfigHasBeenSet =
false;
813 bool m_documentDBEventSourceConfigHasBeenSet =
false;
814 bool m_kMSKeyArnHasBeenSet =
false;
815 bool m_filterCriteriaErrorHasBeenSet =
false;
816 bool m_eventSourceMappingArnHasBeenSet =
false;
817 bool m_metricsConfigHasBeenSet =
false;
818 bool m_provisionedPollerConfigHasBeenSet =
false;
819 bool m_requestIdHasBeenSet =
false;
EventSourceMappingConfiguration & WithDestinationConfig(DestinationConfigT &&value)
const DocumentDBEventSourceConfig & GetDocumentDBEventSourceConfig() const
const FilterCriteriaError & GetFilterCriteriaError() const
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStartingPosition(EventSourcePosition value)
EventSourceMappingConfiguration & WithState(StateT &&value)
bool StateHasBeenSet() const
bool FilterCriteriaHasBeenSet() const
void SetUUID(UUIDT &&value)
EventSourceMappingConfiguration & WithDocumentDBEventSourceConfig(DocumentDBEventSourceConfigT &&value)
const Aws::Vector< FunctionResponseType > & GetFunctionResponseTypes() const
EventSourceMappingConfiguration & WithQueues(QueuesT &&value)
EventSourceMappingConfiguration & WithFunctionArn(FunctionArnT &&value)
const SelfManagedKafkaEventSourceConfig & GetSelfManagedKafkaEventSourceConfig() const
bool TopicsHasBeenSet() const
const Aws::String & GetKMSKeyArn() const
const AmazonManagedKafkaEventSourceConfig & GetAmazonManagedKafkaEventSourceConfig() const
const Aws::Utils::DateTime & GetStartingPositionTimestamp() const
bool QueuesHasBeenSet() const
const ScalingConfig & GetScalingConfig() const
EventSourceMappingConfiguration & AddSourceAccessConfigurations(SourceAccessConfigurationsT &&value)
const Aws::Vector< Aws::String > & GetTopics() const
bool DestinationConfigHasBeenSet() const
EventSourceMappingConfiguration & WithSourceAccessConfigurations(SourceAccessConfigurationsT &&value)
int GetMaximumRecordAgeInSeconds() const
EventSourceMappingConfiguration & WithMetricsConfig(MetricsConfigT &&value)
void SetProvisionedPollerConfig(ProvisionedPollerConfigT &&value)
const Aws::String & GetLastProcessingResult() const
bool ScalingConfigHasBeenSet() const
EventSourceMappingConfiguration & WithFilterCriteriaError(FilterCriteriaErrorT &&value)
const Aws::String & GetRequestId() const
bool KMSKeyArnHasBeenSet() const
const DestinationConfig & GetDestinationConfig() const
bool FilterCriteriaErrorHasBeenSet() const
bool RequestIdHasBeenSet() const
void SetDestinationConfig(DestinationConfigT &&value)
void SetKMSKeyArn(KMSKeyArnT &&value)
const Aws::String & GetFunctionArn() const
EventSourceMappingConfiguration & AddFunctionResponseTypes(FunctionResponseType value)
void SetTumblingWindowInSeconds(int value)
void SetBatchSize(int value)
bool DocumentDBEventSourceConfigHasBeenSet() const
bool SelfManagedKafkaEventSourceConfigHasBeenSet() const
void SetMaximumRetryAttempts(int value)
EventSourceMappingConfiguration & WithMaximumBatchingWindowInSeconds(int value)
EventSourcePosition GetStartingPosition() const
void SetStartingPositionTimestamp(StartingPositionTimestampT &&value)
EventSourceMappingConfiguration & WithFilterCriteria(FilterCriteriaT &&value)
void SetLastModified(LastModifiedT &&value)
const SelfManagedEventSource & GetSelfManagedEventSource() const
void SetRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetLastModified() const
EventSourceMappingConfiguration & WithBatchSize(int value)
EventSourceMappingConfiguration & WithParallelizationFactor(int value)
const Aws::String & GetStateTransitionReason() const
void SetScalingConfig(ScalingConfigT &&value)
bool LastModifiedHasBeenSet() const
void SetLastProcessingResult(LastProcessingResultT &&value)
const Aws::Vector< Aws::String > & GetQueues() const
bool ProvisionedPollerConfigHasBeenSet() const
EventSourceMappingConfiguration & WithKMSKeyArn(KMSKeyArnT &&value)
bool BisectBatchOnFunctionErrorHasBeenSet() const
const Aws::Vector< SourceAccessConfiguration > & GetSourceAccessConfigurations() const
bool SourceAccessConfigurationsHasBeenSet() const
EventSourceMappingConfiguration & WithTopics(TopicsT &&value)
EventSourceMappingConfiguration & WithMaximumRecordAgeInSeconds(int value)
void SetState(StateT &&value)
bool StartingPositionTimestampHasBeenSet() const
EventSourceMappingConfiguration & WithAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT &&value)
bool MaximumBatchingWindowInSecondsHasBeenSet() const
bool FunctionResponseTypesHasBeenSet() const
EventSourceMappingConfiguration & AddQueues(QueuesT &&value)
EventSourceMappingConfiguration & WithSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT &&value)
EventSourceMappingConfiguration & WithStateTransitionReason(StateTransitionReasonT &&value)
const Aws::String & GetEventSourceMappingArn() const
void SetEventSourceArn(EventSourceArnT &&value)
EventSourceMappingConfiguration & WithSelfManagedEventSource(SelfManagedEventSourceT &&value)
bool GetBisectBatchOnFunctionError() const
void SetEventSourceMappingArn(EventSourceMappingArnT &&value)
EventSourceMappingConfiguration & WithStartingPositionTimestamp(StartingPositionTimestampT &&value)
AWS_LAMBDA_API EventSourceMappingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
int GetParallelizationFactor() const
void SetFilterCriteriaError(FilterCriteriaErrorT &&value)
AWS_LAMBDA_API EventSourceMappingConfiguration(Aws::Utils::Json::JsonView jsonValue)
EventSourceMappingConfiguration & WithProvisionedPollerConfig(ProvisionedPollerConfigT &&value)
bool FunctionArnHasBeenSet() const
void SetAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT &&value)
void SetTopics(TopicsT &&value)
EventSourceMappingConfiguration & WithFunctionResponseTypes(FunctionResponseTypesT &&value)
EventSourceMappingConfiguration & WithEventSourceMappingArn(EventSourceMappingArnT &&value)
EventSourceMappingConfiguration & AddTopics(TopicsT &&value)
bool StartingPositionHasBeenSet() const
bool BatchSizeHasBeenSet() const
bool AmazonManagedKafkaEventSourceConfigHasBeenSet() const
const Aws::String & GetState() const
void SetSourceAccessConfigurations(SourceAccessConfigurationsT &&value)
const Aws::String & GetUUID() const
EventSourceMappingConfiguration & WithEventSourceArn(EventSourceArnT &&value)
bool MaximumRecordAgeInSecondsHasBeenSet() const
int GetMaximumBatchingWindowInSeconds() const
bool MaximumRetryAttemptsHasBeenSet() const
void SetStateTransitionReason(StateTransitionReasonT &&value)
const EventSourceMappingMetricsConfig & GetMetricsConfig() const
void SetMetricsConfig(MetricsConfigT &&value)
bool LastProcessingResultHasBeenSet() const
int GetTumblingWindowInSeconds() const
EventSourceMappingConfiguration & WithUUID(UUIDT &&value)
EventSourceMappingConfiguration & WithLastProcessingResult(LastProcessingResultT &&value)
AWS_LAMBDA_API EventSourceMappingConfiguration()=default
bool ParallelizationFactorHasBeenSet() const
EventSourceMappingConfiguration & WithRequestId(RequestIdT &&value)
void SetFunctionResponseTypes(FunctionResponseTypesT &&value)
void SetParallelizationFactor(int value)
void SetFunctionArn(FunctionArnT &&value)
void SetQueues(QueuesT &&value)
void SetMaximumRecordAgeInSeconds(int value)
void SetSelfManagedEventSource(SelfManagedEventSourceT &&value)
void SetMaximumBatchingWindowInSeconds(int value)
const FilterCriteria & GetFilterCriteria() const
EventSourceMappingConfiguration & WithTumblingWindowInSeconds(int value)
bool MetricsConfigHasBeenSet() const
EventSourceMappingConfiguration & WithLastModified(LastModifiedT &&value)
EventSourceMappingConfiguration & WithMaximumRetryAttempts(int value)
void SetFilterCriteria(FilterCriteriaT &&value)
const ProvisionedPollerConfig & GetProvisionedPollerConfig() const
void SetSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT &&value)
void SetDocumentDBEventSourceConfig(DocumentDBEventSourceConfigT &&value)
int GetMaximumRetryAttempts() const
void SetBisectBatchOnFunctionError(bool value)
EventSourceMappingConfiguration & WithStartingPosition(EventSourcePosition value)
EventSourceMappingConfiguration & WithScalingConfig(ScalingConfigT &&value)
bool UUIDHasBeenSet() const
const Aws::String & GetEventSourceArn() const
bool TumblingWindowInSecondsHasBeenSet() const
bool EventSourceArnHasBeenSet() const
bool StateTransitionReasonHasBeenSet() const
EventSourceMappingConfiguration & WithBisectBatchOnFunctionError(bool value)
bool SelfManagedEventSourceHasBeenSet() const
bool EventSourceMappingArnHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue