AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
CatalogKinesisSource.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/KinesisStreamingSourceOptions.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 CatalogKinesisSource() = 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>
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>
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 CatalogKinesisSource& WithDatabase(DatabaseT&& value) {
118 SetDatabase(std::forward<DatabaseT>(value));
119 return *this;
120 }
122
124
127 inline const KinesisStreamingSourceOptions& GetStreamingOptions() const { return m_streamingOptions; }
128 inline bool StreamingOptionsHasBeenSet() const { return m_streamingOptionsHasBeenSet; }
129 template <typename StreamingOptionsT = KinesisStreamingSourceOptions>
130 void SetStreamingOptions(StreamingOptionsT&& value) {
131 m_streamingOptionsHasBeenSet = true;
132 m_streamingOptions = std::forward<StreamingOptionsT>(value);
133 }
134 template <typename StreamingOptionsT = KinesisStreamingSourceOptions>
135 CatalogKinesisSource& WithStreamingOptions(StreamingOptionsT&& value) {
136 SetStreamingOptions(std::forward<StreamingOptionsT>(value));
137 return *this;
138 }
140
142
145 inline const StreamingDataPreviewOptions& GetDataPreviewOptions() const { return m_dataPreviewOptions; }
146 inline bool DataPreviewOptionsHasBeenSet() const { return m_dataPreviewOptionsHasBeenSet; }
147 template <typename DataPreviewOptionsT = StreamingDataPreviewOptions>
148 void SetDataPreviewOptions(DataPreviewOptionsT&& value) {
149 m_dataPreviewOptionsHasBeenSet = true;
150 m_dataPreviewOptions = std::forward<DataPreviewOptionsT>(value);
151 }
152 template <typename DataPreviewOptionsT = StreamingDataPreviewOptions>
153 CatalogKinesisSource& WithDataPreviewOptions(DataPreviewOptionsT&& value) {
154 SetDataPreviewOptions(std::forward<DataPreviewOptionsT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_name;
160 bool m_nameHasBeenSet = false;
161
162 int m_windowSize{0};
163 bool m_windowSizeHasBeenSet = false;
164
165 bool m_detectSchema{false};
166 bool m_detectSchemaHasBeenSet = false;
167
168 Aws::String m_table;
169 bool m_tableHasBeenSet = false;
170
171 Aws::String m_database;
172 bool m_databaseHasBeenSet = false;
173
174 KinesisStreamingSourceOptions m_streamingOptions;
175 bool m_streamingOptionsHasBeenSet = false;
176
177 StreamingDataPreviewOptions m_dataPreviewOptions;
178 bool m_dataPreviewOptionsHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace Glue
183} // namespace Aws
CatalogKinesisSource & WithDataPreviewOptions(DataPreviewOptionsT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDataPreviewOptions(DataPreviewOptionsT &&value)
void SetStreamingOptions(StreamingOptionsT &&value)
CatalogKinesisSource & WithTable(TableT &&value)
const StreamingDataPreviewOptions & GetDataPreviewOptions() const
CatalogKinesisSource & WithName(NameT &&value)
CatalogKinesisSource & WithDetectSchema(bool value)
CatalogKinesisSource & WithWindowSize(int value)
CatalogKinesisSource & WithStreamingOptions(StreamingOptionsT &&value)
AWS_GLUE_API CatalogKinesisSource(Aws::Utils::Json::JsonView jsonValue)
const KinesisStreamingSourceOptions & GetStreamingOptions() const
CatalogKinesisSource & WithDatabase(DatabaseT &&value)
AWS_GLUE_API CatalogKinesisSource()=default
AWS_GLUE_API CatalogKinesisSource & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue