AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
DirectKafkaSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/Glue_EXPORTS.h>
9#include <aws/glue/model/KafkaStreamingSourceOptions.h>
10#include <aws/glue/model/StreamingDataPreviewOptions.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
30 public:
31 AWS_GLUE_API DirectKafkaSource() = default;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 DirectKafkaSource& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const KafkaStreamingSourceOptions& GetStreamingOptions() const { return m_streamingOptions; }
59 inline bool StreamingOptionsHasBeenSet() const { return m_streamingOptionsHasBeenSet; }
60 template <typename StreamingOptionsT = KafkaStreamingSourceOptions>
61 void SetStreamingOptions(StreamingOptionsT&& value) {
62 m_streamingOptionsHasBeenSet = true;
63 m_streamingOptions = std::forward<StreamingOptionsT>(value);
64 }
65 template <typename StreamingOptionsT = KafkaStreamingSourceOptions>
66 DirectKafkaSource& WithStreamingOptions(StreamingOptionsT&& value) {
67 SetStreamingOptions(std::forward<StreamingOptionsT>(value));
68 return *this;
69 }
71
73
76 inline int GetWindowSize() const { return m_windowSize; }
77 inline bool WindowSizeHasBeenSet() const { return m_windowSizeHasBeenSet; }
78 inline void SetWindowSize(int value) {
79 m_windowSizeHasBeenSet = true;
80 m_windowSize = value;
81 }
82 inline DirectKafkaSource& WithWindowSize(int value) {
83 SetWindowSize(value);
84 return *this;
85 }
87
89
92 inline bool GetDetectSchema() const { return m_detectSchema; }
93 inline bool DetectSchemaHasBeenSet() const { return m_detectSchemaHasBeenSet; }
94 inline void SetDetectSchema(bool value) {
95 m_detectSchemaHasBeenSet = true;
96 m_detectSchema = value;
97 }
98 inline DirectKafkaSource& WithDetectSchema(bool value) {
99 SetDetectSchema(value);
100 return *this;
101 }
103
105
109 inline const StreamingDataPreviewOptions& GetDataPreviewOptions() const { return m_dataPreviewOptions; }
110 inline bool DataPreviewOptionsHasBeenSet() const { return m_dataPreviewOptionsHasBeenSet; }
111 template <typename DataPreviewOptionsT = StreamingDataPreviewOptions>
112 void SetDataPreviewOptions(DataPreviewOptionsT&& value) {
113 m_dataPreviewOptionsHasBeenSet = true;
114 m_dataPreviewOptions = std::forward<DataPreviewOptionsT>(value);
115 }
116 template <typename DataPreviewOptionsT = StreamingDataPreviewOptions>
117 DirectKafkaSource& WithDataPreviewOptions(DataPreviewOptionsT&& value) {
118 SetDataPreviewOptions(std::forward<DataPreviewOptionsT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_name;
124
125 KafkaStreamingSourceOptions m_streamingOptions;
126
127 int m_windowSize{0};
128
129 bool m_detectSchema{false};
130
131 StreamingDataPreviewOptions m_dataPreviewOptions;
132 bool m_nameHasBeenSet = false;
133 bool m_streamingOptionsHasBeenSet = false;
134 bool m_windowSizeHasBeenSet = false;
135 bool m_detectSchemaHasBeenSet = false;
136 bool m_dataPreviewOptionsHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace Glue
141} // namespace Aws
AWS_GLUE_API DirectKafkaSource & operator=(Aws::Utils::Json::JsonView jsonValue)
DirectKafkaSource & WithName(NameT &&value)
AWS_GLUE_API DirectKafkaSource(Aws::Utils::Json::JsonView jsonValue)
DirectKafkaSource & WithStreamingOptions(StreamingOptionsT &&value)
DirectKafkaSource & WithWindowSize(int value)
const StreamingDataPreviewOptions & GetDataPreviewOptions() const
AWS_GLUE_API DirectKafkaSource()=default
DirectKafkaSource & WithDataPreviewOptions(DataPreviewOptionsT &&value)
const Aws::String & GetName() const
DirectKafkaSource & WithDetectSchema(bool value)
void SetStreamingOptions(StreamingOptionsT &&value)
const KafkaStreamingSourceOptions & GetStreamingOptions() const
void SetDataPreviewOptions(DataPreviewOptionsT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue