AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
41
42
44
47 inline const Aws::String& GetEndpointUrl() const{ return m_endpointUrl; }
48 inline bool EndpointUrlHasBeenSet() const { return m_endpointUrlHasBeenSet; }
49 inline void SetEndpointUrl(const Aws::String& value) { m_endpointUrlHasBeenSet = true; m_endpointUrl = value; }
50 inline void SetEndpointUrl(Aws::String&& value) { m_endpointUrlHasBeenSet = true; m_endpointUrl = std::move(value); }
51 inline void SetEndpointUrl(const char* value) { m_endpointUrlHasBeenSet = true; m_endpointUrl.assign(value); }
52 inline KinesisStreamingSourceOptions& WithEndpointUrl(const Aws::String& value) { SetEndpointUrl(value); return *this;}
53 inline KinesisStreamingSourceOptions& WithEndpointUrl(Aws::String&& value) { SetEndpointUrl(std::move(value)); return *this;}
54 inline KinesisStreamingSourceOptions& WithEndpointUrl(const char* value) { SetEndpointUrl(value); return *this;}
56
58
61 inline const Aws::String& GetStreamName() const{ return m_streamName; }
62 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
63 inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
64 inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
65 inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
66 inline KinesisStreamingSourceOptions& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
67 inline KinesisStreamingSourceOptions& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
68 inline KinesisStreamingSourceOptions& WithStreamName(const char* value) { SetStreamName(value); return *this;}
70
72
75 inline const Aws::String& GetClassification() const{ return m_classification; }
76 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
77 inline void SetClassification(const Aws::String& value) { m_classificationHasBeenSet = true; m_classification = value; }
78 inline void SetClassification(Aws::String&& value) { m_classificationHasBeenSet = true; m_classification = std::move(value); }
79 inline void SetClassification(const char* value) { m_classificationHasBeenSet = true; m_classification.assign(value); }
81 inline KinesisStreamingSourceOptions& WithClassification(Aws::String&& value) { SetClassification(std::move(value)); return *this;}
82 inline KinesisStreamingSourceOptions& WithClassification(const char* value) { SetClassification(value); return *this;}
84
86
89 inline const Aws::String& GetDelimiter() const{ return m_delimiter; }
90 inline bool DelimiterHasBeenSet() const { return m_delimiterHasBeenSet; }
91 inline void SetDelimiter(const Aws::String& value) { m_delimiterHasBeenSet = true; m_delimiter = value; }
92 inline void SetDelimiter(Aws::String&& value) { m_delimiterHasBeenSet = true; m_delimiter = std::move(value); }
93 inline void SetDelimiter(const char* value) { m_delimiterHasBeenSet = true; m_delimiter.assign(value); }
94 inline KinesisStreamingSourceOptions& WithDelimiter(const Aws::String& value) { SetDelimiter(value); return *this;}
95 inline KinesisStreamingSourceOptions& WithDelimiter(Aws::String&& value) { SetDelimiter(std::move(value)); return *this;}
96 inline KinesisStreamingSourceOptions& WithDelimiter(const char* value) { SetDelimiter(value); return *this;}
98
100
110 inline const StartingPosition& GetStartingPosition() const{ return m_startingPosition; }
111 inline bool StartingPositionHasBeenSet() const { return m_startingPositionHasBeenSet; }
112 inline void SetStartingPosition(const StartingPosition& value) { m_startingPositionHasBeenSet = true; m_startingPosition = value; }
113 inline void SetStartingPosition(StartingPosition&& value) { m_startingPositionHasBeenSet = true; m_startingPosition = std::move(value); }
117
119
125 inline long long GetMaxFetchTimeInMs() const{ return m_maxFetchTimeInMs; }
126 inline bool MaxFetchTimeInMsHasBeenSet() const { return m_maxFetchTimeInMsHasBeenSet; }
127 inline void SetMaxFetchTimeInMs(long long value) { m_maxFetchTimeInMsHasBeenSet = true; m_maxFetchTimeInMs = value; }
128 inline KinesisStreamingSourceOptions& WithMaxFetchTimeInMs(long long value) { SetMaxFetchTimeInMs(value); return *this;}
130
132
140 inline long long GetMaxFetchRecordsPerShard() const{ return m_maxFetchRecordsPerShard; }
141 inline bool MaxFetchRecordsPerShardHasBeenSet() const { return m_maxFetchRecordsPerShardHasBeenSet; }
142 inline void SetMaxFetchRecordsPerShard(long long value) { m_maxFetchRecordsPerShardHasBeenSet = true; m_maxFetchRecordsPerShard = value; }
145
147
151 inline long long GetMaxRecordPerRead() const{ return m_maxRecordPerRead; }
152 inline bool MaxRecordPerReadHasBeenSet() const { return m_maxRecordPerReadHasBeenSet; }
153 inline void SetMaxRecordPerRead(long long value) { m_maxRecordPerReadHasBeenSet = true; m_maxRecordPerRead = value; }
154 inline KinesisStreamingSourceOptions& WithMaxRecordPerRead(long long value) { SetMaxRecordPerRead(value); return *this;}
156
158
163 inline bool GetAddIdleTimeBetweenReads() const{ return m_addIdleTimeBetweenReads; }
164 inline bool AddIdleTimeBetweenReadsHasBeenSet() const { return m_addIdleTimeBetweenReadsHasBeenSet; }
165 inline void SetAddIdleTimeBetweenReads(bool value) { m_addIdleTimeBetweenReadsHasBeenSet = true; m_addIdleTimeBetweenReads = value; }
168
170
175 inline long long GetIdleTimeBetweenReadsInMs() const{ return m_idleTimeBetweenReadsInMs; }
176 inline bool IdleTimeBetweenReadsInMsHasBeenSet() const { return m_idleTimeBetweenReadsInMsHasBeenSet; }
177 inline void SetIdleTimeBetweenReadsInMs(long long value) { m_idleTimeBetweenReadsInMsHasBeenSet = true; m_idleTimeBetweenReadsInMs = value; }
180
182
186 inline long long GetDescribeShardInterval() const{ return m_describeShardInterval; }
187 inline bool DescribeShardIntervalHasBeenSet() const { return m_describeShardIntervalHasBeenSet; }
188 inline void SetDescribeShardInterval(long long value) { m_describeShardIntervalHasBeenSet = true; m_describeShardInterval = value; }
191
193
197 inline int GetNumRetries() const{ return m_numRetries; }
198 inline bool NumRetriesHasBeenSet() const { return m_numRetriesHasBeenSet; }
199 inline void SetNumRetries(int value) { m_numRetriesHasBeenSet = true; m_numRetries = value; }
200 inline KinesisStreamingSourceOptions& WithNumRetries(int value) { SetNumRetries(value); return *this;}
202
204
208 inline long long GetRetryIntervalMs() const{ return m_retryIntervalMs; }
209 inline bool RetryIntervalMsHasBeenSet() const { return m_retryIntervalMsHasBeenSet; }
210 inline void SetRetryIntervalMs(long long value) { m_retryIntervalMsHasBeenSet = true; m_retryIntervalMs = value; }
211 inline KinesisStreamingSourceOptions& WithRetryIntervalMs(long long value) { SetRetryIntervalMs(value); return *this;}
213
215
219 inline long long GetMaxRetryIntervalMs() const{ return m_maxRetryIntervalMs; }
220 inline bool MaxRetryIntervalMsHasBeenSet() const { return m_maxRetryIntervalMsHasBeenSet; }
221 inline void SetMaxRetryIntervalMs(long long value) { m_maxRetryIntervalMsHasBeenSet = true; m_maxRetryIntervalMs = value; }
222 inline KinesisStreamingSourceOptions& WithMaxRetryIntervalMs(long long value) { SetMaxRetryIntervalMs(value); return *this;}
224
226
231 inline bool GetAvoidEmptyBatches() const{ return m_avoidEmptyBatches; }
232 inline bool AvoidEmptyBatchesHasBeenSet() const { return m_avoidEmptyBatchesHasBeenSet; }
233 inline void SetAvoidEmptyBatches(bool value) { m_avoidEmptyBatchesHasBeenSet = true; m_avoidEmptyBatches = value; }
236
238
241 inline const Aws::String& GetStreamArn() const{ return m_streamArn; }
242 inline bool StreamArnHasBeenSet() const { return m_streamArnHasBeenSet; }
243 inline void SetStreamArn(const Aws::String& value) { m_streamArnHasBeenSet = true; m_streamArn = value; }
244 inline void SetStreamArn(Aws::String&& value) { m_streamArnHasBeenSet = true; m_streamArn = std::move(value); }
245 inline void SetStreamArn(const char* value) { m_streamArnHasBeenSet = true; m_streamArn.assign(value); }
246 inline KinesisStreamingSourceOptions& WithStreamArn(const Aws::String& value) { SetStreamArn(value); return *this;}
247 inline KinesisStreamingSourceOptions& WithStreamArn(Aws::String&& value) { SetStreamArn(std::move(value)); return *this;}
248 inline KinesisStreamingSourceOptions& WithStreamArn(const char* value) { SetStreamArn(value); return *this;}
250
252
259 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
260 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
261 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
262 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
263 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
264 inline KinesisStreamingSourceOptions& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
265 inline KinesisStreamingSourceOptions& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
266 inline KinesisStreamingSourceOptions& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
268
270
275 inline const Aws::String& GetRoleSessionName() const{ return m_roleSessionName; }
276 inline bool RoleSessionNameHasBeenSet() const { return m_roleSessionNameHasBeenSet; }
277 inline void SetRoleSessionName(const Aws::String& value) { m_roleSessionNameHasBeenSet = true; m_roleSessionName = value; }
278 inline void SetRoleSessionName(Aws::String&& value) { m_roleSessionNameHasBeenSet = true; m_roleSessionName = std::move(value); }
279 inline void SetRoleSessionName(const char* value) { m_roleSessionNameHasBeenSet = true; m_roleSessionName.assign(value); }
281 inline KinesisStreamingSourceOptions& WithRoleSessionName(Aws::String&& value) { SetRoleSessionName(std::move(value)); return *this;}
282 inline KinesisStreamingSourceOptions& WithRoleSessionName(const char* value) { SetRoleSessionName(value); return *this;}
284
286
292 inline const Aws::String& GetAddRecordTimestamp() const{ return m_addRecordTimestamp; }
293 inline bool AddRecordTimestampHasBeenSet() const { return m_addRecordTimestampHasBeenSet; }
294 inline void SetAddRecordTimestamp(const Aws::String& value) { m_addRecordTimestampHasBeenSet = true; m_addRecordTimestamp = value; }
295 inline void SetAddRecordTimestamp(Aws::String&& value) { m_addRecordTimestampHasBeenSet = true; m_addRecordTimestamp = std::move(value); }
296 inline void SetAddRecordTimestamp(const char* value) { m_addRecordTimestampHasBeenSet = true; m_addRecordTimestamp.assign(value); }
299 inline KinesisStreamingSourceOptions& WithAddRecordTimestamp(const char* value) { SetAddRecordTimestamp(value); return *this;}
301
303
310 inline const Aws::String& GetEmitConsumerLagMetrics() const{ return m_emitConsumerLagMetrics; }
311 inline bool EmitConsumerLagMetricsHasBeenSet() const { return m_emitConsumerLagMetricsHasBeenSet; }
312 inline void SetEmitConsumerLagMetrics(const Aws::String& value) { m_emitConsumerLagMetricsHasBeenSet = true; m_emitConsumerLagMetrics = value; }
313 inline void SetEmitConsumerLagMetrics(Aws::String&& value) { m_emitConsumerLagMetricsHasBeenSet = true; m_emitConsumerLagMetrics = std::move(value); }
314 inline void SetEmitConsumerLagMetrics(const char* value) { m_emitConsumerLagMetricsHasBeenSet = true; m_emitConsumerLagMetrics.assign(value); }
319
321
327 inline const Aws::Utils::DateTime& GetStartingTimestamp() const{ return m_startingTimestamp; }
328 inline bool StartingTimestampHasBeenSet() const { return m_startingTimestampHasBeenSet; }
329 inline void SetStartingTimestamp(const Aws::Utils::DateTime& value) { m_startingTimestampHasBeenSet = true; m_startingTimestamp = value; }
330 inline void SetStartingTimestamp(Aws::Utils::DateTime&& value) { m_startingTimestampHasBeenSet = true; m_startingTimestamp = std::move(value); }
334 private:
335
336 Aws::String m_endpointUrl;
337 bool m_endpointUrlHasBeenSet = false;
338
339 Aws::String m_streamName;
340 bool m_streamNameHasBeenSet = false;
341
342 Aws::String m_classification;
343 bool m_classificationHasBeenSet = false;
344
345 Aws::String m_delimiter;
346 bool m_delimiterHasBeenSet = false;
347
348 StartingPosition m_startingPosition;
349 bool m_startingPositionHasBeenSet = false;
350
351 long long m_maxFetchTimeInMs;
352 bool m_maxFetchTimeInMsHasBeenSet = false;
353
354 long long m_maxFetchRecordsPerShard;
355 bool m_maxFetchRecordsPerShardHasBeenSet = false;
356
357 long long m_maxRecordPerRead;
358 bool m_maxRecordPerReadHasBeenSet = false;
359
360 bool m_addIdleTimeBetweenReads;
361 bool m_addIdleTimeBetweenReadsHasBeenSet = false;
362
363 long long m_idleTimeBetweenReadsInMs;
364 bool m_idleTimeBetweenReadsInMsHasBeenSet = false;
365
366 long long m_describeShardInterval;
367 bool m_describeShardIntervalHasBeenSet = false;
368
369 int m_numRetries;
370 bool m_numRetriesHasBeenSet = false;
371
372 long long m_retryIntervalMs;
373 bool m_retryIntervalMsHasBeenSet = false;
374
375 long long m_maxRetryIntervalMs;
376 bool m_maxRetryIntervalMsHasBeenSet = false;
377
378 bool m_avoidEmptyBatches;
379 bool m_avoidEmptyBatchesHasBeenSet = false;
380
381 Aws::String m_streamArn;
382 bool m_streamArnHasBeenSet = false;
383
384 Aws::String m_roleArn;
385 bool m_roleArnHasBeenSet = false;
386
387 Aws::String m_roleSessionName;
388 bool m_roleSessionNameHasBeenSet = false;
389
390 Aws::String m_addRecordTimestamp;
391 bool m_addRecordTimestampHasBeenSet = false;
392
393 Aws::String m_emitConsumerLagMetrics;
394 bool m_emitConsumerLagMetricsHasBeenSet = false;
395
396 Aws::Utils::DateTime m_startingTimestamp;
397 bool m_startingTimestampHasBeenSet = false;
398 };
399
400} // namespace Model
401} // namespace Glue
402} // namespace Aws
void SetStartingTimestamp(const Aws::Utils::DateTime &value)
KinesisStreamingSourceOptions & WithStreamArn(const Aws::String &value)
KinesisStreamingSourceOptions & WithRoleSessionName(const Aws::String &value)
KinesisStreamingSourceOptions & WithStreamArn(const char *value)
AWS_GLUE_API KinesisStreamingSourceOptions(Aws::Utils::Json::JsonView jsonValue)
KinesisStreamingSourceOptions & WithStartingPosition(const StartingPosition &value)
KinesisStreamingSourceOptions & WithNumRetries(int value)
KinesisStreamingSourceOptions & WithRetryIntervalMs(long long value)
KinesisStreamingSourceOptions & WithStreamName(const Aws::String &value)
KinesisStreamingSourceOptions & WithStartingTimestamp(const Aws::Utils::DateTime &value)
KinesisStreamingSourceOptions & WithRoleArn(const char *value)
KinesisStreamingSourceOptions & WithEmitConsumerLagMetrics(Aws::String &&value)
KinesisStreamingSourceOptions & WithClassification(Aws::String &&value)
KinesisStreamingSourceOptions & WithEmitConsumerLagMetrics(const char *value)
KinesisStreamingSourceOptions & WithStartingTimestamp(Aws::Utils::DateTime &&value)
KinesisStreamingSourceOptions & WithAddRecordTimestamp(const char *value)
KinesisStreamingSourceOptions & WithAvoidEmptyBatches(bool value)
KinesisStreamingSourceOptions & WithMaxRecordPerRead(long long value)
KinesisStreamingSourceOptions & WithDelimiter(const char *value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
KinesisStreamingSourceOptions & WithAddIdleTimeBetweenReads(bool value)
KinesisStreamingSourceOptions & WithStartingPosition(StartingPosition &&value)
KinesisStreamingSourceOptions & WithMaxFetchTimeInMs(long long value)
KinesisStreamingSourceOptions & WithRoleArn(Aws::String &&value)
KinesisStreamingSourceOptions & WithEmitConsumerLagMetrics(const Aws::String &value)
KinesisStreamingSourceOptions & WithRoleArn(const Aws::String &value)
KinesisStreamingSourceOptions & WithDescribeShardInterval(long long value)
AWS_GLUE_API KinesisStreamingSourceOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
KinesisStreamingSourceOptions & WithEndpointUrl(const char *value)
KinesisStreamingSourceOptions & WithAddRecordTimestamp(Aws::String &&value)
KinesisStreamingSourceOptions & WithClassification(const char *value)
KinesisStreamingSourceOptions & WithStreamName(const char *value)
KinesisStreamingSourceOptions & WithRoleSessionName(const char *value)
KinesisStreamingSourceOptions & WithMaxFetchRecordsPerShard(long long value)
KinesisStreamingSourceOptions & WithEndpointUrl(const Aws::String &value)
KinesisStreamingSourceOptions & WithStreamArn(Aws::String &&value)
KinesisStreamingSourceOptions & WithDelimiter(const Aws::String &value)
KinesisStreamingSourceOptions & WithEndpointUrl(Aws::String &&value)
KinesisStreamingSourceOptions & WithIdleTimeBetweenReadsInMs(long long value)
KinesisStreamingSourceOptions & WithStreamName(Aws::String &&value)
KinesisStreamingSourceOptions & WithClassification(const Aws::String &value)
KinesisStreamingSourceOptions & WithAddRecordTimestamp(const Aws::String &value)
KinesisStreamingSourceOptions & WithRoleSessionName(Aws::String &&value)
KinesisStreamingSourceOptions & WithDelimiter(Aws::String &&value)
KinesisStreamingSourceOptions & WithMaxRetryIntervalMs(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue