AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ConnectorDataSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/GlueSchema.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue {
23namespace Model {
24
32 public:
33 AWS_GLUE_API ConnectorDataSource() = default;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 ConnectorDataSource& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
65 inline const Aws::String& GetConnectionType() const { return m_connectionType; }
66 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
67 template <typename ConnectionTypeT = Aws::String>
68 void SetConnectionType(ConnectionTypeT&& value) {
69 m_connectionTypeHasBeenSet = true;
70 m_connectionType = std::forward<ConnectionTypeT>(value);
71 }
72 template <typename ConnectionTypeT = Aws::String>
73 ConnectorDataSource& WithConnectionType(ConnectionTypeT&& value) {
74 SetConnectionType(std::forward<ConnectionTypeT>(value));
75 return *this;
76 }
78
80
86 inline const Aws::Map<Aws::String, Aws::String>& GetData() const { return m_data; }
87 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
88 template <typename DataT = Aws::Map<Aws::String, Aws::String>>
89 void SetData(DataT&& value) {
90 m_dataHasBeenSet = true;
91 m_data = std::forward<DataT>(value);
92 }
93 template <typename DataT = Aws::Map<Aws::String, Aws::String>>
94 ConnectorDataSource& WithData(DataT&& value) {
95 SetData(std::forward<DataT>(value));
96 return *this;
97 }
98 template <typename DataKeyT = Aws::String, typename DataValueT = Aws::String>
99 ConnectorDataSource& AddData(DataKeyT&& key, DataValueT&& value) {
100 m_dataHasBeenSet = true;
101 m_data.emplace(std::forward<DataKeyT>(key), std::forward<DataValueT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const { return m_outputSchemas; }
111 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
112 template <typename OutputSchemasT = Aws::Vector<GlueSchema>>
113 void SetOutputSchemas(OutputSchemasT&& value) {
114 m_outputSchemasHasBeenSet = true;
115 m_outputSchemas = std::forward<OutputSchemasT>(value);
116 }
117 template <typename OutputSchemasT = Aws::Vector<GlueSchema>>
118 ConnectorDataSource& WithOutputSchemas(OutputSchemasT&& value) {
119 SetOutputSchemas(std::forward<OutputSchemasT>(value));
120 return *this;
121 }
122 template <typename OutputSchemasT = GlueSchema>
123 ConnectorDataSource& AddOutputSchemas(OutputSchemasT&& value) {
124 m_outputSchemasHasBeenSet = true;
125 m_outputSchemas.emplace_back(std::forward<OutputSchemasT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_name;
131
132 Aws::String m_connectionType;
133
135
136 Aws::Vector<GlueSchema> m_outputSchemas;
137 bool m_nameHasBeenSet = false;
138 bool m_connectionTypeHasBeenSet = false;
139 bool m_dataHasBeenSet = false;
140 bool m_outputSchemasHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace Glue
145} // namespace Aws
const Aws::Vector< GlueSchema > & GetOutputSchemas() const
ConnectorDataSource & WithName(NameT &&value)
AWS_GLUE_API ConnectorDataSource()=default
AWS_GLUE_API ConnectorDataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectorDataSource & AddOutputSchemas(OutputSchemasT &&value)
ConnectorDataSource & AddData(DataKeyT &&key, DataValueT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API ConnectorDataSource(Aws::Utils::Json::JsonView jsonValue)
ConnectorDataSource & WithData(DataT &&value)
void SetOutputSchemas(OutputSchemasT &&value)
ConnectorDataSource & WithConnectionType(ConnectionTypeT &&value)
void SetConnectionType(ConnectionTypeT &&value)
const Aws::String & GetConnectionType() const
ConnectorDataSource & WithOutputSchemas(OutputSchemasT &&value)
const Aws::Map< Aws::String, Aws::String > & GetData() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue