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>
42 template <
typename NameT = Aws::String>
44 m_nameHasBeenSet =
true;
45 m_name = std::forward<NameT>(value);
47 template <
typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
60 template <
typename StreamingOptionsT = KafkaStreamingSourceOptions>
62 m_streamingOptionsHasBeenSet =
true;
63 m_streamingOptions = std::forward<StreamingOptionsT>(value);
65 template <
typename StreamingOptionsT = KafkaStreamingSourceOptions>
79 m_windowSizeHasBeenSet =
true;
95 m_detectSchemaHasBeenSet =
true;
96 m_detectSchema = value;
111 template <
typename DataPreviewOptionsT = StreamingDataPreviewOptions>
113 m_dataPreviewOptionsHasBeenSet =
true;
114 m_dataPreviewOptions = std::forward<DataPreviewOptionsT>(value);
116 template <
typename DataPreviewOptionsT = StreamingDataPreviewOptions>
129 bool m_detectSchema{
false};
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;
AWS_GLUE_API DirectKafkaSource & operator=(Aws::Utils::Json::JsonView jsonValue)
bool WindowSizeHasBeenSet() const
DirectKafkaSource & WithName(NameT &&value)
void SetName(NameT &&value)
AWS_GLUE_API DirectKafkaSource(Aws::Utils::Json::JsonView jsonValue)
bool StreamingOptionsHasBeenSet() const
DirectKafkaSource & WithStreamingOptions(StreamingOptionsT &&value)
bool NameHasBeenSet() const
DirectKafkaSource & WithWindowSize(int value)
int GetWindowSize() const
const StreamingDataPreviewOptions & GetDataPreviewOptions() const
AWS_GLUE_API DirectKafkaSource()=default
DirectKafkaSource & WithDataPreviewOptions(DataPreviewOptionsT &&value)
const Aws::String & GetName() const
void SetDetectSchema(bool value)
bool GetDetectSchema() const
DirectKafkaSource & WithDetectSchema(bool value)
void SetStreamingOptions(StreamingOptionsT &&value)
void SetWindowSize(int value)
const KafkaStreamingSourceOptions & GetStreamingOptions() const
bool DetectSchemaHasBeenSet() const
bool DataPreviewOptionsHasBeenSet() 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