AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AthenaConnectorSource.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/model/GlueSchema.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
35 {
36 public:
37 AWS_GLUE_API AthenaConnectorSource() = default;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 AthenaConnectorSource& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_connectionNameHasBeenSet = true; m_connectionName = std::forward<ConnectionNameT>(value); }
63 template<typename ConnectionNameT = Aws::String>
64 AthenaConnectorSource& WithConnectionName(ConnectionNameT&& value) { SetConnectionName(std::forward<ConnectionNameT>(value)); return *this;}
66
68
72 inline const Aws::String& GetConnectorName() const { return m_connectorName; }
73 inline bool ConnectorNameHasBeenSet() const { return m_connectorNameHasBeenSet; }
74 template<typename ConnectorNameT = Aws::String>
75 void SetConnectorName(ConnectorNameT&& value) { m_connectorNameHasBeenSet = true; m_connectorName = std::forward<ConnectorNameT>(value); }
76 template<typename ConnectorNameT = Aws::String>
77 AthenaConnectorSource& WithConnectorName(ConnectorNameT&& value) { SetConnectorName(std::forward<ConnectorNameT>(value)); return *this;}
79
81
85 inline const Aws::String& GetConnectionType() const { return m_connectionType; }
86 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
87 template<typename ConnectionTypeT = Aws::String>
88 void SetConnectionType(ConnectionTypeT&& value) { m_connectionTypeHasBeenSet = true; m_connectionType = std::forward<ConnectionTypeT>(value); }
89 template<typename ConnectionTypeT = Aws::String>
90 AthenaConnectorSource& WithConnectionType(ConnectionTypeT&& value) { SetConnectionType(std::forward<ConnectionTypeT>(value)); return *this;}
92
94
97 inline const Aws::String& GetConnectionTable() const { return m_connectionTable; }
98 inline bool ConnectionTableHasBeenSet() const { return m_connectionTableHasBeenSet; }
99 template<typename ConnectionTableT = Aws::String>
100 void SetConnectionTable(ConnectionTableT&& value) { m_connectionTableHasBeenSet = true; m_connectionTable = std::forward<ConnectionTableT>(value); }
101 template<typename ConnectionTableT = Aws::String>
102 AthenaConnectorSource& WithConnectionTable(ConnectionTableT&& value) { SetConnectionTable(std::forward<ConnectionTableT>(value)); return *this;}
104
106
110 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
111 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
112 template<typename SchemaNameT = Aws::String>
113 void SetSchemaName(SchemaNameT&& value) { m_schemaNameHasBeenSet = true; m_schemaName = std::forward<SchemaNameT>(value); }
114 template<typename SchemaNameT = Aws::String>
115 AthenaConnectorSource& WithSchemaName(SchemaNameT&& value) { SetSchemaName(std::forward<SchemaNameT>(value)); return *this;}
117
119
122 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const { return m_outputSchemas; }
123 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
124 template<typename OutputSchemasT = Aws::Vector<GlueSchema>>
125 void SetOutputSchemas(OutputSchemasT&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = std::forward<OutputSchemasT>(value); }
126 template<typename OutputSchemasT = Aws::Vector<GlueSchema>>
127 AthenaConnectorSource& WithOutputSchemas(OutputSchemasT&& value) { SetOutputSchemas(std::forward<OutputSchemasT>(value)); return *this;}
128 template<typename OutputSchemasT = GlueSchema>
129 AthenaConnectorSource& AddOutputSchemas(OutputSchemasT&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.emplace_back(std::forward<OutputSchemasT>(value)); return *this; }
131 private:
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
136 Aws::String m_connectionName;
137 bool m_connectionNameHasBeenSet = false;
138
139 Aws::String m_connectorName;
140 bool m_connectorNameHasBeenSet = false;
141
142 Aws::String m_connectionType;
143 bool m_connectionTypeHasBeenSet = false;
144
145 Aws::String m_connectionTable;
146 bool m_connectionTableHasBeenSet = false;
147
148 Aws::String m_schemaName;
149 bool m_schemaNameHasBeenSet = false;
150
151 Aws::Vector<GlueSchema> m_outputSchemas;
152 bool m_outputSchemasHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace Glue
157} // 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
const Aws::String & GetConnectionTable() 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