AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CatalogKafkaSource.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/model/KafkaStreamingSourceOptions.h>
10#include <aws/glue/model/StreamingDataPreviewOptions.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GLUE_API CatalogKafkaSource();
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline CatalogKafkaSource& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline CatalogKafkaSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline CatalogKafkaSource& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline int GetWindowSize() const{ return m_windowSize; }
62 inline bool WindowSizeHasBeenSet() const { return m_windowSizeHasBeenSet; }
63 inline void SetWindowSize(int value) { m_windowSizeHasBeenSet = true; m_windowSize = value; }
64 inline CatalogKafkaSource& WithWindowSize(int value) { SetWindowSize(value); return *this;}
66
68
71 inline bool GetDetectSchema() const{ return m_detectSchema; }
72 inline bool DetectSchemaHasBeenSet() const { return m_detectSchemaHasBeenSet; }
73 inline void SetDetectSchema(bool value) { m_detectSchemaHasBeenSet = true; m_detectSchema = value; }
74 inline CatalogKafkaSource& WithDetectSchema(bool value) { SetDetectSchema(value); return *this;}
76
78
81 inline const Aws::String& GetTable() const{ return m_table; }
82 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
83 inline void SetTable(const Aws::String& value) { m_tableHasBeenSet = true; m_table = value; }
84 inline void SetTable(Aws::String&& value) { m_tableHasBeenSet = true; m_table = std::move(value); }
85 inline void SetTable(const char* value) { m_tableHasBeenSet = true; m_table.assign(value); }
86 inline CatalogKafkaSource& WithTable(const Aws::String& value) { SetTable(value); return *this;}
87 inline CatalogKafkaSource& WithTable(Aws::String&& value) { SetTable(std::move(value)); return *this;}
88 inline CatalogKafkaSource& WithTable(const char* value) { SetTable(value); return *this;}
90
92
95 inline const Aws::String& GetDatabase() const{ return m_database; }
96 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
97 inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; }
98 inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); }
99 inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); }
100 inline CatalogKafkaSource& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;}
101 inline CatalogKafkaSource& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;}
102 inline CatalogKafkaSource& WithDatabase(const char* value) { SetDatabase(value); return *this;}
104
106
109 inline const KafkaStreamingSourceOptions& GetStreamingOptions() const{ return m_streamingOptions; }
110 inline bool StreamingOptionsHasBeenSet() const { return m_streamingOptionsHasBeenSet; }
111 inline void SetStreamingOptions(const KafkaStreamingSourceOptions& value) { m_streamingOptionsHasBeenSet = true; m_streamingOptions = value; }
112 inline void SetStreamingOptions(KafkaStreamingSourceOptions&& value) { m_streamingOptionsHasBeenSet = true; m_streamingOptions = std::move(value); }
116
118
122 inline const StreamingDataPreviewOptions& GetDataPreviewOptions() const{ return m_dataPreviewOptions; }
123 inline bool DataPreviewOptionsHasBeenSet() const { return m_dataPreviewOptionsHasBeenSet; }
124 inline void SetDataPreviewOptions(const StreamingDataPreviewOptions& value) { m_dataPreviewOptionsHasBeenSet = true; m_dataPreviewOptions = value; }
125 inline void SetDataPreviewOptions(StreamingDataPreviewOptions&& value) { m_dataPreviewOptionsHasBeenSet = true; m_dataPreviewOptions = std::move(value); }
129 private:
130
131 Aws::String m_name;
132 bool m_nameHasBeenSet = false;
133
134 int m_windowSize;
135 bool m_windowSizeHasBeenSet = false;
136
137 bool m_detectSchema;
138 bool m_detectSchemaHasBeenSet = false;
139
140 Aws::String m_table;
141 bool m_tableHasBeenSet = false;
142
143 Aws::String m_database;
144 bool m_databaseHasBeenSet = false;
145
146 KafkaStreamingSourceOptions m_streamingOptions;
147 bool m_streamingOptionsHasBeenSet = false;
148
149 StreamingDataPreviewOptions m_dataPreviewOptions;
150 bool m_dataPreviewOptionsHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace Glue
155} // namespace Aws
CatalogKafkaSource & WithTable(const Aws::String &value)
CatalogKafkaSource & WithDataPreviewOptions(StreamingDataPreviewOptions &&value)
CatalogKafkaSource & WithDatabase(const char *value)
void SetDatabase(const Aws::String &value)
void SetTable(const Aws::String &value)
const Aws::String & GetDatabase() const
CatalogKafkaSource & WithDatabase(Aws::String &&value)
const KafkaStreamingSourceOptions & GetStreamingOptions() const
AWS_GLUE_API CatalogKafkaSource(Aws::Utils::Json::JsonView jsonValue)
void SetDatabase(Aws::String &&value)
void SetStreamingOptions(KafkaStreamingSourceOptions &&value)
void SetName(const Aws::String &value)
void SetDataPreviewOptions(const StreamingDataPreviewOptions &value)
CatalogKafkaSource & WithStreamingOptions(KafkaStreamingSourceOptions &&value)
CatalogKafkaSource & WithName(const char *value)
CatalogKafkaSource & WithName(Aws::String &&value)
CatalogKafkaSource & WithStreamingOptions(const KafkaStreamingSourceOptions &value)
CatalogKafkaSource & WithDataPreviewOptions(const StreamingDataPreviewOptions &value)
const StreamingDataPreviewOptions & GetDataPreviewOptions() const
const Aws::String & GetTable() const
CatalogKafkaSource & WithWindowSize(int value)
CatalogKafkaSource & WithName(const Aws::String &value)
CatalogKafkaSource & WithDetectSchema(bool value)
AWS_GLUE_API CatalogKafkaSource & operator=(Aws::Utils::Json::JsonView jsonValue)
CatalogKafkaSource & WithTable(Aws::String &&value)
CatalogKafkaSource & WithTable(const char *value)
void SetDataPreviewOptions(StreamingDataPreviewOptions &&value)
CatalogKafkaSource & WithDatabase(const Aws::String &value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStreamingOptions(const KafkaStreamingSourceOptions &value)
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue