AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PipeSourceKinesisStreamParameters.h
1
6#pragma once
7#include <aws/pipes/Pipes_EXPORTS.h>
8#include <aws/pipes/model/DeadLetterConfig.h>
9#include <aws/pipes/model/OnPartialBatchItemFailureStreams.h>
10#include <aws/pipes/model/KinesisStreamStartPosition.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Pipes
25{
26namespace Model
27{
28
36 {
37 public:
41 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline int GetBatchSize() const{ return m_batchSize; }
49 inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; }
50 inline void SetBatchSize(int value) { m_batchSizeHasBeenSet = true; m_batchSize = value; }
51 inline PipeSourceKinesisStreamParameters& WithBatchSize(int value) { SetBatchSize(value); return *this;}
53
55
58 inline const DeadLetterConfig& GetDeadLetterConfig() const{ return m_deadLetterConfig; }
59 inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
60 inline void SetDeadLetterConfig(const DeadLetterConfig& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = value; }
61 inline void SetDeadLetterConfig(DeadLetterConfig&& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = std::move(value); }
65
67
72 inline const OnPartialBatchItemFailureStreams& GetOnPartialBatchItemFailure() const{ return m_onPartialBatchItemFailure; }
73 inline bool OnPartialBatchItemFailureHasBeenSet() const { return m_onPartialBatchItemFailureHasBeenSet; }
74 inline void SetOnPartialBatchItemFailure(const OnPartialBatchItemFailureStreams& value) { m_onPartialBatchItemFailureHasBeenSet = true; m_onPartialBatchItemFailure = value; }
75 inline void SetOnPartialBatchItemFailure(OnPartialBatchItemFailureStreams&& value) { m_onPartialBatchItemFailureHasBeenSet = true; m_onPartialBatchItemFailure = std::move(value); }
79
81
84 inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; }
85 inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; }
86 inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSecondsHasBeenSet = true; m_maximumBatchingWindowInSeconds = value; }
89
91
96 inline int GetMaximumRecordAgeInSeconds() const{ return m_maximumRecordAgeInSeconds; }
97 inline bool MaximumRecordAgeInSecondsHasBeenSet() const { return m_maximumRecordAgeInSecondsHasBeenSet; }
98 inline void SetMaximumRecordAgeInSeconds(int value) { m_maximumRecordAgeInSecondsHasBeenSet = true; m_maximumRecordAgeInSeconds = value; }
101
103
109 inline int GetMaximumRetryAttempts() const{ return m_maximumRetryAttempts; }
110 inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; }
111 inline void SetMaximumRetryAttempts(int value) { m_maximumRetryAttemptsHasBeenSet = true; m_maximumRetryAttempts = value; }
114
116
120 inline int GetParallelizationFactor() const{ return m_parallelizationFactor; }
121 inline bool ParallelizationFactorHasBeenSet() const { return m_parallelizationFactorHasBeenSet; }
122 inline void SetParallelizationFactor(int value) { m_parallelizationFactorHasBeenSet = true; m_parallelizationFactor = value; }
125
127
130 inline const KinesisStreamStartPosition& GetStartingPosition() const{ return m_startingPosition; }
131 inline bool StartingPositionHasBeenSet() const { return m_startingPositionHasBeenSet; }
132 inline void SetStartingPosition(const KinesisStreamStartPosition& value) { m_startingPositionHasBeenSet = true; m_startingPosition = value; }
133 inline void SetStartingPosition(KinesisStreamStartPosition&& value) { m_startingPositionHasBeenSet = true; m_startingPosition = std::move(value); }
137
139
143 inline const Aws::Utils::DateTime& GetStartingPositionTimestamp() const{ return m_startingPositionTimestamp; }
144 inline bool StartingPositionTimestampHasBeenSet() const { return m_startingPositionTimestampHasBeenSet; }
145 inline void SetStartingPositionTimestamp(const Aws::Utils::DateTime& value) { m_startingPositionTimestampHasBeenSet = true; m_startingPositionTimestamp = value; }
146 inline void SetStartingPositionTimestamp(Aws::Utils::DateTime&& value) { m_startingPositionTimestampHasBeenSet = true; m_startingPositionTimestamp = std::move(value); }
150 private:
151
152 int m_batchSize;
153 bool m_batchSizeHasBeenSet = false;
154
155 DeadLetterConfig m_deadLetterConfig;
156 bool m_deadLetterConfigHasBeenSet = false;
157
158 OnPartialBatchItemFailureStreams m_onPartialBatchItemFailure;
159 bool m_onPartialBatchItemFailureHasBeenSet = false;
160
161 int m_maximumBatchingWindowInSeconds;
162 bool m_maximumBatchingWindowInSecondsHasBeenSet = false;
163
164 int m_maximumRecordAgeInSeconds;
165 bool m_maximumRecordAgeInSecondsHasBeenSet = false;
166
167 int m_maximumRetryAttempts;
168 bool m_maximumRetryAttemptsHasBeenSet = false;
169
170 int m_parallelizationFactor;
171 bool m_parallelizationFactorHasBeenSet = false;
172
173 KinesisStreamStartPosition m_startingPosition;
174 bool m_startingPositionHasBeenSet = false;
175
176 Aws::Utils::DateTime m_startingPositionTimestamp;
177 bool m_startingPositionTimestampHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace Pipes
182} // namespace Aws
PipeSourceKinesisStreamParameters & WithStartingPosition(const KinesisStreamStartPosition &value)
void SetOnPartialBatchItemFailure(OnPartialBatchItemFailureStreams &&value)
PipeSourceKinesisStreamParameters & WithMaximumRetryAttempts(int value)
PipeSourceKinesisStreamParameters & WithStartingPosition(KinesisStreamStartPosition &&value)
PipeSourceKinesisStreamParameters & WithStartingPositionTimestamp(const Aws::Utils::DateTime &value)
AWS_PIPES_API PipeSourceKinesisStreamParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
PipeSourceKinesisStreamParameters & WithOnPartialBatchItemFailure(const OnPartialBatchItemFailureStreams &value)
PipeSourceKinesisStreamParameters & WithMaximumBatchingWindowInSeconds(int value)
PipeSourceKinesisStreamParameters & WithOnPartialBatchItemFailure(OnPartialBatchItemFailureStreams &&value)
void SetOnPartialBatchItemFailure(const OnPartialBatchItemFailureStreams &value)
PipeSourceKinesisStreamParameters & WithMaximumRecordAgeInSeconds(int value)
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PIPES_API PipeSourceKinesisStreamParameters(Aws::Utils::Json::JsonView jsonValue)
PipeSourceKinesisStreamParameters & WithDeadLetterConfig(DeadLetterConfig &&value)
PipeSourceKinesisStreamParameters & WithDeadLetterConfig(const DeadLetterConfig &value)
const OnPartialBatchItemFailureStreams & GetOnPartialBatchItemFailure() const
void SetStartingPosition(const KinesisStreamStartPosition &value)
PipeSourceKinesisStreamParameters & WithParallelizationFactor(int value)
PipeSourceKinesisStreamParameters & WithStartingPositionTimestamp(Aws::Utils::DateTime &&value)
PipeSourceKinesisStreamParameters & WithBatchSize(int value)
Aws::Utils::Json::JsonValue JsonValue