AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SparkConnectorSource.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 SparkConnectorSource() = 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>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
61 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
62 template <typename ConnectionNameT = Aws::String>
63 void SetConnectionName(ConnectionNameT&& value) {
64 m_connectionNameHasBeenSet = true;
65 m_connectionName = std::forward<ConnectionNameT>(value);
66 }
67 template <typename ConnectionNameT = Aws::String>
68 SparkConnectorSource& WithConnectionName(ConnectionNameT&& value) {
69 SetConnectionName(std::forward<ConnectionNameT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetConnectorName() const { return m_connectorName; }
80 inline bool ConnectorNameHasBeenSet() const { return m_connectorNameHasBeenSet; }
81 template <typename ConnectorNameT = Aws::String>
82 void SetConnectorName(ConnectorNameT&& value) {
83 m_connectorNameHasBeenSet = true;
84 m_connectorName = std::forward<ConnectorNameT>(value);
85 }
86 template <typename ConnectorNameT = Aws::String>
87 SparkConnectorSource& WithConnectorName(ConnectorNameT&& value) {
88 SetConnectorName(std::forward<ConnectorNameT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetConnectionType() const { return m_connectionType; }
99 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
100 template <typename ConnectionTypeT = Aws::String>
101 void SetConnectionType(ConnectionTypeT&& value) {
102 m_connectionTypeHasBeenSet = true;
103 m_connectionType = std::forward<ConnectionTypeT>(value);
104 }
105 template <typename ConnectionTypeT = Aws::String>
106 SparkConnectorSource& WithConnectionType(ConnectionTypeT&& value) {
107 SetConnectionType(std::forward<ConnectionTypeT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalOptions() const { return m_additionalOptions; }
117 inline bool AdditionalOptionsHasBeenSet() const { return m_additionalOptionsHasBeenSet; }
118 template <typename AdditionalOptionsT = Aws::Map<Aws::String, Aws::String>>
119 void SetAdditionalOptions(AdditionalOptionsT&& value) {
120 m_additionalOptionsHasBeenSet = true;
121 m_additionalOptions = std::forward<AdditionalOptionsT>(value);
122 }
123 template <typename AdditionalOptionsT = Aws::Map<Aws::String, Aws::String>>
124 SparkConnectorSource& WithAdditionalOptions(AdditionalOptionsT&& value) {
125 SetAdditionalOptions(std::forward<AdditionalOptionsT>(value));
126 return *this;
127 }
128 template <typename AdditionalOptionsKeyT = Aws::String, typename AdditionalOptionsValueT = Aws::String>
129 SparkConnectorSource& AddAdditionalOptions(AdditionalOptionsKeyT&& key, AdditionalOptionsValueT&& value) {
130 m_additionalOptionsHasBeenSet = true;
131 m_additionalOptions.emplace(std::forward<AdditionalOptionsKeyT>(key), std::forward<AdditionalOptionsValueT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const { return m_outputSchemas; }
141 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
142 template <typename OutputSchemasT = Aws::Vector<GlueSchema>>
143 void SetOutputSchemas(OutputSchemasT&& value) {
144 m_outputSchemasHasBeenSet = true;
145 m_outputSchemas = std::forward<OutputSchemasT>(value);
146 }
147 template <typename OutputSchemasT = Aws::Vector<GlueSchema>>
148 SparkConnectorSource& WithOutputSchemas(OutputSchemasT&& value) {
149 SetOutputSchemas(std::forward<OutputSchemasT>(value));
150 return *this;
151 }
152 template <typename OutputSchemasT = GlueSchema>
153 SparkConnectorSource& AddOutputSchemas(OutputSchemasT&& value) {
154 m_outputSchemasHasBeenSet = true;
155 m_outputSchemas.emplace_back(std::forward<OutputSchemasT>(value));
156 return *this;
157 }
159 private:
160 Aws::String m_name;
161
162 Aws::String m_connectionName;
163
164 Aws::String m_connectorName;
165
166 Aws::String m_connectionType;
167
168 Aws::Map<Aws::String, Aws::String> m_additionalOptions;
169
170 Aws::Vector<GlueSchema> m_outputSchemas;
171 bool m_nameHasBeenSet = false;
172 bool m_connectionNameHasBeenSet = false;
173 bool m_connectorNameHasBeenSet = false;
174 bool m_connectionTypeHasBeenSet = false;
175 bool m_additionalOptionsHasBeenSet = false;
176 bool m_outputSchemasHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace Glue
181} // namespace Aws
AWS_GLUE_API SparkConnectorSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API SparkConnectorSource()=default
const Aws::String & GetConnectionType() const
AWS_GLUE_API SparkConnectorSource(Aws::Utils::Json::JsonView jsonValue)
SparkConnectorSource & WithAdditionalOptions(AdditionalOptionsT &&value)
SparkConnectorSource & WithConnectionName(ConnectionNameT &&value)
void SetAdditionalOptions(AdditionalOptionsT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
SparkConnectorSource & AddAdditionalOptions(AdditionalOptionsKeyT &&key, AdditionalOptionsValueT &&value)
const Aws::String & GetConnectionName() const
SparkConnectorSource & WithConnectorName(ConnectorNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalOptions() const
void SetConnectionType(ConnectionTypeT &&value)
SparkConnectorSource & AddOutputSchemas(OutputSchemasT &&value)
void SetConnectorName(ConnectorNameT &&value)
SparkConnectorSource & WithName(NameT &&value)
SparkConnectorSource & WithConnectionType(ConnectionTypeT &&value)
SparkConnectorSource & WithOutputSchemas(OutputSchemasT &&value)
void SetOutputSchemas(OutputSchemasT &&value)
void SetConnectionName(ConnectionNameT &&value)
const Aws::String & GetConnectorName() const
const Aws::Vector< GlueSchema > & GetOutputSchemas() 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