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>
48 template<
typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
50 template<
typename NameT = Aws::String>
60 template<
typename StreamingOptionsT = KafkaStreamingSourceOptions>
61 void SetStreamingOptions(StreamingOptionsT&& value) { m_streamingOptionsHasBeenSet =
true; m_streamingOptions = std::forward<StreamingOptionsT>(value); }
62 template<
typename StreamingOptionsT = KafkaStreamingSourceOptions>
72 inline void SetWindowSize(
int value) { m_windowSizeHasBeenSet =
true; m_windowSize = value; }
82 inline void SetDetectSchema(
bool value) { m_detectSchemaHasBeenSet =
true; m_detectSchema = value; }
93 template<
typename DataPreviewOptionsT = StreamingDataPreviewOptions>
94 void SetDataPreviewOptions(DataPreviewOptionsT&& value) { m_dataPreviewOptionsHasBeenSet =
true; m_dataPreviewOptions = std::forward<DataPreviewOptionsT>(value); }
95 template<
typename DataPreviewOptionsT = StreamingDataPreviewOptions>
101 bool m_nameHasBeenSet =
false;
104 bool m_streamingOptionsHasBeenSet =
false;
107 bool m_windowSizeHasBeenSet =
false;
109 bool m_detectSchema{
false};
110 bool m_detectSchemaHasBeenSet =
false;
112 StreamingDataPreviewOptions m_dataPreviewOptions;
113 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