AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
KinesisStreamingSourceOptions.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/StartingPosition.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
31 public:
32 AWS_GLUE_API KinesisStreamingSourceOptions() = default;
36
38
41 inline const Aws::String& GetEndpointUrl() const { return m_endpointUrl; }
42 inline bool EndpointUrlHasBeenSet() const { return m_endpointUrlHasBeenSet; }
43 template <typename EndpointUrlT = Aws::String>
44 void SetEndpointUrl(EndpointUrlT&& value) {
45 m_endpointUrlHasBeenSet = true;
46 m_endpointUrl = std::forward<EndpointUrlT>(value);
47 }
48 template <typename EndpointUrlT = Aws::String>
50 SetEndpointUrl(std::forward<EndpointUrlT>(value));
51 return *this;
52 }
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) {
63 m_streamNameHasBeenSet = true;
64 m_streamName = std::forward<StreamNameT>(value);
65 }
66 template <typename StreamNameT = Aws::String>
68 SetStreamName(std::forward<StreamNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetClassification() const { return m_classification; }
78 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
79 template <typename ClassificationT = Aws::String>
80 void SetClassification(ClassificationT&& value) {
81 m_classificationHasBeenSet = true;
82 m_classification = std::forward<ClassificationT>(value);
83 }
84 template <typename ClassificationT = Aws::String>
86 SetClassification(std::forward<ClassificationT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDelimiter() const { return m_delimiter; }
96 inline bool DelimiterHasBeenSet() const { return m_delimiterHasBeenSet; }
97 template <typename DelimiterT = Aws::String>
98 void SetDelimiter(DelimiterT&& value) {
99 m_delimiterHasBeenSet = true;
100 m_delimiter = std::forward<DelimiterT>(value);
101 }
102 template <typename DelimiterT = Aws::String>
104 SetDelimiter(std::forward<DelimiterT>(value));
105 return *this;
106 }
108
110
120 inline StartingPosition GetStartingPosition() const { return m_startingPosition; }
121 inline bool StartingPositionHasBeenSet() const { return m_startingPositionHasBeenSet; }
123 m_startingPositionHasBeenSet = true;
124 m_startingPosition = value;
125 }
127 SetStartingPosition(value);
128 return *this;
129 }
131
133
139 inline long long GetMaxFetchTimeInMs() const { return m_maxFetchTimeInMs; }
140 inline bool MaxFetchTimeInMsHasBeenSet() const { return m_maxFetchTimeInMsHasBeenSet; }
141 inline void SetMaxFetchTimeInMs(long long value) {
142 m_maxFetchTimeInMsHasBeenSet = true;
143 m_maxFetchTimeInMs = value;
144 }
146 SetMaxFetchTimeInMs(value);
147 return *this;
148 }
150
152
160 inline long long GetMaxFetchRecordsPerShard() const { return m_maxFetchRecordsPerShard; }
161 inline bool MaxFetchRecordsPerShardHasBeenSet() const { return m_maxFetchRecordsPerShardHasBeenSet; }
162 inline void SetMaxFetchRecordsPerShard(long long value) {
163 m_maxFetchRecordsPerShardHasBeenSet = true;
164 m_maxFetchRecordsPerShard = value;
165 }
168 return *this;
169 }
171
173
177 inline long long GetMaxRecordPerRead() const { return m_maxRecordPerRead; }
178 inline bool MaxRecordPerReadHasBeenSet() const { return m_maxRecordPerReadHasBeenSet; }
179 inline void SetMaxRecordPerRead(long long value) {
180 m_maxRecordPerReadHasBeenSet = true;
181 m_maxRecordPerRead = value;
182 }
184 SetMaxRecordPerRead(value);
185 return *this;
186 }
188
190
195 inline bool GetAddIdleTimeBetweenReads() const { return m_addIdleTimeBetweenReads; }
196 inline bool AddIdleTimeBetweenReadsHasBeenSet() const { return m_addIdleTimeBetweenReadsHasBeenSet; }
197 inline void SetAddIdleTimeBetweenReads(bool value) {
198 m_addIdleTimeBetweenReadsHasBeenSet = true;
199 m_addIdleTimeBetweenReads = value;
200 }
203 return *this;
204 }
206
208
213 inline long long GetIdleTimeBetweenReadsInMs() const { return m_idleTimeBetweenReadsInMs; }
214 inline bool IdleTimeBetweenReadsInMsHasBeenSet() const { return m_idleTimeBetweenReadsInMsHasBeenSet; }
215 inline void SetIdleTimeBetweenReadsInMs(long long value) {
216 m_idleTimeBetweenReadsInMsHasBeenSet = true;
217 m_idleTimeBetweenReadsInMs = value;
218 }
221 return *this;
222 }
224
226
230 inline long long GetDescribeShardInterval() const { return m_describeShardInterval; }
231 inline bool DescribeShardIntervalHasBeenSet() const { return m_describeShardIntervalHasBeenSet; }
232 inline void SetDescribeShardInterval(long long value) {
233 m_describeShardIntervalHasBeenSet = true;
234 m_describeShardInterval = value;
235 }
238 return *this;
239 }
241
243
247 inline int GetNumRetries() const { return m_numRetries; }
248 inline bool NumRetriesHasBeenSet() const { return m_numRetriesHasBeenSet; }
249 inline void SetNumRetries(int value) {
250 m_numRetriesHasBeenSet = true;
251 m_numRetries = value;
252 }
254 SetNumRetries(value);
255 return *this;
256 }
258
260
264 inline long long GetRetryIntervalMs() const { return m_retryIntervalMs; }
265 inline bool RetryIntervalMsHasBeenSet() const { return m_retryIntervalMsHasBeenSet; }
266 inline void SetRetryIntervalMs(long long value) {
267 m_retryIntervalMsHasBeenSet = true;
268 m_retryIntervalMs = value;
269 }
271 SetRetryIntervalMs(value);
272 return *this;
273 }
275
277
281 inline long long GetMaxRetryIntervalMs() const { return m_maxRetryIntervalMs; }
282 inline bool MaxRetryIntervalMsHasBeenSet() const { return m_maxRetryIntervalMsHasBeenSet; }
283 inline void SetMaxRetryIntervalMs(long long value) {
284 m_maxRetryIntervalMsHasBeenSet = true;
285 m_maxRetryIntervalMs = value;
286 }
289 return *this;
290 }
292
294
299 inline bool GetAvoidEmptyBatches() const { return m_avoidEmptyBatches; }
300 inline bool AvoidEmptyBatchesHasBeenSet() const { return m_avoidEmptyBatchesHasBeenSet; }
301 inline void SetAvoidEmptyBatches(bool value) {
302 m_avoidEmptyBatchesHasBeenSet = true;
303 m_avoidEmptyBatches = value;
304 }
307 return *this;
308 }
310
312
315 inline const Aws::String& GetStreamArn() const { return m_streamArn; }
316 inline bool StreamArnHasBeenSet() const { return m_streamArnHasBeenSet; }
317 template <typename StreamArnT = Aws::String>
318 void SetStreamArn(StreamArnT&& value) {
319 m_streamArnHasBeenSet = true;
320 m_streamArn = std::forward<StreamArnT>(value);
321 }
322 template <typename StreamArnT = Aws::String>
324 SetStreamArn(std::forward<StreamArnT>(value));
325 return *this;
326 }
328
330
337 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
338 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
339 template <typename RoleArnT = Aws::String>
340 void SetRoleArn(RoleArnT&& value) {
341 m_roleArnHasBeenSet = true;
342 m_roleArn = std::forward<RoleArnT>(value);
343 }
344 template <typename RoleArnT = Aws::String>
346 SetRoleArn(std::forward<RoleArnT>(value));
347 return *this;
348 }
350
352
357 inline const Aws::String& GetRoleSessionName() const { return m_roleSessionName; }
358 inline bool RoleSessionNameHasBeenSet() const { return m_roleSessionNameHasBeenSet; }
359 template <typename RoleSessionNameT = Aws::String>
360 void SetRoleSessionName(RoleSessionNameT&& value) {
361 m_roleSessionNameHasBeenSet = true;
362 m_roleSessionName = std::forward<RoleSessionNameT>(value);
363 }
364 template <typename RoleSessionNameT = Aws::String>
366 SetRoleSessionName(std::forward<RoleSessionNameT>(value));
367 return *this;
368 }
370
372
378 inline const Aws::String& GetAddRecordTimestamp() const { return m_addRecordTimestamp; }
379 inline bool AddRecordTimestampHasBeenSet() const { return m_addRecordTimestampHasBeenSet; }
380 template <typename AddRecordTimestampT = Aws::String>
381 void SetAddRecordTimestamp(AddRecordTimestampT&& value) {
382 m_addRecordTimestampHasBeenSet = true;
383 m_addRecordTimestamp = std::forward<AddRecordTimestampT>(value);
384 }
385 template <typename AddRecordTimestampT = Aws::String>
387 SetAddRecordTimestamp(std::forward<AddRecordTimestampT>(value));
388 return *this;
389 }
391
393
400 inline const Aws::String& GetEmitConsumerLagMetrics() const { return m_emitConsumerLagMetrics; }
401 inline bool EmitConsumerLagMetricsHasBeenSet() const { return m_emitConsumerLagMetricsHasBeenSet; }
402 template <typename EmitConsumerLagMetricsT = Aws::String>
403 void SetEmitConsumerLagMetrics(EmitConsumerLagMetricsT&& value) {
404 m_emitConsumerLagMetricsHasBeenSet = true;
405 m_emitConsumerLagMetrics = std::forward<EmitConsumerLagMetricsT>(value);
406 }
407 template <typename EmitConsumerLagMetricsT = Aws::String>
409 SetEmitConsumerLagMetrics(std::forward<EmitConsumerLagMetricsT>(value));
410 return *this;
411 }
413
415
421 inline const Aws::Utils::DateTime& GetStartingTimestamp() const { return m_startingTimestamp; }
422 inline bool StartingTimestampHasBeenSet() const { return m_startingTimestampHasBeenSet; }
423 template <typename StartingTimestampT = Aws::Utils::DateTime>
424 void SetStartingTimestamp(StartingTimestampT&& value) {
425 m_startingTimestampHasBeenSet = true;
426 m_startingTimestamp = std::forward<StartingTimestampT>(value);
427 }
428 template <typename StartingTimestampT = Aws::Utils::DateTime>
430 SetStartingTimestamp(std::forward<StartingTimestampT>(value));
431 return *this;
432 }
434
436
441 inline const Aws::String& GetFanoutConsumerARN() const { return m_fanoutConsumerARN; }
442 inline bool FanoutConsumerARNHasBeenSet() const { return m_fanoutConsumerARNHasBeenSet; }
443 template <typename FanoutConsumerARNT = Aws::String>
444 void SetFanoutConsumerARN(FanoutConsumerARNT&& value) {
445 m_fanoutConsumerARNHasBeenSet = true;
446 m_fanoutConsumerARN = std::forward<FanoutConsumerARNT>(value);
447 }
448 template <typename FanoutConsumerARNT = Aws::String>
450 SetFanoutConsumerARN(std::forward<FanoutConsumerARNT>(value));
451 return *this;
452 }
454 private:
455 Aws::String m_endpointUrl;
456
457 Aws::String m_streamName;
458
459 Aws::String m_classification;
460
461 Aws::String m_delimiter;
462
464
465 long long m_maxFetchTimeInMs{0};
466
467 long long m_maxFetchRecordsPerShard{0};
468
469 long long m_maxRecordPerRead{0};
470
471 bool m_addIdleTimeBetweenReads{false};
472
473 long long m_idleTimeBetweenReadsInMs{0};
474
475 long long m_describeShardInterval{0};
476
477 int m_numRetries{0};
478
479 long long m_retryIntervalMs{0};
480
481 long long m_maxRetryIntervalMs{0};
482
483 bool m_avoidEmptyBatches{false};
484
485 Aws::String m_streamArn;
486
487 Aws::String m_roleArn;
488
489 Aws::String m_roleSessionName;
490
491 Aws::String m_addRecordTimestamp;
492
493 Aws::String m_emitConsumerLagMetrics;
494
495 Aws::Utils::DateTime m_startingTimestamp{};
496
497 Aws::String m_fanoutConsumerARN;
498 bool m_endpointUrlHasBeenSet = false;
499 bool m_streamNameHasBeenSet = false;
500 bool m_classificationHasBeenSet = false;
501 bool m_delimiterHasBeenSet = false;
502 bool m_startingPositionHasBeenSet = false;
503 bool m_maxFetchTimeInMsHasBeenSet = false;
504 bool m_maxFetchRecordsPerShardHasBeenSet = false;
505 bool m_maxRecordPerReadHasBeenSet = false;
506 bool m_addIdleTimeBetweenReadsHasBeenSet = false;
507 bool m_idleTimeBetweenReadsInMsHasBeenSet = false;
508 bool m_describeShardIntervalHasBeenSet = false;
509 bool m_numRetriesHasBeenSet = false;
510 bool m_retryIntervalMsHasBeenSet = false;
511 bool m_maxRetryIntervalMsHasBeenSet = false;
512 bool m_avoidEmptyBatchesHasBeenSet = false;
513 bool m_streamArnHasBeenSet = false;
514 bool m_roleArnHasBeenSet = false;
515 bool m_roleSessionNameHasBeenSet = false;
516 bool m_addRecordTimestampHasBeenSet = false;
517 bool m_emitConsumerLagMetricsHasBeenSet = false;
518 bool m_startingTimestampHasBeenSet = false;
519 bool m_fanoutConsumerARNHasBeenSet = false;
520};
521
522} // namespace Model
523} // namespace Glue
524} // 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 & WithFanoutConsumerARN(FanoutConsumerARNT &&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