AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
39
40
42
48 inline const Aws::String& GetBootstrapServers() const{ return m_bootstrapServers; }
49 inline bool BootstrapServersHasBeenSet() const { return m_bootstrapServersHasBeenSet; }
50 inline void SetBootstrapServers(const Aws::String& value) { m_bootstrapServersHasBeenSet = true; m_bootstrapServers = value; }
51 inline void SetBootstrapServers(Aws::String&& value) { m_bootstrapServersHasBeenSet = true; m_bootstrapServers = std::move(value); }
52 inline void SetBootstrapServers(const char* value) { m_bootstrapServersHasBeenSet = true; m_bootstrapServers.assign(value); }
54 inline KafkaStreamingSourceOptions& WithBootstrapServers(Aws::String&& value) { SetBootstrapServers(std::move(value)); return *this;}
55 inline KafkaStreamingSourceOptions& WithBootstrapServers(const char* value) { SetBootstrapServers(value); return *this;}
57
59
63 inline const Aws::String& GetSecurityProtocol() const{ return m_securityProtocol; }
64 inline bool SecurityProtocolHasBeenSet() const { return m_securityProtocolHasBeenSet; }
65 inline void SetSecurityProtocol(const Aws::String& value) { m_securityProtocolHasBeenSet = true; m_securityProtocol = value; }
66 inline void SetSecurityProtocol(Aws::String&& value) { m_securityProtocolHasBeenSet = true; m_securityProtocol = std::move(value); }
67 inline void SetSecurityProtocol(const char* value) { m_securityProtocolHasBeenSet = true; m_securityProtocol.assign(value); }
69 inline KafkaStreamingSourceOptions& WithSecurityProtocol(Aws::String&& value) { SetSecurityProtocol(std::move(value)); return *this;}
70 inline KafkaStreamingSourceOptions& WithSecurityProtocol(const char* value) { SetSecurityProtocol(value); return *this;}
72
74
77 inline const Aws::String& GetConnectionName() const{ return m_connectionName; }
78 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
79 inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; }
80 inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::move(value); }
81 inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); }
82 inline KafkaStreamingSourceOptions& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;}
83 inline KafkaStreamingSourceOptions& WithConnectionName(Aws::String&& value) { SetConnectionName(std::move(value)); return *this;}
84 inline KafkaStreamingSourceOptions& WithConnectionName(const char* value) { SetConnectionName(value); return *this;}
86
88
93 inline const Aws::String& GetTopicName() const{ return m_topicName; }
94 inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; }
95 inline void SetTopicName(const Aws::String& value) { m_topicNameHasBeenSet = true; m_topicName = value; }
96 inline void SetTopicName(Aws::String&& value) { m_topicNameHasBeenSet = true; m_topicName = std::move(value); }
97 inline void SetTopicName(const char* value) { m_topicNameHasBeenSet = true; m_topicName.assign(value); }
98 inline KafkaStreamingSourceOptions& WithTopicName(const Aws::String& value) { SetTopicName(value); return *this;}
99 inline KafkaStreamingSourceOptions& WithTopicName(Aws::String&& value) { SetTopicName(std::move(value)); return *this;}
100 inline KafkaStreamingSourceOptions& WithTopicName(const char* value) { SetTopicName(value); return *this;}
102
104
109 inline const Aws::String& GetAssign() const{ return m_assign; }
110 inline bool AssignHasBeenSet() const { return m_assignHasBeenSet; }
111 inline void SetAssign(const Aws::String& value) { m_assignHasBeenSet = true; m_assign = value; }
112 inline void SetAssign(Aws::String&& value) { m_assignHasBeenSet = true; m_assign = std::move(value); }
113 inline void SetAssign(const char* value) { m_assignHasBeenSet = true; m_assign.assign(value); }
114 inline KafkaStreamingSourceOptions& WithAssign(const Aws::String& value) { SetAssign(value); return *this;}
115 inline KafkaStreamingSourceOptions& WithAssign(Aws::String&& value) { SetAssign(std::move(value)); return *this;}
116 inline KafkaStreamingSourceOptions& WithAssign(const char* value) { SetAssign(value); return *this;}
118
120
125 inline const Aws::String& GetSubscribePattern() const{ return m_subscribePattern; }
126 inline bool SubscribePatternHasBeenSet() const { return m_subscribePatternHasBeenSet; }
127 inline void SetSubscribePattern(const Aws::String& value) { m_subscribePatternHasBeenSet = true; m_subscribePattern = value; }
128 inline void SetSubscribePattern(Aws::String&& value) { m_subscribePatternHasBeenSet = true; m_subscribePattern = std::move(value); }
129 inline void SetSubscribePattern(const char* value) { m_subscribePatternHasBeenSet = true; m_subscribePattern.assign(value); }
131 inline KafkaStreamingSourceOptions& WithSubscribePattern(Aws::String&& value) { SetSubscribePattern(std::move(value)); return *this;}
132 inline KafkaStreamingSourceOptions& WithSubscribePattern(const char* value) { SetSubscribePattern(value); return *this;}
134
136
139 inline const Aws::String& GetClassification() const{ return m_classification; }
140 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
141 inline void SetClassification(const Aws::String& value) { m_classificationHasBeenSet = true; m_classification = value; }
142 inline void SetClassification(Aws::String&& value) { m_classificationHasBeenSet = true; m_classification = std::move(value); }
143 inline void SetClassification(const char* value) { m_classificationHasBeenSet = true; m_classification.assign(value); }
145 inline KafkaStreamingSourceOptions& WithClassification(Aws::String&& value) { SetClassification(std::move(value)); return *this;}
146 inline KafkaStreamingSourceOptions& WithClassification(const char* value) { SetClassification(value); return *this;}
148
150
153 inline const Aws::String& GetDelimiter() const{ return m_delimiter; }
154 inline bool DelimiterHasBeenSet() const { return m_delimiterHasBeenSet; }
155 inline void SetDelimiter(const Aws::String& value) { m_delimiterHasBeenSet = true; m_delimiter = value; }
156 inline void SetDelimiter(Aws::String&& value) { m_delimiterHasBeenSet = true; m_delimiter = std::move(value); }
157 inline void SetDelimiter(const char* value) { m_delimiterHasBeenSet = true; m_delimiter.assign(value); }
158 inline KafkaStreamingSourceOptions& WithDelimiter(const Aws::String& value) { SetDelimiter(value); return *this;}
159 inline KafkaStreamingSourceOptions& WithDelimiter(Aws::String&& value) { SetDelimiter(std::move(value)); return *this;}
160 inline KafkaStreamingSourceOptions& WithDelimiter(const char* value) { SetDelimiter(value); return *this;}
162
164
169 inline const Aws::String& GetStartingOffsets() const{ return m_startingOffsets; }
170 inline bool StartingOffsetsHasBeenSet() const { return m_startingOffsetsHasBeenSet; }
171 inline void SetStartingOffsets(const Aws::String& value) { m_startingOffsetsHasBeenSet = true; m_startingOffsets = value; }
172 inline void SetStartingOffsets(Aws::String&& value) { m_startingOffsetsHasBeenSet = true; m_startingOffsets = std::move(value); }
173 inline void SetStartingOffsets(const char* value) { m_startingOffsetsHasBeenSet = true; m_startingOffsets.assign(value); }
175 inline KafkaStreamingSourceOptions& WithStartingOffsets(Aws::String&& value) { SetStartingOffsets(std::move(value)); return *this;}
176 inline KafkaStreamingSourceOptions& WithStartingOffsets(const char* value) { SetStartingOffsets(value); return *this;}
178
180
185 inline const Aws::String& GetEndingOffsets() const{ return m_endingOffsets; }
186 inline bool EndingOffsetsHasBeenSet() const { return m_endingOffsetsHasBeenSet; }
187 inline void SetEndingOffsets(const Aws::String& value) { m_endingOffsetsHasBeenSet = true; m_endingOffsets = value; }
188 inline void SetEndingOffsets(Aws::String&& value) { m_endingOffsetsHasBeenSet = true; m_endingOffsets = std::move(value); }
189 inline void SetEndingOffsets(const char* value) { m_endingOffsetsHasBeenSet = true; m_endingOffsets.assign(value); }
190 inline KafkaStreamingSourceOptions& WithEndingOffsets(const Aws::String& value) { SetEndingOffsets(value); return *this;}
191 inline KafkaStreamingSourceOptions& WithEndingOffsets(Aws::String&& value) { SetEndingOffsets(std::move(value)); return *this;}
192 inline KafkaStreamingSourceOptions& WithEndingOffsets(const char* value) { SetEndingOffsets(value); return *this;}
194
196
200 inline long long GetPollTimeoutMs() const{ return m_pollTimeoutMs; }
201 inline bool PollTimeoutMsHasBeenSet() const { return m_pollTimeoutMsHasBeenSet; }
202 inline void SetPollTimeoutMs(long long value) { m_pollTimeoutMsHasBeenSet = true; m_pollTimeoutMs = value; }
203 inline KafkaStreamingSourceOptions& WithPollTimeoutMs(long long value) { SetPollTimeoutMs(value); return *this;}
205
207
211 inline int GetNumRetries() const{ return m_numRetries; }
212 inline bool NumRetriesHasBeenSet() const { return m_numRetriesHasBeenSet; }
213 inline void SetNumRetries(int value) { m_numRetriesHasBeenSet = true; m_numRetries = value; }
214 inline KafkaStreamingSourceOptions& WithNumRetries(int value) { SetNumRetries(value); return *this;}
216
218
222 inline long long GetRetryIntervalMs() const{ return m_retryIntervalMs; }
223 inline bool RetryIntervalMsHasBeenSet() const { return m_retryIntervalMsHasBeenSet; }
224 inline void SetRetryIntervalMs(long long value) { m_retryIntervalMsHasBeenSet = true; m_retryIntervalMs = value; }
225 inline KafkaStreamingSourceOptions& WithRetryIntervalMs(long long value) { SetRetryIntervalMs(value); return *this;}
227
229
236 inline long long GetMaxOffsetsPerTrigger() const{ return m_maxOffsetsPerTrigger; }
237 inline bool MaxOffsetsPerTriggerHasBeenSet() const { return m_maxOffsetsPerTriggerHasBeenSet; }
238 inline void SetMaxOffsetsPerTrigger(long long value) { m_maxOffsetsPerTriggerHasBeenSet = true; m_maxOffsetsPerTrigger = value; }
239 inline KafkaStreamingSourceOptions& WithMaxOffsetsPerTrigger(long long value) { SetMaxOffsetsPerTrigger(value); return *this;}
241
243
248 inline int GetMinPartitions() const{ return m_minPartitions; }
249 inline bool MinPartitionsHasBeenSet() const { return m_minPartitionsHasBeenSet; }
250 inline void SetMinPartitions(int value) { m_minPartitionsHasBeenSet = true; m_minPartitions = value; }
251 inline KafkaStreamingSourceOptions& WithMinPartitions(int value) { SetMinPartitions(value); return *this;}
253
255
262 inline bool GetIncludeHeaders() const{ return m_includeHeaders; }
263 inline bool IncludeHeadersHasBeenSet() const { return m_includeHeadersHasBeenSet; }
264 inline void SetIncludeHeaders(bool value) { m_includeHeadersHasBeenSet = true; m_includeHeaders = value; }
265 inline KafkaStreamingSourceOptions& WithIncludeHeaders(bool value) { SetIncludeHeaders(value); return *this;}
267
269
275 inline const Aws::String& GetAddRecordTimestamp() const{ return m_addRecordTimestamp; }
276 inline bool AddRecordTimestampHasBeenSet() const { return m_addRecordTimestampHasBeenSet; }
277 inline void SetAddRecordTimestamp(const Aws::String& value) { m_addRecordTimestampHasBeenSet = true; m_addRecordTimestamp = value; }
278 inline void SetAddRecordTimestamp(Aws::String&& value) { m_addRecordTimestampHasBeenSet = true; m_addRecordTimestamp = std::move(value); }
279 inline void SetAddRecordTimestamp(const char* value) { m_addRecordTimestampHasBeenSet = true; m_addRecordTimestamp.assign(value); }
281 inline KafkaStreamingSourceOptions& WithAddRecordTimestamp(Aws::String&& value) { SetAddRecordTimestamp(std::move(value)); return *this;}
282 inline KafkaStreamingSourceOptions& WithAddRecordTimestamp(const char* value) { SetAddRecordTimestamp(value); return *this;}
284
286
293 inline const Aws::String& GetEmitConsumerLagMetrics() const{ return m_emitConsumerLagMetrics; }
294 inline bool EmitConsumerLagMetricsHasBeenSet() const { return m_emitConsumerLagMetricsHasBeenSet; }
295 inline void SetEmitConsumerLagMetrics(const Aws::String& value) { m_emitConsumerLagMetricsHasBeenSet = true; m_emitConsumerLagMetrics = value; }
296 inline void SetEmitConsumerLagMetrics(Aws::String&& value) { m_emitConsumerLagMetricsHasBeenSet = true; m_emitConsumerLagMetrics = std::move(value); }
297 inline void SetEmitConsumerLagMetrics(const char* value) { m_emitConsumerLagMetricsHasBeenSet = true; m_emitConsumerLagMetrics.assign(value); }
300 inline KafkaStreamingSourceOptions& WithEmitConsumerLagMetrics(const char* value) { SetEmitConsumerLagMetrics(value); return *this;}
302
304
311 inline const Aws::Utils::DateTime& GetStartingTimestamp() const{ return m_startingTimestamp; }
312 inline bool StartingTimestampHasBeenSet() const { return m_startingTimestampHasBeenSet; }
313 inline void SetStartingTimestamp(const Aws::Utils::DateTime& value) { m_startingTimestampHasBeenSet = true; m_startingTimestamp = value; }
314 inline void SetStartingTimestamp(Aws::Utils::DateTime&& value) { m_startingTimestampHasBeenSet = true; m_startingTimestamp = std::move(value); }
318 private:
319
320 Aws::String m_bootstrapServers;
321 bool m_bootstrapServersHasBeenSet = false;
322
323 Aws::String m_securityProtocol;
324 bool m_securityProtocolHasBeenSet = false;
325
326 Aws::String m_connectionName;
327 bool m_connectionNameHasBeenSet = false;
328
329 Aws::String m_topicName;
330 bool m_topicNameHasBeenSet = false;
331
332 Aws::String m_assign;
333 bool m_assignHasBeenSet = false;
334
335 Aws::String m_subscribePattern;
336 bool m_subscribePatternHasBeenSet = false;
337
338 Aws::String m_classification;
339 bool m_classificationHasBeenSet = false;
340
341 Aws::String m_delimiter;
342 bool m_delimiterHasBeenSet = false;
343
344 Aws::String m_startingOffsets;
345 bool m_startingOffsetsHasBeenSet = false;
346
347 Aws::String m_endingOffsets;
348 bool m_endingOffsetsHasBeenSet = false;
349
350 long long m_pollTimeoutMs;
351 bool m_pollTimeoutMsHasBeenSet = false;
352
353 int m_numRetries;
354 bool m_numRetriesHasBeenSet = false;
355
356 long long m_retryIntervalMs;
357 bool m_retryIntervalMsHasBeenSet = false;
358
359 long long m_maxOffsetsPerTrigger;
360 bool m_maxOffsetsPerTriggerHasBeenSet = false;
361
362 int m_minPartitions;
363 bool m_minPartitionsHasBeenSet = false;
364
365 bool m_includeHeaders;
366 bool m_includeHeadersHasBeenSet = false;
367
368 Aws::String m_addRecordTimestamp;
369 bool m_addRecordTimestampHasBeenSet = false;
370
371 Aws::String m_emitConsumerLagMetrics;
372 bool m_emitConsumerLagMetricsHasBeenSet = false;
373
374 Aws::Utils::DateTime m_startingTimestamp;
375 bool m_startingTimestampHasBeenSet = false;
376 };
377
378} // namespace Model
379} // namespace Glue
380} // namespace Aws
KafkaStreamingSourceOptions & WithStartingOffsets(const Aws::String &value)
KafkaStreamingSourceOptions & WithConnectionName(const Aws::String &value)
KafkaStreamingSourceOptions & WithSecurityProtocol(const Aws::String &value)
KafkaStreamingSourceOptions & WithIncludeHeaders(bool value)
const Aws::Utils::DateTime & GetStartingTimestamp() const
KafkaStreamingSourceOptions & WithMaxOffsetsPerTrigger(long long value)
KafkaStreamingSourceOptions & WithSecurityProtocol(const char *value)
KafkaStreamingSourceOptions & WithAddRecordTimestamp(const Aws::String &value)
KafkaStreamingSourceOptions & WithClassification(Aws::String &&value)
KafkaStreamingSourceOptions & WithDelimiter(Aws::String &&value)
KafkaStreamingSourceOptions & WithSecurityProtocol(Aws::String &&value)
KafkaStreamingSourceOptions & WithAssign(const char *value)
KafkaStreamingSourceOptions & WithTopicName(const Aws::String &value)
KafkaStreamingSourceOptions & WithEndingOffsets(const char *value)
KafkaStreamingSourceOptions & WithStartingTimestamp(Aws::Utils::DateTime &&value)
KafkaStreamingSourceOptions & WithEmitConsumerLagMetrics(const char *value)
KafkaStreamingSourceOptions & WithStartingOffsets(const char *value)
KafkaStreamingSourceOptions & WithBootstrapServers(Aws::String &&value)
KafkaStreamingSourceOptions & WithConnectionName(Aws::String &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API KafkaStreamingSourceOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
KafkaStreamingSourceOptions & WithStartingOffsets(Aws::String &&value)
KafkaStreamingSourceOptions & WithEmitConsumerLagMetrics(const Aws::String &value)
KafkaStreamingSourceOptions & WithBootstrapServers(const Aws::String &value)
KafkaStreamingSourceOptions & WithBootstrapServers(const char *value)
KafkaStreamingSourceOptions & WithAssign(const Aws::String &value)
KafkaStreamingSourceOptions & WithSubscribePattern(const char *value)
AWS_GLUE_API KafkaStreamingSourceOptions(Aws::Utils::Json::JsonView jsonValue)
KafkaStreamingSourceOptions & WithRetryIntervalMs(long long value)
KafkaStreamingSourceOptions & WithTopicName(Aws::String &&value)
KafkaStreamingSourceOptions & WithEndingOffsets(Aws::String &&value)
KafkaStreamingSourceOptions & WithSubscribePattern(Aws::String &&value)
KafkaStreamingSourceOptions & WithAssign(Aws::String &&value)
KafkaStreamingSourceOptions & WithStartingTimestamp(const Aws::Utils::DateTime &value)
KafkaStreamingSourceOptions & WithClassification(const Aws::String &value)
KafkaStreamingSourceOptions & WithAddRecordTimestamp(const char *value)
KafkaStreamingSourceOptions & WithClassification(const char *value)
KafkaStreamingSourceOptions & WithConnectionName(const char *value)
KafkaStreamingSourceOptions & WithEndingOffsets(const Aws::String &value)
KafkaStreamingSourceOptions & WithEmitConsumerLagMetrics(Aws::String &&value)
KafkaStreamingSourceOptions & WithDelimiter(const Aws::String &value)
void SetStartingTimestamp(const Aws::Utils::DateTime &value)
KafkaStreamingSourceOptions & WithPollTimeoutMs(long long value)
KafkaStreamingSourceOptions & WithSubscribePattern(const Aws::String &value)
KafkaStreamingSourceOptions & WithMinPartitions(int value)
KafkaStreamingSourceOptions & WithDelimiter(const char *value)
KafkaStreamingSourceOptions & WithAddRecordTimestamp(Aws::String &&value)
KafkaStreamingSourceOptions & WithNumRetries(int value)
KafkaStreamingSourceOptions & WithTopicName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue