AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DirectKafkaSource.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
34 {
35 public:
36 AWS_GLUE_API DirectKafkaSource() = default;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
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>
51 DirectKafkaSource& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline const KafkaStreamingSourceOptions& GetStreamingOptions() const { return m_streamingOptions; }
59 inline bool StreamingOptionsHasBeenSet() const { return m_streamingOptionsHasBeenSet; }
60 template<typename StreamingOptionsT = KafkaStreamingSourceOptions>
61 void SetStreamingOptions(StreamingOptionsT&& value) { m_streamingOptionsHasBeenSet = true; m_streamingOptions = std::forward<StreamingOptionsT>(value); }
62 template<typename StreamingOptionsT = KafkaStreamingSourceOptions>
63 DirectKafkaSource& WithStreamingOptions(StreamingOptionsT&& value) { SetStreamingOptions(std::forward<StreamingOptionsT>(value)); return *this;}
65
67
70 inline int GetWindowSize() const { return m_windowSize; }
71 inline bool WindowSizeHasBeenSet() const { return m_windowSizeHasBeenSet; }
72 inline void SetWindowSize(int value) { m_windowSizeHasBeenSet = true; m_windowSize = value; }
73 inline DirectKafkaSource& WithWindowSize(int value) { SetWindowSize(value); return *this;}
75
77
80 inline bool GetDetectSchema() const { return m_detectSchema; }
81 inline bool DetectSchemaHasBeenSet() const { return m_detectSchemaHasBeenSet; }
82 inline void SetDetectSchema(bool value) { m_detectSchemaHasBeenSet = true; m_detectSchema = value; }
83 inline DirectKafkaSource& WithDetectSchema(bool value) { SetDetectSchema(value); return *this;}
85
87
91 inline const StreamingDataPreviewOptions& GetDataPreviewOptions() const { return m_dataPreviewOptions; }
92 inline bool DataPreviewOptionsHasBeenSet() const { return m_dataPreviewOptionsHasBeenSet; }
93 template<typename DataPreviewOptionsT = StreamingDataPreviewOptions>
94 void SetDataPreviewOptions(DataPreviewOptionsT&& value) { m_dataPreviewOptionsHasBeenSet = true; m_dataPreviewOptions = std::forward<DataPreviewOptionsT>(value); }
95 template<typename DataPreviewOptionsT = StreamingDataPreviewOptions>
96 DirectKafkaSource& WithDataPreviewOptions(DataPreviewOptionsT&& value) { SetDataPreviewOptions(std::forward<DataPreviewOptionsT>(value)); return *this;}
98 private:
99
100 Aws::String m_name;
101 bool m_nameHasBeenSet = false;
102
103 KafkaStreamingSourceOptions m_streamingOptions;
104 bool m_streamingOptionsHasBeenSet = false;
105
106 int m_windowSize{0};
107 bool m_windowSizeHasBeenSet = false;
108
109 bool m_detectSchema{false};
110 bool m_detectSchemaHasBeenSet = false;
111
112 StreamingDataPreviewOptions m_dataPreviewOptions;
113 bool m_dataPreviewOptionsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace Glue
118} // namespace Aws
AWS_GLUE_API DirectKafkaSource & operator=(Aws::Utils::Json::JsonView jsonValue)
DirectKafkaSource & WithName(NameT &&value)
AWS_GLUE_API DirectKafkaSource(Aws::Utils::Json::JsonView jsonValue)
DirectKafkaSource & WithStreamingOptions(StreamingOptionsT &&value)
DirectKafkaSource & WithWindowSize(int value)
const StreamingDataPreviewOptions & GetDataPreviewOptions() const
AWS_GLUE_API DirectKafkaSource()=default
DirectKafkaSource & WithDataPreviewOptions(DataPreviewOptionsT &&value)
const Aws::String & GetName() const
DirectKafkaSource & WithDetectSchema(bool value)
void SetStreamingOptions(StreamingOptionsT &&value)
const KafkaStreamingSourceOptions & GetStreamingOptions() 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