AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CatalogKafkaSource.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
31 public:
32 AWS_GLUE_API CatalogKafkaSource() = default;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 CatalogKafkaSource& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline int GetWindowSize() const { return m_windowSize; }
60 inline bool WindowSizeHasBeenSet() const { return m_windowSizeHasBeenSet; }
61 inline void SetWindowSize(int value) {
62 m_windowSizeHasBeenSet = true;
63 m_windowSize = value;
64 }
66 SetWindowSize(value);
67 return *this;
68 }
70
72
75 inline bool GetDetectSchema() const { return m_detectSchema; }
76 inline bool DetectSchemaHasBeenSet() const { return m_detectSchemaHasBeenSet; }
77 inline void SetDetectSchema(bool value) {
78 m_detectSchemaHasBeenSet = true;
79 m_detectSchema = value;
80 }
82 SetDetectSchema(value);
83 return *this;
84 }
86
88
91 inline const Aws::String& GetTable() const { return m_table; }
92 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
93 template <typename TableT = Aws::String>
94 void SetTable(TableT&& value) {
95 m_tableHasBeenSet = true;
96 m_table = std::forward<TableT>(value);
97 }
98 template <typename TableT = Aws::String>
99 CatalogKafkaSource& WithTable(TableT&& value) {
100 SetTable(std::forward<TableT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetDatabase() const { return m_database; }
110 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
111 template <typename DatabaseT = Aws::String>
112 void SetDatabase(DatabaseT&& value) {
113 m_databaseHasBeenSet = true;
114 m_database = std::forward<DatabaseT>(value);
115 }
116 template <typename DatabaseT = Aws::String>
117 CatalogKafkaSource& WithDatabase(DatabaseT&& value) {
118 SetDatabase(std::forward<DatabaseT>(value));
119 return *this;
120 }
122
124
127 inline const KafkaStreamingSourceOptions& GetStreamingOptions() const { return m_streamingOptions; }
128 inline bool StreamingOptionsHasBeenSet() const { return m_streamingOptionsHasBeenSet; }
129 template <typename StreamingOptionsT = KafkaStreamingSourceOptions>
130 void SetStreamingOptions(StreamingOptionsT&& value) {
131 m_streamingOptionsHasBeenSet = true;
132 m_streamingOptions = std::forward<StreamingOptionsT>(value);
133 }
134 template <typename StreamingOptionsT = KafkaStreamingSourceOptions>
135 CatalogKafkaSource& WithStreamingOptions(StreamingOptionsT&& value) {
136 SetStreamingOptions(std::forward<StreamingOptionsT>(value));
137 return *this;
138 }
140
142
146 inline const StreamingDataPreviewOptions& GetDataPreviewOptions() const { return m_dataPreviewOptions; }
147 inline bool DataPreviewOptionsHasBeenSet() const { return m_dataPreviewOptionsHasBeenSet; }
148 template <typename DataPreviewOptionsT = StreamingDataPreviewOptions>
149 void SetDataPreviewOptions(DataPreviewOptionsT&& value) {
150 m_dataPreviewOptionsHasBeenSet = true;
151 m_dataPreviewOptions = std::forward<DataPreviewOptionsT>(value);
152 }
153 template <typename DataPreviewOptionsT = StreamingDataPreviewOptions>
154 CatalogKafkaSource& WithDataPreviewOptions(DataPreviewOptionsT&& value) {
155 SetDataPreviewOptions(std::forward<DataPreviewOptionsT>(value));
156 return *this;
157 }
159 private:
160 Aws::String m_name;
161
162 int m_windowSize{0};
163
164 bool m_detectSchema{false};
165
166 Aws::String m_table;
167
168 Aws::String m_database;
169
170 KafkaStreamingSourceOptions m_streamingOptions;
171
172 StreamingDataPreviewOptions m_dataPreviewOptions;
173 bool m_nameHasBeenSet = false;
174 bool m_windowSizeHasBeenSet = false;
175 bool m_detectSchemaHasBeenSet = false;
176 bool m_tableHasBeenSet = false;
177 bool m_databaseHasBeenSet = false;
178 bool m_streamingOptionsHasBeenSet = false;
179 bool m_dataPreviewOptionsHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace Glue
184} // namespace Aws
CatalogKafkaSource & WithStreamingOptions(StreamingOptionsT &&value)
const Aws::String & GetDatabase() const
const KafkaStreamingSourceOptions & GetStreamingOptions() const
AWS_GLUE_API CatalogKafkaSource(Aws::Utils::Json::JsonView jsonValue)
void SetDataPreviewOptions(DataPreviewOptionsT &&value)
CatalogKafkaSource & WithName(NameT &&value)
CatalogKafkaSource & WithTable(TableT &&value)
void SetStreamingOptions(StreamingOptionsT &&value)
CatalogKafkaSource & WithDatabase(DatabaseT &&value)
const StreamingDataPreviewOptions & GetDataPreviewOptions() const
const Aws::String & GetTable() const
CatalogKafkaSource & WithDataPreviewOptions(DataPreviewOptionsT &&value)
CatalogKafkaSource & WithWindowSize(int value)
CatalogKafkaSource & WithDetectSchema(bool value)
AWS_GLUE_API CatalogKafkaSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API CatalogKafkaSource()=default
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue