AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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/EventSourceMappingMetricsConfig.h>
15#include <aws/lambda/model/FilterCriteria.h>
16#include <aws/lambda/model/FunctionResponseType.h>
17#include <aws/lambda/model/ProvisionedPollerConfig.h>
18#include <aws/lambda/model/ScalingConfig.h>
19#include <aws/lambda/model/SelfManagedKafkaEventSourceConfig.h>
20#include <aws/lambda/model/SourceAccessConfiguration.h>
21
22#include <utility>
23
24namespace Aws {
25namespace Lambda {
26namespace Model {
27
31 public:
32 AWS_LAMBDA_API UpdateEventSourceMappingRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "UpdateEventSourceMapping"; }
39
40 AWS_LAMBDA_API Aws::String SerializePayload() const override;
41
43
46 inline const Aws::String& GetUUID() const { return m_uUID; }
47 inline bool UUIDHasBeenSet() const { return m_uUIDHasBeenSet; }
48 template <typename UUIDT = Aws::String>
49 void SetUUID(UUIDT&& value) {
50 m_uUIDHasBeenSet = true;
51 m_uUID = std::forward<UUIDT>(value);
52 }
53 template <typename UUIDT = Aws::String>
55 SetUUID(std::forward<UUIDT>(value));
56 return *this;
57 }
59
61
73 inline const Aws::String& GetFunctionName() const { return m_functionName; }
74 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
75 template <typename FunctionNameT = Aws::String>
76 void SetFunctionName(FunctionNameT&& value) {
77 m_functionNameHasBeenSet = true;
78 m_functionName = std::forward<FunctionNameT>(value);
79 }
80 template <typename FunctionNameT = Aws::String>
82 SetFunctionName(std::forward<FunctionNameT>(value));
83 return *this;
84 }
86
88
92 inline bool GetEnabled() const { return m_enabled; }
93 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
94 inline void SetEnabled(bool value) {
95 m_enabledHasBeenSet = true;
96 m_enabled = value;
97 }
99 SetEnabled(value);
100 return *this;
101 }
103
105
119 inline int GetBatchSize() const { return m_batchSize; }
120 inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; }
121 inline void SetBatchSize(int value) {
122 m_batchSizeHasBeenSet = true;
123 m_batchSize = value;
124 }
126 SetBatchSize(value);
127 return *this;
128 }
130
132
138 inline const FilterCriteria& GetFilterCriteria() const { return m_filterCriteria; }
139 inline bool FilterCriteriaHasBeenSet() const { return m_filterCriteriaHasBeenSet; }
140 template <typename FilterCriteriaT = FilterCriteria>
141 void SetFilterCriteria(FilterCriteriaT&& value) {
142 m_filterCriteriaHasBeenSet = true;
143 m_filterCriteria = std::forward<FilterCriteriaT>(value);
144 }
145 template <typename FilterCriteriaT = FilterCriteria>
147 SetFilterCriteria(std::forward<FilterCriteriaT>(value));
148 return *this;
149 }
151
153
168 inline int GetMaximumBatchingWindowInSeconds() const { return m_maximumBatchingWindowInSeconds; }
169 inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; }
170 inline void SetMaximumBatchingWindowInSeconds(int value) {
171 m_maximumBatchingWindowInSecondsHasBeenSet = true;
172 m_maximumBatchingWindowInSeconds = value;
173 }
176 return *this;
177 }
179
181
186 inline const DestinationConfig& GetDestinationConfig() const { return m_destinationConfig; }
187 inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; }
188 template <typename DestinationConfigT = DestinationConfig>
189 void SetDestinationConfig(DestinationConfigT&& value) {
190 m_destinationConfigHasBeenSet = true;
191 m_destinationConfig = std::forward<DestinationConfigT>(value);
192 }
193 template <typename DestinationConfigT = DestinationConfig>
195 SetDestinationConfig(std::forward<DestinationConfigT>(value));
196 return *this;
197 }
199
201
206 inline int GetMaximumRecordAgeInSeconds() const { return m_maximumRecordAgeInSeconds; }
207 inline bool MaximumRecordAgeInSecondsHasBeenSet() const { return m_maximumRecordAgeInSecondsHasBeenSet; }
208 inline void SetMaximumRecordAgeInSeconds(int value) {
209 m_maximumRecordAgeInSecondsHasBeenSet = true;
210 m_maximumRecordAgeInSeconds = value;
211 }
214 return *this;
215 }
217
219
223 inline bool GetBisectBatchOnFunctionError() const { return m_bisectBatchOnFunctionError; }
224 inline bool BisectBatchOnFunctionErrorHasBeenSet() const { return m_bisectBatchOnFunctionErrorHasBeenSet; }
225 inline void SetBisectBatchOnFunctionError(bool value) {
226 m_bisectBatchOnFunctionErrorHasBeenSet = true;
227 m_bisectBatchOnFunctionError = value;
228 }
231 return *this;
232 }
234
236
242 inline int GetMaximumRetryAttempts() const { return m_maximumRetryAttempts; }
243 inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; }
244 inline void SetMaximumRetryAttempts(int value) {
245 m_maximumRetryAttemptsHasBeenSet = true;
246 m_maximumRetryAttempts = value;
247 }
250 return *this;
251 }
253
255
259 inline int GetParallelizationFactor() const { return m_parallelizationFactor; }
260 inline bool ParallelizationFactorHasBeenSet() const { return m_parallelizationFactorHasBeenSet; }
261 inline void SetParallelizationFactor(int value) {
262 m_parallelizationFactorHasBeenSet = true;
263 m_parallelizationFactor = value;
264 }
267 return *this;
268 }
270
272
276 inline const Aws::Vector<SourceAccessConfiguration>& GetSourceAccessConfigurations() const { return m_sourceAccessConfigurations; }
277 inline bool SourceAccessConfigurationsHasBeenSet() const { return m_sourceAccessConfigurationsHasBeenSet; }
278 template <typename SourceAccessConfigurationsT = Aws::Vector<SourceAccessConfiguration>>
279 void SetSourceAccessConfigurations(SourceAccessConfigurationsT&& value) {
280 m_sourceAccessConfigurationsHasBeenSet = true;
281 m_sourceAccessConfigurations = std::forward<SourceAccessConfigurationsT>(value);
282 }
283 template <typename SourceAccessConfigurationsT = Aws::Vector<SourceAccessConfiguration>>
285 SetSourceAccessConfigurations(std::forward<SourceAccessConfigurationsT>(value));
286 return *this;
287 }
288 template <typename SourceAccessConfigurationsT = SourceAccessConfiguration>
290 m_sourceAccessConfigurationsHasBeenSet = true;
291 m_sourceAccessConfigurations.emplace_back(std::forward<SourceAccessConfigurationsT>(value));
292 return *this;
293 }
295
297
302 inline int GetTumblingWindowInSeconds() const { return m_tumblingWindowInSeconds; }
303 inline bool TumblingWindowInSecondsHasBeenSet() const { return m_tumblingWindowInSecondsHasBeenSet; }
304 inline void SetTumblingWindowInSeconds(int value) {
305 m_tumblingWindowInSecondsHasBeenSet = true;
306 m_tumblingWindowInSeconds = value;
307 }
310 return *this;
311 }
313
315
320 inline const Aws::Vector<FunctionResponseType>& GetFunctionResponseTypes() const { return m_functionResponseTypes; }
321 inline bool FunctionResponseTypesHasBeenSet() const { return m_functionResponseTypesHasBeenSet; }
322 template <typename FunctionResponseTypesT = Aws::Vector<FunctionResponseType>>
323 void SetFunctionResponseTypes(FunctionResponseTypesT&& value) {
324 m_functionResponseTypesHasBeenSet = true;
325 m_functionResponseTypes = std::forward<FunctionResponseTypesT>(value);
326 }
327 template <typename FunctionResponseTypesT = Aws::Vector<FunctionResponseType>>
329 SetFunctionResponseTypes(std::forward<FunctionResponseTypesT>(value));
330 return *this;
331 }
333 m_functionResponseTypesHasBeenSet = true;
334 m_functionResponseTypes.push_back(value);
335 return *this;
336 }
338
340
346 inline const ScalingConfig& GetScalingConfig() const { return m_scalingConfig; }
347 inline bool ScalingConfigHasBeenSet() const { return m_scalingConfigHasBeenSet; }
348 template <typename ScalingConfigT = ScalingConfig>
349 void SetScalingConfig(ScalingConfigT&& value) {
350 m_scalingConfigHasBeenSet = true;
351 m_scalingConfig = std::forward<ScalingConfigT>(value);
352 }
353 template <typename ScalingConfigT = ScalingConfig>
355 SetScalingConfig(std::forward<ScalingConfigT>(value));
356 return *this;
357 }
359
361
363 return m_amazonManagedKafkaEventSourceConfig;
364 }
365 inline bool AmazonManagedKafkaEventSourceConfigHasBeenSet() const { return m_amazonManagedKafkaEventSourceConfigHasBeenSet; }
366 template <typename AmazonManagedKafkaEventSourceConfigT = AmazonManagedKafkaEventSourceConfig>
367 void SetAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT&& value) {
368 m_amazonManagedKafkaEventSourceConfigHasBeenSet = true;
369 m_amazonManagedKafkaEventSourceConfig = std::forward<AmazonManagedKafkaEventSourceConfigT>(value);
370 }
371 template <typename AmazonManagedKafkaEventSourceConfigT = AmazonManagedKafkaEventSourceConfig>
372 UpdateEventSourceMappingRequest& WithAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigT&& value) {
373 SetAmazonManagedKafkaEventSourceConfig(std::forward<AmazonManagedKafkaEventSourceConfigT>(value));
374 return *this;
375 }
377
379
381 return m_selfManagedKafkaEventSourceConfig;
382 }
383 inline bool SelfManagedKafkaEventSourceConfigHasBeenSet() const { return m_selfManagedKafkaEventSourceConfigHasBeenSet; }
384 template <typename SelfManagedKafkaEventSourceConfigT = SelfManagedKafkaEventSourceConfig>
385 void SetSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT&& value) {
386 m_selfManagedKafkaEventSourceConfigHasBeenSet = true;
387 m_selfManagedKafkaEventSourceConfig = std::forward<SelfManagedKafkaEventSourceConfigT>(value);
388 }
389 template <typename SelfManagedKafkaEventSourceConfigT = SelfManagedKafkaEventSourceConfig>
390 UpdateEventSourceMappingRequest& WithSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigT&& value) {
391 SetSelfManagedKafkaEventSourceConfig(std::forward<SelfManagedKafkaEventSourceConfigT>(value));
392 return *this;
393 }
395
397
400 inline const DocumentDBEventSourceConfig& GetDocumentDBEventSourceConfig() const { return m_documentDBEventSourceConfig; }
401 inline bool DocumentDBEventSourceConfigHasBeenSet() const { return m_documentDBEventSourceConfigHasBeenSet; }
402 template <typename DocumentDBEventSourceConfigT = DocumentDBEventSourceConfig>
403 void SetDocumentDBEventSourceConfig(DocumentDBEventSourceConfigT&& value) {
404 m_documentDBEventSourceConfigHasBeenSet = true;
405 m_documentDBEventSourceConfig = std::forward<DocumentDBEventSourceConfigT>(value);
406 }
407 template <typename DocumentDBEventSourceConfigT = DocumentDBEventSourceConfig>
409 SetDocumentDBEventSourceConfig(std::forward<DocumentDBEventSourceConfigT>(value));
410 return *this;
411 }
413
415
422 inline const Aws::String& GetKMSKeyArn() const { return m_kMSKeyArn; }
423 inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
424 template <typename KMSKeyArnT = Aws::String>
425 void SetKMSKeyArn(KMSKeyArnT&& value) {
426 m_kMSKeyArnHasBeenSet = true;
427 m_kMSKeyArn = std::forward<KMSKeyArnT>(value);
428 }
429 template <typename KMSKeyArnT = Aws::String>
431 SetKMSKeyArn(std::forward<KMSKeyArnT>(value));
432 return *this;
433 }
435
437
442 inline const EventSourceMappingMetricsConfig& GetMetricsConfig() const { return m_metricsConfig; }
443 inline bool MetricsConfigHasBeenSet() const { return m_metricsConfigHasBeenSet; }
444 template <typename MetricsConfigT = EventSourceMappingMetricsConfig>
445 void SetMetricsConfig(MetricsConfigT&& value) {
446 m_metricsConfigHasBeenSet = true;
447 m_metricsConfig = std::forward<MetricsConfigT>(value);
448 }
449 template <typename MetricsConfigT = EventSourceMappingMetricsConfig>
451 SetMetricsConfig(std::forward<MetricsConfigT>(value));
452 return *this;
453 }
455
457
463 inline const ProvisionedPollerConfig& GetProvisionedPollerConfig() const { return m_provisionedPollerConfig; }
464 inline bool ProvisionedPollerConfigHasBeenSet() const { return m_provisionedPollerConfigHasBeenSet; }
465 template <typename ProvisionedPollerConfigT = ProvisionedPollerConfig>
466 void SetProvisionedPollerConfig(ProvisionedPollerConfigT&& value) {
467 m_provisionedPollerConfigHasBeenSet = true;
468 m_provisionedPollerConfig = std::forward<ProvisionedPollerConfigT>(value);
469 }
470 template <typename ProvisionedPollerConfigT = ProvisionedPollerConfig>
472 SetProvisionedPollerConfig(std::forward<ProvisionedPollerConfigT>(value));
473 return *this;
474 }
476 private:
477 Aws::String m_uUID;
478 bool m_uUIDHasBeenSet = false;
479
480 Aws::String m_functionName;
481 bool m_functionNameHasBeenSet = false;
482
483 bool m_enabled{false};
484 bool m_enabledHasBeenSet = false;
485
486 int m_batchSize{0};
487 bool m_batchSizeHasBeenSet = false;
488
489 FilterCriteria m_filterCriteria;
490 bool m_filterCriteriaHasBeenSet = false;
491
492 int m_maximumBatchingWindowInSeconds{0};
493 bool m_maximumBatchingWindowInSecondsHasBeenSet = false;
494
495 DestinationConfig m_destinationConfig;
496 bool m_destinationConfigHasBeenSet = false;
497
498 int m_maximumRecordAgeInSeconds{0};
499 bool m_maximumRecordAgeInSecondsHasBeenSet = false;
500
501 bool m_bisectBatchOnFunctionError{false};
502 bool m_bisectBatchOnFunctionErrorHasBeenSet = false;
503
504 int m_maximumRetryAttempts{0};
505 bool m_maximumRetryAttemptsHasBeenSet = false;
506
507 int m_parallelizationFactor{0};
508 bool m_parallelizationFactorHasBeenSet = false;
509
510 Aws::Vector<SourceAccessConfiguration> m_sourceAccessConfigurations;
511 bool m_sourceAccessConfigurationsHasBeenSet = false;
512
513 int m_tumblingWindowInSeconds{0};
514 bool m_tumblingWindowInSecondsHasBeenSet = false;
515
516 Aws::Vector<FunctionResponseType> m_functionResponseTypes;
517 bool m_functionResponseTypesHasBeenSet = false;
518
519 ScalingConfig m_scalingConfig;
520 bool m_scalingConfigHasBeenSet = false;
521
522 AmazonManagedKafkaEventSourceConfig m_amazonManagedKafkaEventSourceConfig;
523 bool m_amazonManagedKafkaEventSourceConfigHasBeenSet = false;
524
525 SelfManagedKafkaEventSourceConfig m_selfManagedKafkaEventSourceConfig;
526 bool m_selfManagedKafkaEventSourceConfigHasBeenSet = false;
527
528 DocumentDBEventSourceConfig m_documentDBEventSourceConfig;
529 bool m_documentDBEventSourceConfigHasBeenSet = false;
530
531 Aws::String m_kMSKeyArn;
532 bool m_kMSKeyArnHasBeenSet = false;
533
534 EventSourceMappingMetricsConfig m_metricsConfig;
535 bool m_metricsConfigHasBeenSet = false;
536
537 ProvisionedPollerConfig m_provisionedPollerConfig;
538 bool m_provisionedPollerConfigHasBeenSet = false;
539};
540
541} // namespace Model
542} // namespace Lambda
543} // namespace Aws
const SelfManagedKafkaEventSourceConfig & GetSelfManagedKafkaEventSourceConfig() 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 & 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