AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DirectKinesisSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/Glue_EXPORTS.h>
9#include <aws/glue/model/KinesisStreamingSourceOptions.h>
10#include <aws/glue/model/StreamingDataPreviewOptions.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
30 public:
31 AWS_GLUE_API DirectKinesisSource() = default;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 DirectKinesisSource& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline int GetWindowSize() const { return m_windowSize; }
59 inline bool WindowSizeHasBeenSet() const { return m_windowSizeHasBeenSet; }
60 inline void SetWindowSize(int value) {
61 m_windowSizeHasBeenSet = true;
62 m_windowSize = value;
63 }
65 SetWindowSize(value);
66 return *this;
67 }
69
71
74 inline bool GetDetectSchema() const { return m_detectSchema; }
75 inline bool DetectSchemaHasBeenSet() const { return m_detectSchemaHasBeenSet; }
76 inline void SetDetectSchema(bool value) {
77 m_detectSchemaHasBeenSet = true;
78 m_detectSchema = value;
79 }
81 SetDetectSchema(value);
82 return *this;
83 }
85
87
90 inline const KinesisStreamingSourceOptions& GetStreamingOptions() const { return m_streamingOptions; }
91 inline bool StreamingOptionsHasBeenSet() const { return m_streamingOptionsHasBeenSet; }
92 template <typename StreamingOptionsT = KinesisStreamingSourceOptions>
93 void SetStreamingOptions(StreamingOptionsT&& value) {
94 m_streamingOptionsHasBeenSet = true;
95 m_streamingOptions = std::forward<StreamingOptionsT>(value);
96 }
97 template <typename StreamingOptionsT = KinesisStreamingSourceOptions>
98 DirectKinesisSource& WithStreamingOptions(StreamingOptionsT&& value) {
99 SetStreamingOptions(std::forward<StreamingOptionsT>(value));
100 return *this;
101 }
103
105
108 inline const StreamingDataPreviewOptions& GetDataPreviewOptions() const { return m_dataPreviewOptions; }
109 inline bool DataPreviewOptionsHasBeenSet() const { return m_dataPreviewOptionsHasBeenSet; }
110 template <typename DataPreviewOptionsT = StreamingDataPreviewOptions>
111 void SetDataPreviewOptions(DataPreviewOptionsT&& value) {
112 m_dataPreviewOptionsHasBeenSet = true;
113 m_dataPreviewOptions = std::forward<DataPreviewOptionsT>(value);
114 }
115 template <typename DataPreviewOptionsT = StreamingDataPreviewOptions>
116 DirectKinesisSource& WithDataPreviewOptions(DataPreviewOptionsT&& value) {
117 SetDataPreviewOptions(std::forward<DataPreviewOptionsT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_name;
123
124 int m_windowSize{0};
125
126 bool m_detectSchema{false};
127
128 KinesisStreamingSourceOptions m_streamingOptions;
129
130 StreamingDataPreviewOptions m_dataPreviewOptions;
131 bool m_nameHasBeenSet = false;
132 bool m_windowSizeHasBeenSet = false;
133 bool m_detectSchemaHasBeenSet = false;
134 bool m_streamingOptionsHasBeenSet = false;
135 bool m_dataPreviewOptionsHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace Glue
140} // namespace Aws
const KinesisStreamingSourceOptions & GetStreamingOptions() const
DirectKinesisSource & WithName(NameT &&value)
const StreamingDataPreviewOptions & GetDataPreviewOptions() const
AWS_GLUE_API DirectKinesisSource(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API DirectKinesisSource()=default
DirectKinesisSource & WithStreamingOptions(StreamingOptionsT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
DirectKinesisSource & WithDetectSchema(bool value)
DirectKinesisSource & WithDataPreviewOptions(DataPreviewOptionsT &&value)
void SetDataPreviewOptions(DataPreviewOptionsT &&value)
void SetStreamingOptions(StreamingOptionsT &&value)
AWS_GLUE_API DirectKinesisSource & operator=(Aws::Utils::Json::JsonView jsonValue)
DirectKinesisSource & WithWindowSize(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue