AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
KafkaStreamingSourceOptions.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
29 public:
30 AWS_GLUE_API KafkaStreamingSourceOptions() = default;
34
36
42 inline const Aws::String& GetBootstrapServers() const { return m_bootstrapServers; }
43 inline bool BootstrapServersHasBeenSet() const { return m_bootstrapServersHasBeenSet; }
44 template <typename BootstrapServersT = Aws::String>
45 void SetBootstrapServers(BootstrapServersT&& value) {
46 m_bootstrapServersHasBeenSet = true;
47 m_bootstrapServers = std::forward<BootstrapServersT>(value);
48 }
49 template <typename BootstrapServersT = Aws::String>
51 SetBootstrapServers(std::forward<BootstrapServersT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetSecurityProtocol() const { return m_securityProtocol; }
62 inline bool SecurityProtocolHasBeenSet() const { return m_securityProtocolHasBeenSet; }
63 template <typename SecurityProtocolT = Aws::String>
64 void SetSecurityProtocol(SecurityProtocolT&& value) {
65 m_securityProtocolHasBeenSet = true;
66 m_securityProtocol = std::forward<SecurityProtocolT>(value);
67 }
68 template <typename SecurityProtocolT = Aws::String>
70 SetSecurityProtocol(std::forward<SecurityProtocolT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
80 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
81 template <typename ConnectionNameT = Aws::String>
82 void SetConnectionName(ConnectionNameT&& value) {
83 m_connectionNameHasBeenSet = true;
84 m_connectionName = std::forward<ConnectionNameT>(value);
85 }
86 template <typename ConnectionNameT = Aws::String>
88 SetConnectionName(std::forward<ConnectionNameT>(value));
89 return *this;
90 }
92
94
99 inline const Aws::String& GetTopicName() const { return m_topicName; }
100 inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; }
101 template <typename TopicNameT = Aws::String>
102 void SetTopicName(TopicNameT&& value) {
103 m_topicNameHasBeenSet = true;
104 m_topicName = std::forward<TopicNameT>(value);
105 }
106 template <typename TopicNameT = Aws::String>
108 SetTopicName(std::forward<TopicNameT>(value));
109 return *this;
110 }
112
114
119 inline const Aws::String& GetAssign() const { return m_assign; }
120 inline bool AssignHasBeenSet() const { return m_assignHasBeenSet; }
121 template <typename AssignT = Aws::String>
122 void SetAssign(AssignT&& value) {
123 m_assignHasBeenSet = true;
124 m_assign = std::forward<AssignT>(value);
125 }
126 template <typename AssignT = Aws::String>
128 SetAssign(std::forward<AssignT>(value));
129 return *this;
130 }
132
134
139 inline const Aws::String& GetSubscribePattern() const { return m_subscribePattern; }
140 inline bool SubscribePatternHasBeenSet() const { return m_subscribePatternHasBeenSet; }
141 template <typename SubscribePatternT = Aws::String>
142 void SetSubscribePattern(SubscribePatternT&& value) {
143 m_subscribePatternHasBeenSet = true;
144 m_subscribePattern = std::forward<SubscribePatternT>(value);
145 }
146 template <typename SubscribePatternT = Aws::String>
148 SetSubscribePattern(std::forward<SubscribePatternT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetClassification() const { return m_classification; }
158 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
159 template <typename ClassificationT = Aws::String>
160 void SetClassification(ClassificationT&& value) {
161 m_classificationHasBeenSet = true;
162 m_classification = std::forward<ClassificationT>(value);
163 }
164 template <typename ClassificationT = Aws::String>
166 SetClassification(std::forward<ClassificationT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetDelimiter() const { return m_delimiter; }
176 inline bool DelimiterHasBeenSet() const { return m_delimiterHasBeenSet; }
177 template <typename DelimiterT = Aws::String>
178 void SetDelimiter(DelimiterT&& value) {
179 m_delimiterHasBeenSet = true;
180 m_delimiter = std::forward<DelimiterT>(value);
181 }
182 template <typename DelimiterT = Aws::String>
184 SetDelimiter(std::forward<DelimiterT>(value));
185 return *this;
186 }
188
190
195 inline const Aws::String& GetStartingOffsets() const { return m_startingOffsets; }
196 inline bool StartingOffsetsHasBeenSet() const { return m_startingOffsetsHasBeenSet; }
197 template <typename StartingOffsetsT = Aws::String>
198 void SetStartingOffsets(StartingOffsetsT&& value) {
199 m_startingOffsetsHasBeenSet = true;
200 m_startingOffsets = std::forward<StartingOffsetsT>(value);
201 }
202 template <typename StartingOffsetsT = Aws::String>
204 SetStartingOffsets(std::forward<StartingOffsetsT>(value));
205 return *this;
206 }
208
210
215 inline const Aws::String& GetEndingOffsets() const { return m_endingOffsets; }
216 inline bool EndingOffsetsHasBeenSet() const { return m_endingOffsetsHasBeenSet; }
217 template <typename EndingOffsetsT = Aws::String>
218 void SetEndingOffsets(EndingOffsetsT&& value) {
219 m_endingOffsetsHasBeenSet = true;
220 m_endingOffsets = std::forward<EndingOffsetsT>(value);
221 }
222 template <typename EndingOffsetsT = Aws::String>
224 SetEndingOffsets(std::forward<EndingOffsetsT>(value));
225 return *this;
226 }
228
230
234 inline long long GetPollTimeoutMs() const { return m_pollTimeoutMs; }
235 inline bool PollTimeoutMsHasBeenSet() const { return m_pollTimeoutMsHasBeenSet; }
236 inline void SetPollTimeoutMs(long long value) {
237 m_pollTimeoutMsHasBeenSet = true;
238 m_pollTimeoutMs = value;
239 }
241 SetPollTimeoutMs(value);
242 return *this;
243 }
245
247
251 inline int GetNumRetries() const { return m_numRetries; }
252 inline bool NumRetriesHasBeenSet() const { return m_numRetriesHasBeenSet; }
253 inline void SetNumRetries(int value) {
254 m_numRetriesHasBeenSet = true;
255 m_numRetries = value;
256 }
258 SetNumRetries(value);
259 return *this;
260 }
262
264
268 inline long long GetRetryIntervalMs() const { return m_retryIntervalMs; }
269 inline bool RetryIntervalMsHasBeenSet() const { return m_retryIntervalMsHasBeenSet; }
270 inline void SetRetryIntervalMs(long long value) {
271 m_retryIntervalMsHasBeenSet = true;
272 m_retryIntervalMs = value;
273 }
275 SetRetryIntervalMs(value);
276 return *this;
277 }
279
281
288 inline long long GetMaxOffsetsPerTrigger() const { return m_maxOffsetsPerTrigger; }
289 inline bool MaxOffsetsPerTriggerHasBeenSet() const { return m_maxOffsetsPerTriggerHasBeenSet; }
290 inline void SetMaxOffsetsPerTrigger(long long value) {
291 m_maxOffsetsPerTriggerHasBeenSet = true;
292 m_maxOffsetsPerTrigger = value;
293 }
296 return *this;
297 }
299
301
306 inline int GetMinPartitions() const { return m_minPartitions; }
307 inline bool MinPartitionsHasBeenSet() const { return m_minPartitionsHasBeenSet; }
308 inline void SetMinPartitions(int value) {
309 m_minPartitionsHasBeenSet = true;
310 m_minPartitions = value;
311 }
313 SetMinPartitions(value);
314 return *this;
315 }
317
319
326 inline bool GetIncludeHeaders() const { return m_includeHeaders; }
327 inline bool IncludeHeadersHasBeenSet() const { return m_includeHeadersHasBeenSet; }
328 inline void SetIncludeHeaders(bool value) {
329 m_includeHeadersHasBeenSet = true;
330 m_includeHeaders = value;
331 }
333 SetIncludeHeaders(value);
334 return *this;
335 }
337
339
345 inline const Aws::String& GetAddRecordTimestamp() const { return m_addRecordTimestamp; }
346 inline bool AddRecordTimestampHasBeenSet() const { return m_addRecordTimestampHasBeenSet; }
347 template <typename AddRecordTimestampT = Aws::String>
348 void SetAddRecordTimestamp(AddRecordTimestampT&& value) {
349 m_addRecordTimestampHasBeenSet = true;
350 m_addRecordTimestamp = std::forward<AddRecordTimestampT>(value);
351 }
352 template <typename AddRecordTimestampT = Aws::String>
354 SetAddRecordTimestamp(std::forward<AddRecordTimestampT>(value));
355 return *this;
356 }
358
360
367 inline const Aws::String& GetEmitConsumerLagMetrics() const { return m_emitConsumerLagMetrics; }
368 inline bool EmitConsumerLagMetricsHasBeenSet() const { return m_emitConsumerLagMetricsHasBeenSet; }
369 template <typename EmitConsumerLagMetricsT = Aws::String>
370 void SetEmitConsumerLagMetrics(EmitConsumerLagMetricsT&& value) {
371 m_emitConsumerLagMetricsHasBeenSet = true;
372 m_emitConsumerLagMetrics = std::forward<EmitConsumerLagMetricsT>(value);
373 }
374 template <typename EmitConsumerLagMetricsT = Aws::String>
375 KafkaStreamingSourceOptions& WithEmitConsumerLagMetrics(EmitConsumerLagMetricsT&& value) {
376 SetEmitConsumerLagMetrics(std::forward<EmitConsumerLagMetricsT>(value));
377 return *this;
378 }
380
382
389 inline const Aws::Utils::DateTime& GetStartingTimestamp() const { return m_startingTimestamp; }
390 inline bool StartingTimestampHasBeenSet() const { return m_startingTimestampHasBeenSet; }
391 template <typename StartingTimestampT = Aws::Utils::DateTime>
392 void SetStartingTimestamp(StartingTimestampT&& value) {
393 m_startingTimestampHasBeenSet = true;
394 m_startingTimestamp = std::forward<StartingTimestampT>(value);
395 }
396 template <typename StartingTimestampT = Aws::Utils::DateTime>
398 SetStartingTimestamp(std::forward<StartingTimestampT>(value));
399 return *this;
400 }
402 private:
403 Aws::String m_bootstrapServers;
404
405 Aws::String m_securityProtocol;
406
407 Aws::String m_connectionName;
408
409 Aws::String m_topicName;
410
411 Aws::String m_assign;
412
413 Aws::String m_subscribePattern;
414
415 Aws::String m_classification;
416
417 Aws::String m_delimiter;
418
419 Aws::String m_startingOffsets;
420
421 Aws::String m_endingOffsets;
422
423 long long m_pollTimeoutMs{0};
424
425 int m_numRetries{0};
426
427 long long m_retryIntervalMs{0};
428
429 long long m_maxOffsetsPerTrigger{0};
430
431 int m_minPartitions{0};
432
433 bool m_includeHeaders{false};
434
435 Aws::String m_addRecordTimestamp;
436
437 Aws::String m_emitConsumerLagMetrics;
438
439 Aws::Utils::DateTime m_startingTimestamp{};
440 bool m_bootstrapServersHasBeenSet = false;
441 bool m_securityProtocolHasBeenSet = false;
442 bool m_connectionNameHasBeenSet = false;
443 bool m_topicNameHasBeenSet = false;
444 bool m_assignHasBeenSet = false;
445 bool m_subscribePatternHasBeenSet = false;
446 bool m_classificationHasBeenSet = false;
447 bool m_delimiterHasBeenSet = false;
448 bool m_startingOffsetsHasBeenSet = false;
449 bool m_endingOffsetsHasBeenSet = false;
450 bool m_pollTimeoutMsHasBeenSet = false;
451 bool m_numRetriesHasBeenSet = false;
452 bool m_retryIntervalMsHasBeenSet = false;
453 bool m_maxOffsetsPerTriggerHasBeenSet = false;
454 bool m_minPartitionsHasBeenSet = false;
455 bool m_includeHeadersHasBeenSet = false;
456 bool m_addRecordTimestampHasBeenSet = false;
457 bool m_emitConsumerLagMetricsHasBeenSet = false;
458 bool m_startingTimestampHasBeenSet = false;
459};
460
461} // namespace Model
462} // namespace Glue
463} // namespace Aws
KafkaStreamingSourceOptions & WithTopicName(TopicNameT &&value)
KafkaStreamingSourceOptions & WithIncludeHeaders(bool value)
const Aws::Utils::DateTime & GetStartingTimestamp() const
KafkaStreamingSourceOptions & WithMaxOffsetsPerTrigger(long long value)
AWS_GLUE_API KafkaStreamingSourceOptions()=default
KafkaStreamingSourceOptions & WithSubscribePattern(SubscribePatternT &&value)
KafkaStreamingSourceOptions & WithAssign(AssignT &&value)
KafkaStreamingSourceOptions & WithStartingTimestamp(StartingTimestampT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
KafkaStreamingSourceOptions & WithConnectionName(ConnectionNameT &&value)
AWS_GLUE_API KafkaStreamingSourceOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
KafkaStreamingSourceOptions & WithSecurityProtocol(SecurityProtocolT &&value)
KafkaStreamingSourceOptions & WithDelimiter(DelimiterT &&value)
KafkaStreamingSourceOptions & WithStartingOffsets(StartingOffsetsT &&value)
AWS_GLUE_API KafkaStreamingSourceOptions(Aws::Utils::Json::JsonView jsonValue)
KafkaStreamingSourceOptions & WithRetryIntervalMs(long long value)
void SetEmitConsumerLagMetrics(EmitConsumerLagMetricsT &&value)
KafkaStreamingSourceOptions & WithEmitConsumerLagMetrics(EmitConsumerLagMetricsT &&value)
KafkaStreamingSourceOptions & WithClassification(ClassificationT &&value)
KafkaStreamingSourceOptions & WithEndingOffsets(EndingOffsetsT &&value)
KafkaStreamingSourceOptions & WithBootstrapServers(BootstrapServersT &&value)
KafkaStreamingSourceOptions & WithPollTimeoutMs(long long value)
KafkaStreamingSourceOptions & WithMinPartitions(int value)
KafkaStreamingSourceOptions & WithAddRecordTimestamp(AddRecordTimestampT &&value)
KafkaStreamingSourceOptions & WithNumRetries(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue