AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
KinesisStreamingSourceOptions.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/model/StartingPosition.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GLUE_API KinesisStreamingSourceOptions() = default;
41
42
44
47 inline const Aws::String& GetEndpointUrl() const { return m_endpointUrl; }
48 inline bool EndpointUrlHasBeenSet() const { return m_endpointUrlHasBeenSet; }
49 template<typename EndpointUrlT = Aws::String>
50 void SetEndpointUrl(EndpointUrlT&& value) { m_endpointUrlHasBeenSet = true; m_endpointUrl = std::forward<EndpointUrlT>(value); }
51 template<typename EndpointUrlT = Aws::String>
52 KinesisStreamingSourceOptions& WithEndpointUrl(EndpointUrlT&& value) { SetEndpointUrl(std::forward<EndpointUrlT>(value)); return *this;}
54
56
59 inline const Aws::String& GetStreamName() const { return m_streamName; }
60 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
61 template<typename StreamNameT = Aws::String>
62 void SetStreamName(StreamNameT&& value) { m_streamNameHasBeenSet = true; m_streamName = std::forward<StreamNameT>(value); }
63 template<typename StreamNameT = Aws::String>
64 KinesisStreamingSourceOptions& WithStreamName(StreamNameT&& value) { SetStreamName(std::forward<StreamNameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetClassification() const { return m_classification; }
72 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
73 template<typename ClassificationT = Aws::String>
74 void SetClassification(ClassificationT&& value) { m_classificationHasBeenSet = true; m_classification = std::forward<ClassificationT>(value); }
75 template<typename ClassificationT = Aws::String>
76 KinesisStreamingSourceOptions& WithClassification(ClassificationT&& value) { SetClassification(std::forward<ClassificationT>(value)); return *this;}
78
80
83 inline const Aws::String& GetDelimiter() const { return m_delimiter; }
84 inline bool DelimiterHasBeenSet() const { return m_delimiterHasBeenSet; }
85 template<typename DelimiterT = Aws::String>
86 void SetDelimiter(DelimiterT&& value) { m_delimiterHasBeenSet = true; m_delimiter = std::forward<DelimiterT>(value); }
87 template<typename DelimiterT = Aws::String>
88 KinesisStreamingSourceOptions& WithDelimiter(DelimiterT&& value) { SetDelimiter(std::forward<DelimiterT>(value)); return *this;}
90
92
102 inline StartingPosition GetStartingPosition() const { return m_startingPosition; }
103 inline bool StartingPositionHasBeenSet() const { return m_startingPositionHasBeenSet; }
104 inline void SetStartingPosition(StartingPosition value) { m_startingPositionHasBeenSet = true; m_startingPosition = value; }
107
109
115 inline long long GetMaxFetchTimeInMs() const { return m_maxFetchTimeInMs; }
116 inline bool MaxFetchTimeInMsHasBeenSet() const { return m_maxFetchTimeInMsHasBeenSet; }
117 inline void SetMaxFetchTimeInMs(long long value) { m_maxFetchTimeInMsHasBeenSet = true; m_maxFetchTimeInMs = value; }
118 inline KinesisStreamingSourceOptions& WithMaxFetchTimeInMs(long long value) { SetMaxFetchTimeInMs(value); return *this;}
120
122
130 inline long long GetMaxFetchRecordsPerShard() const { return m_maxFetchRecordsPerShard; }
131 inline bool MaxFetchRecordsPerShardHasBeenSet() const { return m_maxFetchRecordsPerShardHasBeenSet; }
132 inline void SetMaxFetchRecordsPerShard(long long value) { m_maxFetchRecordsPerShardHasBeenSet = true; m_maxFetchRecordsPerShard = value; }
135
137
141 inline long long GetMaxRecordPerRead() const { return m_maxRecordPerRead; }
142 inline bool MaxRecordPerReadHasBeenSet() const { return m_maxRecordPerReadHasBeenSet; }
143 inline void SetMaxRecordPerRead(long long value) { m_maxRecordPerReadHasBeenSet = true; m_maxRecordPerRead = value; }
144 inline KinesisStreamingSourceOptions& WithMaxRecordPerRead(long long value) { SetMaxRecordPerRead(value); return *this;}
146
148
153 inline bool GetAddIdleTimeBetweenReads() const { return m_addIdleTimeBetweenReads; }
154 inline bool AddIdleTimeBetweenReadsHasBeenSet() const { return m_addIdleTimeBetweenReadsHasBeenSet; }
155 inline void SetAddIdleTimeBetweenReads(bool value) { m_addIdleTimeBetweenReadsHasBeenSet = true; m_addIdleTimeBetweenReads = value; }
158
160
165 inline long long GetIdleTimeBetweenReadsInMs() const { return m_idleTimeBetweenReadsInMs; }
166 inline bool IdleTimeBetweenReadsInMsHasBeenSet() const { return m_idleTimeBetweenReadsInMsHasBeenSet; }
167 inline void SetIdleTimeBetweenReadsInMs(long long value) { m_idleTimeBetweenReadsInMsHasBeenSet = true; m_idleTimeBetweenReadsInMs = value; }
170
172
176 inline long long GetDescribeShardInterval() const { return m_describeShardInterval; }
177 inline bool DescribeShardIntervalHasBeenSet() const { return m_describeShardIntervalHasBeenSet; }
178 inline void SetDescribeShardInterval(long long value) { m_describeShardIntervalHasBeenSet = true; m_describeShardInterval = value; }
181
183
187 inline int GetNumRetries() const { return m_numRetries; }
188 inline bool NumRetriesHasBeenSet() const { return m_numRetriesHasBeenSet; }
189 inline void SetNumRetries(int value) { m_numRetriesHasBeenSet = true; m_numRetries = value; }
190 inline KinesisStreamingSourceOptions& WithNumRetries(int value) { SetNumRetries(value); return *this;}
192
194
198 inline long long GetRetryIntervalMs() const { return m_retryIntervalMs; }
199 inline bool RetryIntervalMsHasBeenSet() const { return m_retryIntervalMsHasBeenSet; }
200 inline void SetRetryIntervalMs(long long value) { m_retryIntervalMsHasBeenSet = true; m_retryIntervalMs = value; }
201 inline KinesisStreamingSourceOptions& WithRetryIntervalMs(long long value) { SetRetryIntervalMs(value); return *this;}
203
205
209 inline long long GetMaxRetryIntervalMs() const { return m_maxRetryIntervalMs; }
210 inline bool MaxRetryIntervalMsHasBeenSet() const { return m_maxRetryIntervalMsHasBeenSet; }
211 inline void SetMaxRetryIntervalMs(long long value) { m_maxRetryIntervalMsHasBeenSet = true; m_maxRetryIntervalMs = value; }
212 inline KinesisStreamingSourceOptions& WithMaxRetryIntervalMs(long long value) { SetMaxRetryIntervalMs(value); return *this;}
214
216
221 inline bool GetAvoidEmptyBatches() const { return m_avoidEmptyBatches; }
222 inline bool AvoidEmptyBatchesHasBeenSet() const { return m_avoidEmptyBatchesHasBeenSet; }
223 inline void SetAvoidEmptyBatches(bool value) { m_avoidEmptyBatchesHasBeenSet = true; m_avoidEmptyBatches = value; }
226
228
231 inline const Aws::String& GetStreamArn() const { return m_streamArn; }
232 inline bool StreamArnHasBeenSet() const { return m_streamArnHasBeenSet; }
233 template<typename StreamArnT = Aws::String>
234 void SetStreamArn(StreamArnT&& value) { m_streamArnHasBeenSet = true; m_streamArn = std::forward<StreamArnT>(value); }
235 template<typename StreamArnT = Aws::String>
236 KinesisStreamingSourceOptions& WithStreamArn(StreamArnT&& value) { SetStreamArn(std::forward<StreamArnT>(value)); return *this;}
238
240
247 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
248 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
249 template<typename RoleArnT = Aws::String>
250 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
251 template<typename RoleArnT = Aws::String>
252 KinesisStreamingSourceOptions& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
254
256
261 inline const Aws::String& GetRoleSessionName() const { return m_roleSessionName; }
262 inline bool RoleSessionNameHasBeenSet() const { return m_roleSessionNameHasBeenSet; }
263 template<typename RoleSessionNameT = Aws::String>
264 void SetRoleSessionName(RoleSessionNameT&& value) { m_roleSessionNameHasBeenSet = true; m_roleSessionName = std::forward<RoleSessionNameT>(value); }
265 template<typename RoleSessionNameT = Aws::String>
266 KinesisStreamingSourceOptions& WithRoleSessionName(RoleSessionNameT&& value) { SetRoleSessionName(std::forward<RoleSessionNameT>(value)); return *this;}
268
270
276 inline const Aws::String& GetAddRecordTimestamp() const { return m_addRecordTimestamp; }
277 inline bool AddRecordTimestampHasBeenSet() const { return m_addRecordTimestampHasBeenSet; }
278 template<typename AddRecordTimestampT = Aws::String>
279 void SetAddRecordTimestamp(AddRecordTimestampT&& value) { m_addRecordTimestampHasBeenSet = true; m_addRecordTimestamp = std::forward<AddRecordTimestampT>(value); }
280 template<typename AddRecordTimestampT = Aws::String>
281 KinesisStreamingSourceOptions& WithAddRecordTimestamp(AddRecordTimestampT&& value) { SetAddRecordTimestamp(std::forward<AddRecordTimestampT>(value)); return *this;}
283
285
292 inline const Aws::String& GetEmitConsumerLagMetrics() const { return m_emitConsumerLagMetrics; }
293 inline bool EmitConsumerLagMetricsHasBeenSet() const { return m_emitConsumerLagMetricsHasBeenSet; }
294 template<typename EmitConsumerLagMetricsT = Aws::String>
295 void SetEmitConsumerLagMetrics(EmitConsumerLagMetricsT&& value) { m_emitConsumerLagMetricsHasBeenSet = true; m_emitConsumerLagMetrics = std::forward<EmitConsumerLagMetricsT>(value); }
296 template<typename EmitConsumerLagMetricsT = Aws::String>
297 KinesisStreamingSourceOptions& WithEmitConsumerLagMetrics(EmitConsumerLagMetricsT&& value) { SetEmitConsumerLagMetrics(std::forward<EmitConsumerLagMetricsT>(value)); return *this;}
299
301
307 inline const Aws::Utils::DateTime& GetStartingTimestamp() const { return m_startingTimestamp; }
308 inline bool StartingTimestampHasBeenSet() const { return m_startingTimestampHasBeenSet; }
309 template<typename StartingTimestampT = Aws::Utils::DateTime>
310 void SetStartingTimestamp(StartingTimestampT&& value) { m_startingTimestampHasBeenSet = true; m_startingTimestamp = std::forward<StartingTimestampT>(value); }
311 template<typename StartingTimestampT = Aws::Utils::DateTime>
312 KinesisStreamingSourceOptions& WithStartingTimestamp(StartingTimestampT&& value) { SetStartingTimestamp(std::forward<StartingTimestampT>(value)); return *this;}
314 private:
315
316 Aws::String m_endpointUrl;
317 bool m_endpointUrlHasBeenSet = false;
318
319 Aws::String m_streamName;
320 bool m_streamNameHasBeenSet = false;
321
322 Aws::String m_classification;
323 bool m_classificationHasBeenSet = false;
324
325 Aws::String m_delimiter;
326 bool m_delimiterHasBeenSet = false;
327
329 bool m_startingPositionHasBeenSet = false;
330
331 long long m_maxFetchTimeInMs{0};
332 bool m_maxFetchTimeInMsHasBeenSet = false;
333
334 long long m_maxFetchRecordsPerShard{0};
335 bool m_maxFetchRecordsPerShardHasBeenSet = false;
336
337 long long m_maxRecordPerRead{0};
338 bool m_maxRecordPerReadHasBeenSet = false;
339
340 bool m_addIdleTimeBetweenReads{false};
341 bool m_addIdleTimeBetweenReadsHasBeenSet = false;
342
343 long long m_idleTimeBetweenReadsInMs{0};
344 bool m_idleTimeBetweenReadsInMsHasBeenSet = false;
345
346 long long m_describeShardInterval{0};
347 bool m_describeShardIntervalHasBeenSet = false;
348
349 int m_numRetries{0};
350 bool m_numRetriesHasBeenSet = false;
351
352 long long m_retryIntervalMs{0};
353 bool m_retryIntervalMsHasBeenSet = false;
354
355 long long m_maxRetryIntervalMs{0};
356 bool m_maxRetryIntervalMsHasBeenSet = false;
357
358 bool m_avoidEmptyBatches{false};
359 bool m_avoidEmptyBatchesHasBeenSet = false;
360
361 Aws::String m_streamArn;
362 bool m_streamArnHasBeenSet = false;
363
364 Aws::String m_roleArn;
365 bool m_roleArnHasBeenSet = false;
366
367 Aws::String m_roleSessionName;
368 bool m_roleSessionNameHasBeenSet = false;
369
370 Aws::String m_addRecordTimestamp;
371 bool m_addRecordTimestampHasBeenSet = false;
372
373 Aws::String m_emitConsumerLagMetrics;
374 bool m_emitConsumerLagMetricsHasBeenSet = false;
375
376 Aws::Utils::DateTime m_startingTimestamp{};
377 bool m_startingTimestampHasBeenSet = false;
378 };
379
380} // namespace Model
381} // namespace Glue
382} // namespace Aws
KinesisStreamingSourceOptions & WithRoleSessionName(RoleSessionNameT &&value)
AWS_GLUE_API KinesisStreamingSourceOptions(Aws::Utils::Json::JsonView jsonValue)
KinesisStreamingSourceOptions & WithNumRetries(int value)
KinesisStreamingSourceOptions & WithRoleArn(RoleArnT &&value)
KinesisStreamingSourceOptions & WithRetryIntervalMs(long long value)
KinesisStreamingSourceOptions & WithAvoidEmptyBatches(bool value)
KinesisStreamingSourceOptions & WithMaxRecordPerRead(long long value)
KinesisStreamingSourceOptions & WithDelimiter(DelimiterT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
KinesisStreamingSourceOptions & WithStartingTimestamp(StartingTimestampT &&value)
KinesisStreamingSourceOptions & WithAddIdleTimeBetweenReads(bool value)
KinesisStreamingSourceOptions & WithMaxFetchTimeInMs(long long value)
KinesisStreamingSourceOptions & WithStreamArn(StreamArnT &&value)
KinesisStreamingSourceOptions & WithStreamName(StreamNameT &&value)
KinesisStreamingSourceOptions & WithDescribeShardInterval(long long value)
AWS_GLUE_API KinesisStreamingSourceOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
KinesisStreamingSourceOptions & WithEndpointUrl(EndpointUrlT &&value)
KinesisStreamingSourceOptions & WithAddRecordTimestamp(AddRecordTimestampT &&value)
KinesisStreamingSourceOptions & WithStartingPosition(StartingPosition value)
AWS_GLUE_API KinesisStreamingSourceOptions()=default
KinesisStreamingSourceOptions & WithMaxFetchRecordsPerShard(long long value)
KinesisStreamingSourceOptions & WithClassification(ClassificationT &&value)
void SetEmitConsumerLagMetrics(EmitConsumerLagMetricsT &&value)
KinesisStreamingSourceOptions & WithEmitConsumerLagMetrics(EmitConsumerLagMetricsT &&value)
KinesisStreamingSourceOptions & WithIdleTimeBetweenReadsInMs(long long value)
KinesisStreamingSourceOptions & WithMaxRetryIntervalMs(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue