7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lambda/model/EventSourcePosition.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/lambda/model/FilterCriteria.h>
12#include <aws/lambda/model/DestinationConfig.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/lambda/model/SelfManagedEventSource.h>
15#include <aws/lambda/model/AmazonManagedKafkaEventSourceConfig.h>
16#include <aws/lambda/model/SelfManagedKafkaEventSourceConfig.h>
17#include <aws/lambda/model/ScalingConfig.h>
18#include <aws/lambda/model/DocumentDBEventSourceConfig.h>
19#include <aws/lambda/model/FilterCriteriaError.h>
20#include <aws/lambda/model/EventSourceMappingMetricsConfig.h>
21#include <aws/lambda/model/ProvisionedPollerConfig.h>
22#include <aws/lambda/model/SourceAccessConfiguration.h>
23#include <aws/lambda/model/FunctionResponseType.h>
62 template<
typename UUIDT = Aws::String>
63 void SetUUID(UUIDT&& value) { m_uUIDHasBeenSet =
true; m_uUID = std::forward<UUIDT>(value); }
64 template<
typename UUIDT = Aws::String>
89 template<
typename StartingPositionTimestampT = Aws::Utils::DateTime>
90 void SetStartingPositionTimestamp(StartingPositionTimestampT&& value) { m_startingPositionTimestampHasBeenSet =
true; m_startingPositionTimestamp = std::forward<StartingPositionTimestampT>(value); }
91 template<
typename StartingPositionTimestampT = Aws::Utils::DateTime>
107 inline void SetBatchSize(
int value) { m_batchSizeHasBeenSet =
true; m_batchSize = value; }
150 template<
typename EventSourceArnT = Aws::String>
151 void SetEventSourceArn(EventSourceArnT&& value) { m_eventSourceArnHasBeenSet =
true; m_eventSourceArn = std::forward<EventSourceArnT>(value); }
152 template<
typename EventSourceArnT = Aws::String>
169 template<
typename FilterCriteriaT = FilterCriteria>
170 void SetFilterCriteria(FilterCriteriaT&& value) { m_filterCriteriaHasBeenSet =
true; m_filterCriteria = std::forward<FilterCriteriaT>(value); }
171 template<
typename FilterCriteriaT = FilterCriteria>
181 template<
typename FunctionArnT = Aws::String>
182 void SetFunctionArn(FunctionArnT&& value) { m_functionArnHasBeenSet =
true; m_functionArn = std::forward<FunctionArnT>(value); }
183 template<
typename FunctionArnT = Aws::String>
194 template<
typename LastModifiedT = Aws::Utils::DateTime>
195 void SetLastModified(LastModifiedT&& value) { m_lastModifiedHasBeenSet =
true; m_lastModified = std::forward<LastModifiedT>(value); }
196 template<
typename LastModifiedT = Aws::Utils::DateTime>
206 template<
typename LastProcessingResultT = Aws::String>
207 void SetLastProcessingResult(LastProcessingResultT&& value) { m_lastProcessingResultHasBeenSet =
true; m_lastProcessingResult = std::forward<LastProcessingResultT>(value); }
208 template<
typename LastProcessingResultT = Aws::String>
221 template<
typename StateT = Aws::String>
222 void SetState(StateT&& value) { m_stateHasBeenSet =
true; m_state = std::forward<StateT>(value); }
223 template<
typename StateT = Aws::String>
234 template<
typename StateTransitionReasonT = Aws::String>
235 void SetStateTransitionReason(StateTransitionReasonT&& value) { m_stateTransitionReasonHasBeenSet =
true; m_stateTransitionReason = std::forward<StateTransitionReasonT>(value); }
236 template<
typename StateTransitionReasonT = Aws::String>
248 template<
typename DestinationConfigT = DestinationConfig>
249 void SetDestinationConfig(DestinationConfigT&& value) { m_destinationConfigHasBeenSet =
true; m_destinationConfig = std::forward<DestinationConfigT>(value); }
250 template<
typename DestinationConfigT = DestinationConfig>
260 template<
typename TopicsT = Aws::Vector<Aws::String>>
261 void SetTopics(TopicsT&& value) { m_topicsHasBeenSet =
true; m_topics = std::forward<TopicsT>(value); }
262 template<
typename TopicsT = Aws::Vector<Aws::String>>
264 template<
typename TopicsT = Aws::String>
275 template<
typename QueuesT = Aws::Vector<Aws::String>>
276 void SetQueues(QueuesT&& value) { m_queuesHasBeenSet =
true; m_queues = std::forward<QueuesT>(value); }
277 template<
typename QueuesT = Aws::Vector<Aws::String>>
279 template<
typename QueuesT = Aws::String>
290 template<
typename SourceAccessConfigurationsT = Aws::Vector<SourceAccessConfiguration>>
291 void SetSourceAccessConfigurations(SourceAccessConfigurationsT&& value) { m_sourceAccessConfigurationsHasBeenSet =
true; m_sourceAccessConfigurations = std::forward<SourceAccessConfigurationsT>(value); }
292 template<
typename SourceAccessConfigurationsT = Aws::Vector<SourceAccessConfiguration>>
294 template<
typename SourceAccessConfigurationsT = SourceAccessConfiguration>
304 template<
typename SelfManagedEventSourceT = SelfManagedEventSource>
305 void SetSelfManagedEventSource(SelfManagedEventSourceT&& value) { m_selfManagedEventSourceHasBeenSet =
true; m_selfManagedEventSource = std::forward<SelfManagedEventSourceT>(value); }
306 template<
typename SelfManagedEventSourceT = SelfManagedEventSource>
368 template<
typename FunctionResponseTypesT = Aws::Vector<FunctionResponseType>>
369 void SetFunctionResponseTypes(FunctionResponseTypesT&& value) { m_functionResponseTypesHasBeenSet =
true; m_functionResponseTypes = std::forward<FunctionResponseTypesT>(value); }
370 template<
typename FunctionResponseTypesT = Aws::Vector<FunctionResponseType>>
382 template<
typename AmazonManagedKafkaEventSourceConfigT = AmazonManagedKafkaEventSourceConfig>
383 void SetAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT&& value) { m_amazonManagedKafkaEventSourceConfigHasBeenSet =
true; m_amazonManagedKafkaEventSourceConfig = std::forward<AmazonManagedKafkaEventSourceConfigT>(value); }
384 template<
typename AmazonManagedKafkaEventSourceConfigT = AmazonManagedKafkaEventSourceConfig>
395 template<
typename SelfManagedKafkaEventSourceConfigT = SelfManagedKafkaEventSourceConfig>
396 void SetSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT&& value) { m_selfManagedKafkaEventSourceConfigHasBeenSet =
true; m_selfManagedKafkaEventSourceConfig = std::forward<SelfManagedKafkaEventSourceConfigT>(value); }
397 template<
typename SelfManagedKafkaEventSourceConfigT = SelfManagedKafkaEventSourceConfig>
410 template<
typename ScalingConfigT = ScalingConfig>
411 void SetScalingConfig(ScalingConfigT&& value) { m_scalingConfigHasBeenSet =
true; m_scalingConfig = std::forward<ScalingConfigT>(value); }
412 template<
typename ScalingConfigT = ScalingConfig>
422 template<
typename DocumentDBEventSourceConfigT = DocumentDBEventSourceConfig>
423 void SetDocumentDBEventSourceConfig(DocumentDBEventSourceConfigT&& value) { m_documentDBEventSourceConfigHasBeenSet =
true; m_documentDBEventSourceConfig = std::forward<DocumentDBEventSourceConfigT>(value); }
424 template<
typename DocumentDBEventSourceConfigT = DocumentDBEventSourceConfig>
437 template<
typename KMSKeyArnT = Aws::String>
438 void SetKMSKeyArn(KMSKeyArnT&& value) { m_kMSKeyArnHasBeenSet =
true; m_kMSKeyArn = std::forward<KMSKeyArnT>(value); }
439 template<
typename KMSKeyArnT = Aws::String>
450 template<
typename FilterCriteriaErrorT = FilterCriteriaError>
451 void SetFilterCriteriaError(FilterCriteriaErrorT&& value) { m_filterCriteriaErrorHasBeenSet =
true; m_filterCriteriaError = std::forward<FilterCriteriaErrorT>(value); }
452 template<
typename FilterCriteriaErrorT = FilterCriteriaError>
462 template<
typename EventSourceMappingArnT = Aws::String>
463 void SetEventSourceMappingArn(EventSourceMappingArnT&& value) { m_eventSourceMappingArnHasBeenSet =
true; m_eventSourceMappingArn = std::forward<EventSourceMappingArnT>(value); }
464 template<
typename EventSourceMappingArnT = Aws::String>
476 template<
typename MetricsConfigT = EventSourceMappingMetricsConfig>
477 void SetMetricsConfig(MetricsConfigT&& value) { m_metricsConfigHasBeenSet =
true; m_metricsConfig = std::forward<MetricsConfigT>(value); }
478 template<
typename MetricsConfigT = EventSourceMappingMetricsConfig>
491 template<
typename ProvisionedPollerConfigT = ProvisionedPollerConfig>
492 void SetProvisionedPollerConfig(ProvisionedPollerConfigT&& value) { m_provisionedPollerConfigHasBeenSet =
true; m_provisionedPollerConfig = std::forward<ProvisionedPollerConfigT>(value); }
493 template<
typename ProvisionedPollerConfigT = ProvisionedPollerConfig>
501 template<
typename RequestIdT = Aws::String>
502 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
503 template<
typename RequestIdT = Aws::String>
509 bool m_uUIDHasBeenSet =
false;
512 bool m_startingPositionHasBeenSet =
false;
515 bool m_startingPositionTimestampHasBeenSet =
false;
518 bool m_batchSizeHasBeenSet =
false;
520 int m_maximumBatchingWindowInSeconds{0};
521 bool m_maximumBatchingWindowInSecondsHasBeenSet =
false;
523 int m_parallelizationFactor{0};
524 bool m_parallelizationFactorHasBeenSet =
false;
527 bool m_eventSourceArnHasBeenSet =
false;
529 FilterCriteria m_filterCriteria;
530 bool m_filterCriteriaHasBeenSet =
false;
533 bool m_functionArnHasBeenSet =
false;
536 bool m_lastModifiedHasBeenSet =
false;
539 bool m_lastProcessingResultHasBeenSet =
false;
542 bool m_stateHasBeenSet =
false;
545 bool m_stateTransitionReasonHasBeenSet =
false;
547 DestinationConfig m_destinationConfig;
548 bool m_destinationConfigHasBeenSet =
false;
551 bool m_topicsHasBeenSet =
false;
554 bool m_queuesHasBeenSet =
false;
557 bool m_sourceAccessConfigurationsHasBeenSet =
false;
559 SelfManagedEventSource m_selfManagedEventSource;
560 bool m_selfManagedEventSourceHasBeenSet =
false;
562 int m_maximumRecordAgeInSeconds{0};
563 bool m_maximumRecordAgeInSecondsHasBeenSet =
false;
565 bool m_bisectBatchOnFunctionError{
false};
566 bool m_bisectBatchOnFunctionErrorHasBeenSet =
false;
568 int m_maximumRetryAttempts{0};
569 bool m_maximumRetryAttemptsHasBeenSet =
false;
571 int m_tumblingWindowInSeconds{0};
572 bool m_tumblingWindowInSecondsHasBeenSet =
false;
575 bool m_functionResponseTypesHasBeenSet =
false;
577 AmazonManagedKafkaEventSourceConfig m_amazonManagedKafkaEventSourceConfig;
578 bool m_amazonManagedKafkaEventSourceConfigHasBeenSet =
false;
580 SelfManagedKafkaEventSourceConfig m_selfManagedKafkaEventSourceConfig;
581 bool m_selfManagedKafkaEventSourceConfigHasBeenSet =
false;
583 ScalingConfig m_scalingConfig;
584 bool m_scalingConfigHasBeenSet =
false;
586 DocumentDBEventSourceConfig m_documentDBEventSourceConfig;
587 bool m_documentDBEventSourceConfigHasBeenSet =
false;
590 bool m_kMSKeyArnHasBeenSet =
false;
592 FilterCriteriaError m_filterCriteriaError;
593 bool m_filterCriteriaErrorHasBeenSet =
false;
596 bool m_eventSourceMappingArnHasBeenSet =
false;
598 EventSourceMappingMetricsConfig m_metricsConfig;
599 bool m_metricsConfigHasBeenSet =
false;
601 ProvisionedPollerConfig m_provisionedPollerConfig;
602 bool m_provisionedPollerConfigHasBeenSet =
false;
605 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