AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
KafkaStreamingSourceOptions.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_GLUE_API KafkaStreamingSourceOptions() = default;
39
40
42
48 inline const Aws::String& GetBootstrapServers() const { return m_bootstrapServers; }
49 inline bool BootstrapServersHasBeenSet() const { return m_bootstrapServersHasBeenSet; }
50 template<typename BootstrapServersT = Aws::String>
51 void SetBootstrapServers(BootstrapServersT&& value) { m_bootstrapServersHasBeenSet = true; m_bootstrapServers = std::forward<BootstrapServersT>(value); }
52 template<typename BootstrapServersT = Aws::String>
53 KafkaStreamingSourceOptions& WithBootstrapServers(BootstrapServersT&& value) { SetBootstrapServers(std::forward<BootstrapServersT>(value)); return *this;}
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) { m_securityProtocolHasBeenSet = true; m_securityProtocol = std::forward<SecurityProtocolT>(value); }
65 template<typename SecurityProtocolT = Aws::String>
66 KafkaStreamingSourceOptions& WithSecurityProtocol(SecurityProtocolT&& value) { SetSecurityProtocol(std::forward<SecurityProtocolT>(value)); return *this;}
68
70
73 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
74 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
75 template<typename ConnectionNameT = Aws::String>
76 void SetConnectionName(ConnectionNameT&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::forward<ConnectionNameT>(value); }
77 template<typename ConnectionNameT = Aws::String>
78 KafkaStreamingSourceOptions& WithConnectionName(ConnectionNameT&& value) { SetConnectionName(std::forward<ConnectionNameT>(value)); return *this;}
80
82
87 inline const Aws::String& GetTopicName() const { return m_topicName; }
88 inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; }
89 template<typename TopicNameT = Aws::String>
90 void SetTopicName(TopicNameT&& value) { m_topicNameHasBeenSet = true; m_topicName = std::forward<TopicNameT>(value); }
91 template<typename TopicNameT = Aws::String>
92 KafkaStreamingSourceOptions& WithTopicName(TopicNameT&& value) { SetTopicName(std::forward<TopicNameT>(value)); return *this;}
94
96
101 inline const Aws::String& GetAssign() const { return m_assign; }
102 inline bool AssignHasBeenSet() const { return m_assignHasBeenSet; }
103 template<typename AssignT = Aws::String>
104 void SetAssign(AssignT&& value) { m_assignHasBeenSet = true; m_assign = std::forward<AssignT>(value); }
105 template<typename AssignT = Aws::String>
106 KafkaStreamingSourceOptions& WithAssign(AssignT&& value) { SetAssign(std::forward<AssignT>(value)); return *this;}
108
110
115 inline const Aws::String& GetSubscribePattern() const { return m_subscribePattern; }
116 inline bool SubscribePatternHasBeenSet() const { return m_subscribePatternHasBeenSet; }
117 template<typename SubscribePatternT = Aws::String>
118 void SetSubscribePattern(SubscribePatternT&& value) { m_subscribePatternHasBeenSet = true; m_subscribePattern = std::forward<SubscribePatternT>(value); }
119 template<typename SubscribePatternT = Aws::String>
120 KafkaStreamingSourceOptions& WithSubscribePattern(SubscribePatternT&& value) { SetSubscribePattern(std::forward<SubscribePatternT>(value)); return *this;}
122
124
127 inline const Aws::String& GetClassification() const { return m_classification; }
128 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
129 template<typename ClassificationT = Aws::String>
130 void SetClassification(ClassificationT&& value) { m_classificationHasBeenSet = true; m_classification = std::forward<ClassificationT>(value); }
131 template<typename ClassificationT = Aws::String>
132 KafkaStreamingSourceOptions& WithClassification(ClassificationT&& value) { SetClassification(std::forward<ClassificationT>(value)); return *this;}
134
136
139 inline const Aws::String& GetDelimiter() const { return m_delimiter; }
140 inline bool DelimiterHasBeenSet() const { return m_delimiterHasBeenSet; }
141 template<typename DelimiterT = Aws::String>
142 void SetDelimiter(DelimiterT&& value) { m_delimiterHasBeenSet = true; m_delimiter = std::forward<DelimiterT>(value); }
143 template<typename DelimiterT = Aws::String>
144 KafkaStreamingSourceOptions& WithDelimiter(DelimiterT&& value) { SetDelimiter(std::forward<DelimiterT>(value)); return *this;}
146
148
153 inline const Aws::String& GetStartingOffsets() const { return m_startingOffsets; }
154 inline bool StartingOffsetsHasBeenSet() const { return m_startingOffsetsHasBeenSet; }
155 template<typename StartingOffsetsT = Aws::String>
156 void SetStartingOffsets(StartingOffsetsT&& value) { m_startingOffsetsHasBeenSet = true; m_startingOffsets = std::forward<StartingOffsetsT>(value); }
157 template<typename StartingOffsetsT = Aws::String>
158 KafkaStreamingSourceOptions& WithStartingOffsets(StartingOffsetsT&& value) { SetStartingOffsets(std::forward<StartingOffsetsT>(value)); return *this;}
160
162
167 inline const Aws::String& GetEndingOffsets() const { return m_endingOffsets; }
168 inline bool EndingOffsetsHasBeenSet() const { return m_endingOffsetsHasBeenSet; }
169 template<typename EndingOffsetsT = Aws::String>
170 void SetEndingOffsets(EndingOffsetsT&& value) { m_endingOffsetsHasBeenSet = true; m_endingOffsets = std::forward<EndingOffsetsT>(value); }
171 template<typename EndingOffsetsT = Aws::String>
172 KafkaStreamingSourceOptions& WithEndingOffsets(EndingOffsetsT&& value) { SetEndingOffsets(std::forward<EndingOffsetsT>(value)); return *this;}
174
176
180 inline long long GetPollTimeoutMs() const { return m_pollTimeoutMs; }
181 inline bool PollTimeoutMsHasBeenSet() const { return m_pollTimeoutMsHasBeenSet; }
182 inline void SetPollTimeoutMs(long long value) { m_pollTimeoutMsHasBeenSet = true; m_pollTimeoutMs = value; }
183 inline KafkaStreamingSourceOptions& WithPollTimeoutMs(long long value) { SetPollTimeoutMs(value); return *this;}
185
187
191 inline int GetNumRetries() const { return m_numRetries; }
192 inline bool NumRetriesHasBeenSet() const { return m_numRetriesHasBeenSet; }
193 inline void SetNumRetries(int value) { m_numRetriesHasBeenSet = true; m_numRetries = value; }
194 inline KafkaStreamingSourceOptions& WithNumRetries(int value) { SetNumRetries(value); return *this;}
196
198
202 inline long long GetRetryIntervalMs() const { return m_retryIntervalMs; }
203 inline bool RetryIntervalMsHasBeenSet() const { return m_retryIntervalMsHasBeenSet; }
204 inline void SetRetryIntervalMs(long long value) { m_retryIntervalMsHasBeenSet = true; m_retryIntervalMs = value; }
205 inline KafkaStreamingSourceOptions& WithRetryIntervalMs(long long value) { SetRetryIntervalMs(value); return *this;}
207
209
216 inline long long GetMaxOffsetsPerTrigger() const { return m_maxOffsetsPerTrigger; }
217 inline bool MaxOffsetsPerTriggerHasBeenSet() const { return m_maxOffsetsPerTriggerHasBeenSet; }
218 inline void SetMaxOffsetsPerTrigger(long long value) { m_maxOffsetsPerTriggerHasBeenSet = true; m_maxOffsetsPerTrigger = value; }
219 inline KafkaStreamingSourceOptions& WithMaxOffsetsPerTrigger(long long value) { SetMaxOffsetsPerTrigger(value); return *this;}
221
223
228 inline int GetMinPartitions() const { return m_minPartitions; }
229 inline bool MinPartitionsHasBeenSet() const { return m_minPartitionsHasBeenSet; }
230 inline void SetMinPartitions(int value) { m_minPartitionsHasBeenSet = true; m_minPartitions = value; }
231 inline KafkaStreamingSourceOptions& WithMinPartitions(int value) { SetMinPartitions(value); return *this;}
233
235
242 inline bool GetIncludeHeaders() const { return m_includeHeaders; }
243 inline bool IncludeHeadersHasBeenSet() const { return m_includeHeadersHasBeenSet; }
244 inline void SetIncludeHeaders(bool value) { m_includeHeadersHasBeenSet = true; m_includeHeaders = value; }
245 inline KafkaStreamingSourceOptions& WithIncludeHeaders(bool value) { SetIncludeHeaders(value); return *this;}
247
249
255 inline const Aws::String& GetAddRecordTimestamp() const { return m_addRecordTimestamp; }
256 inline bool AddRecordTimestampHasBeenSet() const { return m_addRecordTimestampHasBeenSet; }
257 template<typename AddRecordTimestampT = Aws::String>
258 void SetAddRecordTimestamp(AddRecordTimestampT&& value) { m_addRecordTimestampHasBeenSet = true; m_addRecordTimestamp = std::forward<AddRecordTimestampT>(value); }
259 template<typename AddRecordTimestampT = Aws::String>
260 KafkaStreamingSourceOptions& WithAddRecordTimestamp(AddRecordTimestampT&& value) { SetAddRecordTimestamp(std::forward<AddRecordTimestampT>(value)); return *this;}
262
264
271 inline const Aws::String& GetEmitConsumerLagMetrics() const { return m_emitConsumerLagMetrics; }
272 inline bool EmitConsumerLagMetricsHasBeenSet() const { return m_emitConsumerLagMetricsHasBeenSet; }
273 template<typename EmitConsumerLagMetricsT = Aws::String>
274 void SetEmitConsumerLagMetrics(EmitConsumerLagMetricsT&& value) { m_emitConsumerLagMetricsHasBeenSet = true; m_emitConsumerLagMetrics = std::forward<EmitConsumerLagMetricsT>(value); }
275 template<typename EmitConsumerLagMetricsT = Aws::String>
276 KafkaStreamingSourceOptions& WithEmitConsumerLagMetrics(EmitConsumerLagMetricsT&& value) { SetEmitConsumerLagMetrics(std::forward<EmitConsumerLagMetricsT>(value)); return *this;}
278
280
287 inline const Aws::Utils::DateTime& GetStartingTimestamp() const { return m_startingTimestamp; }
288 inline bool StartingTimestampHasBeenSet() const { return m_startingTimestampHasBeenSet; }
289 template<typename StartingTimestampT = Aws::Utils::DateTime>
290 void SetStartingTimestamp(StartingTimestampT&& value) { m_startingTimestampHasBeenSet = true; m_startingTimestamp = std::forward<StartingTimestampT>(value); }
291 template<typename StartingTimestampT = Aws::Utils::DateTime>
292 KafkaStreamingSourceOptions& WithStartingTimestamp(StartingTimestampT&& value) { SetStartingTimestamp(std::forward<StartingTimestampT>(value)); return *this;}
294 private:
295
296 Aws::String m_bootstrapServers;
297 bool m_bootstrapServersHasBeenSet = false;
298
299 Aws::String m_securityProtocol;
300 bool m_securityProtocolHasBeenSet = false;
301
302 Aws::String m_connectionName;
303 bool m_connectionNameHasBeenSet = false;
304
305 Aws::String m_topicName;
306 bool m_topicNameHasBeenSet = false;
307
308 Aws::String m_assign;
309 bool m_assignHasBeenSet = false;
310
311 Aws::String m_subscribePattern;
312 bool m_subscribePatternHasBeenSet = false;
313
314 Aws::String m_classification;
315 bool m_classificationHasBeenSet = false;
316
317 Aws::String m_delimiter;
318 bool m_delimiterHasBeenSet = false;
319
320 Aws::String m_startingOffsets;
321 bool m_startingOffsetsHasBeenSet = false;
322
323 Aws::String m_endingOffsets;
324 bool m_endingOffsetsHasBeenSet = false;
325
326 long long m_pollTimeoutMs{0};
327 bool m_pollTimeoutMsHasBeenSet = false;
328
329 int m_numRetries{0};
330 bool m_numRetriesHasBeenSet = false;
331
332 long long m_retryIntervalMs{0};
333 bool m_retryIntervalMsHasBeenSet = false;
334
335 long long m_maxOffsetsPerTrigger{0};
336 bool m_maxOffsetsPerTriggerHasBeenSet = false;
337
338 int m_minPartitions{0};
339 bool m_minPartitionsHasBeenSet = false;
340
341 bool m_includeHeaders{false};
342 bool m_includeHeadersHasBeenSet = false;
343
344 Aws::String m_addRecordTimestamp;
345 bool m_addRecordTimestampHasBeenSet = false;
346
347 Aws::String m_emitConsumerLagMetrics;
348 bool m_emitConsumerLagMetricsHasBeenSet = false;
349
350 Aws::Utils::DateTime m_startingTimestamp{};
351 bool m_startingTimestampHasBeenSet = false;
352 };
353
354} // namespace Model
355} // namespace Glue
356} // 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