AWS SDK for C++  1.8.71
AWS SDK for C++
CreateEventSourceMappingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Lambda
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateEventSourceMapping"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
47  inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; }
48 
57  inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
58 
67  inline void SetEventSourceArn(const Aws::String& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = value; }
68 
77  inline void SetEventSourceArn(Aws::String&& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = std::move(value); }
78 
87  inline void SetEventSourceArn(const char* value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn.assign(value); }
88 
97  inline CreateEventSourceMappingRequest& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;}
98 
107  inline CreateEventSourceMappingRequest& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(std::move(value)); return *this;}
108 
117  inline CreateEventSourceMappingRequest& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;}
118 
119 
132  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
133 
146  inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
147 
160  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
161 
174  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
175 
188  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
189 
202  inline CreateEventSourceMappingRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
203 
216  inline CreateEventSourceMappingRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
217 
230  inline CreateEventSourceMappingRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
231 
232 
237  inline bool GetEnabled() const{ return m_enabled; }
238 
243  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
244 
249  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
250 
255  inline CreateEventSourceMappingRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
256 
257 
266  inline int GetBatchSize() const{ return m_batchSize; }
267 
276  inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; }
277 
286  inline void SetBatchSize(int value) { m_batchSizeHasBeenSet = true; m_batchSize = value; }
287 
296  inline CreateEventSourceMappingRequest& WithBatchSize(int value) { SetBatchSize(value); return *this;}
297 
298 
303  inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; }
304 
309  inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; }
310 
315  inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSecondsHasBeenSet = true; m_maximumBatchingWindowInSeconds = value; }
316 
321  inline CreateEventSourceMappingRequest& WithMaximumBatchingWindowInSeconds(int value) { SetMaximumBatchingWindowInSeconds(value); return *this;}
322 
323 
327  inline int GetParallelizationFactor() const{ return m_parallelizationFactor; }
328 
332  inline bool ParallelizationFactorHasBeenSet() const { return m_parallelizationFactorHasBeenSet; }
333 
337  inline void SetParallelizationFactor(int value) { m_parallelizationFactorHasBeenSet = true; m_parallelizationFactor = value; }
338 
342  inline CreateEventSourceMappingRequest& WithParallelizationFactor(int value) { SetParallelizationFactor(value); return *this;}
343 
344 
350  inline const EventSourcePosition& GetStartingPosition() const{ return m_startingPosition; }
351 
357  inline bool StartingPositionHasBeenSet() const { return m_startingPositionHasBeenSet; }
358 
364  inline void SetStartingPosition(const EventSourcePosition& value) { m_startingPositionHasBeenSet = true; m_startingPosition = value; }
365 
371  inline void SetStartingPosition(EventSourcePosition&& value) { m_startingPositionHasBeenSet = true; m_startingPosition = std::move(value); }
372 
378  inline CreateEventSourceMappingRequest& WithStartingPosition(const EventSourcePosition& value) { SetStartingPosition(value); return *this;}
379 
385  inline CreateEventSourceMappingRequest& WithStartingPosition(EventSourcePosition&& value) { SetStartingPosition(std::move(value)); return *this;}
386 
387 
392  inline const Aws::Utils::DateTime& GetStartingPositionTimestamp() const{ return m_startingPositionTimestamp; }
393 
398  inline bool StartingPositionTimestampHasBeenSet() const { return m_startingPositionTimestampHasBeenSet; }
399 
404  inline void SetStartingPositionTimestamp(const Aws::Utils::DateTime& value) { m_startingPositionTimestampHasBeenSet = true; m_startingPositionTimestamp = value; }
405 
410  inline void SetStartingPositionTimestamp(Aws::Utils::DateTime&& value) { m_startingPositionTimestampHasBeenSet = true; m_startingPositionTimestamp = std::move(value); }
411 
416  inline CreateEventSourceMappingRequest& WithStartingPositionTimestamp(const Aws::Utils::DateTime& value) { SetStartingPositionTimestamp(value); return *this;}
417 
422  inline CreateEventSourceMappingRequest& WithStartingPositionTimestamp(Aws::Utils::DateTime&& value) { SetStartingPositionTimestamp(std::move(value)); return *this;}
423 
424 
429  inline const DestinationConfig& GetDestinationConfig() const{ return m_destinationConfig; }
430 
435  inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; }
436 
441  inline void SetDestinationConfig(const DestinationConfig& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = value; }
442 
447  inline void SetDestinationConfig(DestinationConfig&& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = std::move(value); }
448 
453  inline CreateEventSourceMappingRequest& WithDestinationConfig(const DestinationConfig& value) { SetDestinationConfig(value); return *this;}
454 
459  inline CreateEventSourceMappingRequest& WithDestinationConfig(DestinationConfig&& value) { SetDestinationConfig(std::move(value)); return *this;}
460 
461 
466  inline int GetMaximumRecordAgeInSeconds() const{ return m_maximumRecordAgeInSeconds; }
467 
472  inline bool MaximumRecordAgeInSecondsHasBeenSet() const { return m_maximumRecordAgeInSecondsHasBeenSet; }
473 
478  inline void SetMaximumRecordAgeInSeconds(int value) { m_maximumRecordAgeInSecondsHasBeenSet = true; m_maximumRecordAgeInSeconds = value; }
479 
484  inline CreateEventSourceMappingRequest& WithMaximumRecordAgeInSeconds(int value) { SetMaximumRecordAgeInSeconds(value); return *this;}
485 
486 
491  inline bool GetBisectBatchOnFunctionError() const{ return m_bisectBatchOnFunctionError; }
492 
497  inline bool BisectBatchOnFunctionErrorHasBeenSet() const { return m_bisectBatchOnFunctionErrorHasBeenSet; }
498 
503  inline void SetBisectBatchOnFunctionError(bool value) { m_bisectBatchOnFunctionErrorHasBeenSet = true; m_bisectBatchOnFunctionError = value; }
504 
509  inline CreateEventSourceMappingRequest& WithBisectBatchOnFunctionError(bool value) { SetBisectBatchOnFunctionError(value); return *this;}
510 
511 
517  inline int GetMaximumRetryAttempts() const{ return m_maximumRetryAttempts; }
518 
524  inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; }
525 
531  inline void SetMaximumRetryAttempts(int value) { m_maximumRetryAttemptsHasBeenSet = true; m_maximumRetryAttempts = value; }
532 
538  inline CreateEventSourceMappingRequest& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;}
539 
540 
544  inline const Aws::Vector<Aws::String>& GetTopics() const{ return m_topics; }
545 
549  inline bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; }
550 
554  inline void SetTopics(const Aws::Vector<Aws::String>& value) { m_topicsHasBeenSet = true; m_topics = value; }
555 
559  inline void SetTopics(Aws::Vector<Aws::String>&& value) { m_topicsHasBeenSet = true; m_topics = std::move(value); }
560 
564  inline CreateEventSourceMappingRequest& WithTopics(const Aws::Vector<Aws::String>& value) { SetTopics(value); return *this;}
565 
569  inline CreateEventSourceMappingRequest& WithTopics(Aws::Vector<Aws::String>&& value) { SetTopics(std::move(value)); return *this;}
570 
574  inline CreateEventSourceMappingRequest& AddTopics(const Aws::String& value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; }
575 
579  inline CreateEventSourceMappingRequest& AddTopics(Aws::String&& value) { m_topicsHasBeenSet = true; m_topics.push_back(std::move(value)); return *this; }
580 
584  inline CreateEventSourceMappingRequest& AddTopics(const char* value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; }
585 
586  private:
587 
588  Aws::String m_eventSourceArn;
589  bool m_eventSourceArnHasBeenSet;
590 
591  Aws::String m_functionName;
592  bool m_functionNameHasBeenSet;
593 
594  bool m_enabled;
595  bool m_enabledHasBeenSet;
596 
597  int m_batchSize;
598  bool m_batchSizeHasBeenSet;
599 
600  int m_maximumBatchingWindowInSeconds;
601  bool m_maximumBatchingWindowInSecondsHasBeenSet;
602 
603  int m_parallelizationFactor;
604  bool m_parallelizationFactorHasBeenSet;
605 
606  EventSourcePosition m_startingPosition;
607  bool m_startingPositionHasBeenSet;
608 
609  Aws::Utils::DateTime m_startingPositionTimestamp;
610  bool m_startingPositionTimestampHasBeenSet;
611 
612  DestinationConfig m_destinationConfig;
613  bool m_destinationConfigHasBeenSet;
614 
615  int m_maximumRecordAgeInSeconds;
616  bool m_maximumRecordAgeInSecondsHasBeenSet;
617 
618  bool m_bisectBatchOnFunctionError;
619  bool m_bisectBatchOnFunctionErrorHasBeenSet;
620 
621  int m_maximumRetryAttempts;
622  bool m_maximumRetryAttemptsHasBeenSet;
623 
624  Aws::Vector<Aws::String> m_topics;
625  bool m_topicsHasBeenSet;
626  };
627 
628 } // namespace Model
629 } // namespace Lambda
630 } // namespace Aws
CreateEventSourceMappingRequest & WithBisectBatchOnFunctionError(bool value)
void SetStartingPositionTimestamp(const Aws::Utils::DateTime &value)
void SetTopics(const Aws::Vector< Aws::String > &value)
CreateEventSourceMappingRequest & WithMaximumRetryAttempts(int value)
CreateEventSourceMappingRequest & WithEventSourceArn(Aws::String &&value)
CreateEventSourceMappingRequest & WithBatchSize(int value)
CreateEventSourceMappingRequest & WithFunctionName(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateEventSourceMappingRequest & WithTopics(const Aws::Vector< Aws::String > &value)
CreateEventSourceMappingRequest & WithMaximumRecordAgeInSeconds(int value)
CreateEventSourceMappingRequest & AddTopics(const Aws::String &value)
CreateEventSourceMappingRequest & AddTopics(Aws::String &&value)
CreateEventSourceMappingRequest & WithEnabled(bool value)
#define AWS_LAMBDA_API
CreateEventSourceMappingRequest & WithFunctionName(const char *value)
CreateEventSourceMappingRequest & WithParallelizationFactor(int value)
CreateEventSourceMappingRequest & WithDestinationConfig(const DestinationConfig &value)
CreateEventSourceMappingRequest & WithStartingPositionTimestamp(Aws::Utils::DateTime &&value)
CreateEventSourceMappingRequest & WithStartingPosition(EventSourcePosition &&value)
CreateEventSourceMappingRequest & WithEventSourceArn(const Aws::String &value)
CreateEventSourceMappingRequest & WithFunctionName(const Aws::String &value)
CreateEventSourceMappingRequest & AddTopics(const char *value)
CreateEventSourceMappingRequest & WithStartingPosition(const EventSourcePosition &value)
CreateEventSourceMappingRequest & WithTopics(Aws::Vector< Aws::String > &&value)
CreateEventSourceMappingRequest & WithStartingPositionTimestamp(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateEventSourceMappingRequest & WithEventSourceArn(const char *value)
CreateEventSourceMappingRequest & WithMaximumBatchingWindowInSeconds(int value)
CreateEventSourceMappingRequest & WithDestinationConfig(DestinationConfig &&value)