AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DirectKinesisSource.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/KinesisStreamingSourceOptions.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 DirectKinesisSource() = 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 DirectKinesisSource& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline int GetWindowSize() const { return m_windowSize; }
59 inline bool WindowSizeHasBeenSet() const { return m_windowSizeHasBeenSet; }
60 inline void SetWindowSize(int value) { m_windowSizeHasBeenSet = true; m_windowSize = value; }
61 inline DirectKinesisSource& WithWindowSize(int value) { SetWindowSize(value); return *this;}
63
65
68 inline bool GetDetectSchema() const { return m_detectSchema; }
69 inline bool DetectSchemaHasBeenSet() const { return m_detectSchemaHasBeenSet; }
70 inline void SetDetectSchema(bool value) { m_detectSchemaHasBeenSet = true; m_detectSchema = value; }
71 inline DirectKinesisSource& WithDetectSchema(bool value) { SetDetectSchema(value); return *this;}
73
75
78 inline const KinesisStreamingSourceOptions& GetStreamingOptions() const { return m_streamingOptions; }
79 inline bool StreamingOptionsHasBeenSet() const { return m_streamingOptionsHasBeenSet; }
80 template<typename StreamingOptionsT = KinesisStreamingSourceOptions>
81 void SetStreamingOptions(StreamingOptionsT&& value) { m_streamingOptionsHasBeenSet = true; m_streamingOptions = std::forward<StreamingOptionsT>(value); }
82 template<typename StreamingOptionsT = KinesisStreamingSourceOptions>
83 DirectKinesisSource& WithStreamingOptions(StreamingOptionsT&& value) { SetStreamingOptions(std::forward<StreamingOptionsT>(value)); return *this;}
85
87
90 inline const StreamingDataPreviewOptions& GetDataPreviewOptions() const { return m_dataPreviewOptions; }
91 inline bool DataPreviewOptionsHasBeenSet() const { return m_dataPreviewOptionsHasBeenSet; }
92 template<typename DataPreviewOptionsT = StreamingDataPreviewOptions>
93 void SetDataPreviewOptions(DataPreviewOptionsT&& value) { m_dataPreviewOptionsHasBeenSet = true; m_dataPreviewOptions = std::forward<DataPreviewOptionsT>(value); }
94 template<typename DataPreviewOptionsT = StreamingDataPreviewOptions>
95 DirectKinesisSource& WithDataPreviewOptions(DataPreviewOptionsT&& value) { SetDataPreviewOptions(std::forward<DataPreviewOptionsT>(value)); return *this;}
97 private:
98
99 Aws::String m_name;
100 bool m_nameHasBeenSet = false;
101
102 int m_windowSize{0};
103 bool m_windowSizeHasBeenSet = false;
104
105 bool m_detectSchema{false};
106 bool m_detectSchemaHasBeenSet = false;
107
108 KinesisStreamingSourceOptions m_streamingOptions;
109 bool m_streamingOptionsHasBeenSet = false;
110
111 StreamingDataPreviewOptions m_dataPreviewOptions;
112 bool m_dataPreviewOptionsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace Glue
117} // 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