AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AthenaConnectorSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/GlueSchema.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
31 public:
32 AWS_GLUE_API AthenaConnectorSource() = default;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
60 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
61 template <typename ConnectionNameT = Aws::String>
62 void SetConnectionName(ConnectionNameT&& value) {
63 m_connectionNameHasBeenSet = true;
64 m_connectionName = std::forward<ConnectionNameT>(value);
65 }
66 template <typename ConnectionNameT = Aws::String>
67 AthenaConnectorSource& WithConnectionName(ConnectionNameT&& value) {
68 SetConnectionName(std::forward<ConnectionNameT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetConnectorName() const { return m_connectorName; }
79 inline bool ConnectorNameHasBeenSet() const { return m_connectorNameHasBeenSet; }
80 template <typename ConnectorNameT = Aws::String>
81 void SetConnectorName(ConnectorNameT&& value) {
82 m_connectorNameHasBeenSet = true;
83 m_connectorName = std::forward<ConnectorNameT>(value);
84 }
85 template <typename ConnectorNameT = Aws::String>
86 AthenaConnectorSource& WithConnectorName(ConnectorNameT&& value) {
87 SetConnectorName(std::forward<ConnectorNameT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetConnectionType() const { return m_connectionType; }
98 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
99 template <typename ConnectionTypeT = Aws::String>
100 void SetConnectionType(ConnectionTypeT&& value) {
101 m_connectionTypeHasBeenSet = true;
102 m_connectionType = std::forward<ConnectionTypeT>(value);
103 }
104 template <typename ConnectionTypeT = Aws::String>
105 AthenaConnectorSource& WithConnectionType(ConnectionTypeT&& value) {
106 SetConnectionType(std::forward<ConnectionTypeT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetConnectionTable() const { return m_connectionTable; }
116 inline bool ConnectionTableHasBeenSet() const { return m_connectionTableHasBeenSet; }
117 template <typename ConnectionTableT = Aws::String>
118 void SetConnectionTable(ConnectionTableT&& value) {
119 m_connectionTableHasBeenSet = true;
120 m_connectionTable = std::forward<ConnectionTableT>(value);
121 }
122 template <typename ConnectionTableT = Aws::String>
123 AthenaConnectorSource& WithConnectionTable(ConnectionTableT&& value) {
124 SetConnectionTable(std::forward<ConnectionTableT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
135 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
136 template <typename SchemaNameT = Aws::String>
137 void SetSchemaName(SchemaNameT&& value) {
138 m_schemaNameHasBeenSet = true;
139 m_schemaName = std::forward<SchemaNameT>(value);
140 }
141 template <typename SchemaNameT = Aws::String>
142 AthenaConnectorSource& WithSchemaName(SchemaNameT&& value) {
143 SetSchemaName(std::forward<SchemaNameT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const { return m_outputSchemas; }
153 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
154 template <typename OutputSchemasT = Aws::Vector<GlueSchema>>
155 void SetOutputSchemas(OutputSchemasT&& value) {
156 m_outputSchemasHasBeenSet = true;
157 m_outputSchemas = std::forward<OutputSchemasT>(value);
158 }
159 template <typename OutputSchemasT = Aws::Vector<GlueSchema>>
160 AthenaConnectorSource& WithOutputSchemas(OutputSchemasT&& value) {
161 SetOutputSchemas(std::forward<OutputSchemasT>(value));
162 return *this;
163 }
164 template <typename OutputSchemasT = GlueSchema>
165 AthenaConnectorSource& AddOutputSchemas(OutputSchemasT&& value) {
166 m_outputSchemasHasBeenSet = true;
167 m_outputSchemas.emplace_back(std::forward<OutputSchemasT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_name;
173
174 Aws::String m_connectionName;
175
176 Aws::String m_connectorName;
177
178 Aws::String m_connectionType;
179
180 Aws::String m_connectionTable;
181
182 Aws::String m_schemaName;
183
184 Aws::Vector<GlueSchema> m_outputSchemas;
185 bool m_nameHasBeenSet = false;
186 bool m_connectionNameHasBeenSet = false;
187 bool m_connectorNameHasBeenSet = false;
188 bool m_connectionTypeHasBeenSet = false;
189 bool m_connectionTableHasBeenSet = false;
190 bool m_schemaNameHasBeenSet = false;
191 bool m_outputSchemasHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace Glue
196} // namespace Aws
AthenaConnectorSource & WithName(NameT &&value)
const Aws::String & GetConnectionType() const
AWS_GLUE_API AthenaConnectorSource(Aws::Utils::Json::JsonView jsonValue)
AthenaConnectorSource & WithConnectionName(ConnectionNameT &&value)
const Aws::Vector< GlueSchema > & GetOutputSchemas() const
AthenaConnectorSource & WithSchemaName(SchemaNameT &&value)
AthenaConnectorSource & WithConnectionType(ConnectionTypeT &&value)
AWS_GLUE_API AthenaConnectorSource()=default
void SetConnectionName(ConnectionNameT &&value)
void SetOutputSchemas(OutputSchemasT &&value)
const Aws::String & GetConnectionName() const
AWS_GLUE_API AthenaConnectorSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AthenaConnectorSource & WithConnectorName(ConnectorNameT &&value)
void SetConnectorName(ConnectorNameT &&value)
AthenaConnectorSource & WithOutputSchemas(OutputSchemasT &&value)
AthenaConnectorSource & AddOutputSchemas(OutputSchemasT &&value)
void SetConnectionTable(ConnectionTableT &&value)
void SetConnectionType(ConnectionTypeT &&value)
AthenaConnectorSource & WithConnectionTable(ConnectionTableT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue