AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40
41
43
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline DirectKafkaSource& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline DirectKafkaSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline DirectKafkaSource& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const KafkaStreamingSourceOptions& GetStreamingOptions() const{ return m_streamingOptions; }
61 inline bool StreamingOptionsHasBeenSet() const { return m_streamingOptionsHasBeenSet; }
62 inline void SetStreamingOptions(const KafkaStreamingSourceOptions& value) { m_streamingOptionsHasBeenSet = true; m_streamingOptions = value; }
63 inline void SetStreamingOptions(KafkaStreamingSourceOptions&& value) { m_streamingOptionsHasBeenSet = true; m_streamingOptions = std::move(value); }
67
69
72 inline int GetWindowSize() const{ return m_windowSize; }
73 inline bool WindowSizeHasBeenSet() const { return m_windowSizeHasBeenSet; }
74 inline void SetWindowSize(int value) { m_windowSizeHasBeenSet = true; m_windowSize = value; }
75 inline DirectKafkaSource& WithWindowSize(int value) { SetWindowSize(value); return *this;}
77
79
82 inline bool GetDetectSchema() const{ return m_detectSchema; }
83 inline bool DetectSchemaHasBeenSet() const { return m_detectSchemaHasBeenSet; }
84 inline void SetDetectSchema(bool value) { m_detectSchemaHasBeenSet = true; m_detectSchema = value; }
85 inline DirectKafkaSource& WithDetectSchema(bool value) { SetDetectSchema(value); return *this;}
87
89
93 inline const StreamingDataPreviewOptions& GetDataPreviewOptions() const{ return m_dataPreviewOptions; }
94 inline bool DataPreviewOptionsHasBeenSet() const { return m_dataPreviewOptionsHasBeenSet; }
95 inline void SetDataPreviewOptions(const StreamingDataPreviewOptions& value) { m_dataPreviewOptionsHasBeenSet = true; m_dataPreviewOptions = value; }
96 inline void SetDataPreviewOptions(StreamingDataPreviewOptions&& value) { m_dataPreviewOptionsHasBeenSet = true; m_dataPreviewOptions = std::move(value); }
100 private:
101
102 Aws::String m_name;
103 bool m_nameHasBeenSet = false;
104
105 KafkaStreamingSourceOptions m_streamingOptions;
106 bool m_streamingOptionsHasBeenSet = false;
107
108 int m_windowSize;
109 bool m_windowSizeHasBeenSet = false;
110
111 bool m_detectSchema;
112 bool m_detectSchemaHasBeenSet = false;
113
114 StreamingDataPreviewOptions m_dataPreviewOptions;
115 bool m_dataPreviewOptionsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace Glue
120} // namespace Aws
AWS_GLUE_API DirectKafkaSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStreamingOptions(const KafkaStreamingSourceOptions &value)
DirectKafkaSource & WithDataPreviewOptions(StreamingDataPreviewOptions &&value)
void SetName(const Aws::String &value)
AWS_GLUE_API DirectKafkaSource(Aws::Utils::Json::JsonView jsonValue)
DirectKafkaSource & WithDataPreviewOptions(const StreamingDataPreviewOptions &value)
DirectKafkaSource & WithWindowSize(int value)
void SetDataPreviewOptions(const StreamingDataPreviewOptions &value)
const StreamingDataPreviewOptions & GetDataPreviewOptions() const
DirectKafkaSource & WithStreamingOptions(const KafkaStreamingSourceOptions &value)
DirectKafkaSource & WithStreamingOptions(KafkaStreamingSourceOptions &&value)
const Aws::String & GetName() const
void SetDataPreviewOptions(StreamingDataPreviewOptions &&value)
DirectKafkaSource & WithName(const Aws::String &value)
DirectKafkaSource & WithDetectSchema(bool value)
const KafkaStreamingSourceOptions & GetStreamingOptions() const
DirectKafkaSource & WithName(const char *value)
void SetName(Aws::String &&value)
DirectKafkaSource & WithName(Aws::String &&value)
void SetStreamingOptions(KafkaStreamingSourceOptions &&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