AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ConnectionInput.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/AuthenticationConfigurationInput.h>
12#include <aws/glue/model/ComputeEnvironment.h>
13#include <aws/glue/model/ConnectionPropertyKey.h>
14#include <aws/glue/model/ConnectionType.h>
15#include <aws/glue/model/PhysicalConnectionRequirements.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Glue {
27namespace Model {
28
36 public:
37 AWS_GLUE_API ConnectionInput() = default;
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) {
50 m_nameHasBeenSet = true;
51 m_name = std::forward<NameT>(value);
52 }
53 template <typename NameT = Aws::String>
54 ConnectionInput& WithName(NameT&& value) {
55 SetName(std::forward<NameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetDescription() const { return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 template <typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) {
68 m_descriptionHasBeenSet = true;
69 m_description = std::forward<DescriptionT>(value);
70 }
71 template <typename DescriptionT = Aws::String>
72 ConnectionInput& WithDescription(DescriptionT&& value) {
73 SetDescription(std::forward<DescriptionT>(value));
74 return *this;
75 }
77
79
149 inline ConnectionType GetConnectionType() const { return m_connectionType; }
150 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
152 m_connectionTypeHasBeenSet = true;
153 m_connectionType = value;
154 }
156 SetConnectionType(value);
157 return *this;
158 }
160
162
165 inline const Aws::Vector<Aws::String>& GetMatchCriteria() const { return m_matchCriteria; }
166 inline bool MatchCriteriaHasBeenSet() const { return m_matchCriteriaHasBeenSet; }
167 template <typename MatchCriteriaT = Aws::Vector<Aws::String>>
168 void SetMatchCriteria(MatchCriteriaT&& value) {
169 m_matchCriteriaHasBeenSet = true;
170 m_matchCriteria = std::forward<MatchCriteriaT>(value);
171 }
172 template <typename MatchCriteriaT = Aws::Vector<Aws::String>>
173 ConnectionInput& WithMatchCriteria(MatchCriteriaT&& value) {
174 SetMatchCriteria(std::forward<MatchCriteriaT>(value));
175 return *this;
176 }
177 template <typename MatchCriteriaT = Aws::String>
178 ConnectionInput& AddMatchCriteria(MatchCriteriaT&& value) {
179 m_matchCriteriaHasBeenSet = true;
180 m_matchCriteria.emplace_back(std::forward<MatchCriteriaT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::Map<ConnectionPropertyKey, Aws::String>& GetConnectionProperties() const { return m_connectionProperties; }
190 inline bool ConnectionPropertiesHasBeenSet() const { return m_connectionPropertiesHasBeenSet; }
191 template <typename ConnectionPropertiesT = Aws::Map<ConnectionPropertyKey, Aws::String>>
192 void SetConnectionProperties(ConnectionPropertiesT&& value) {
193 m_connectionPropertiesHasBeenSet = true;
194 m_connectionProperties = std::forward<ConnectionPropertiesT>(value);
195 }
196 template <typename ConnectionPropertiesT = Aws::Map<ConnectionPropertyKey, Aws::String>>
197 ConnectionInput& WithConnectionProperties(ConnectionPropertiesT&& value) {
198 SetConnectionProperties(std::forward<ConnectionPropertiesT>(value));
199 return *this;
200 }
202 m_connectionPropertiesHasBeenSet = true;
203 m_connectionProperties.emplace(key, value);
204 return *this;
205 }
207
209
212 inline const Aws::Map<Aws::String, Aws::String>& GetSparkProperties() const { return m_sparkProperties; }
213 inline bool SparkPropertiesHasBeenSet() const { return m_sparkPropertiesHasBeenSet; }
214 template <typename SparkPropertiesT = Aws::Map<Aws::String, Aws::String>>
215 void SetSparkProperties(SparkPropertiesT&& value) {
216 m_sparkPropertiesHasBeenSet = true;
217 m_sparkProperties = std::forward<SparkPropertiesT>(value);
218 }
219 template <typename SparkPropertiesT = Aws::Map<Aws::String, Aws::String>>
220 ConnectionInput& WithSparkProperties(SparkPropertiesT&& value) {
221 SetSparkProperties(std::forward<SparkPropertiesT>(value));
222 return *this;
223 }
224 template <typename SparkPropertiesKeyT = Aws::String, typename SparkPropertiesValueT = Aws::String>
225 ConnectionInput& AddSparkProperties(SparkPropertiesKeyT&& key, SparkPropertiesValueT&& value) {
226 m_sparkPropertiesHasBeenSet = true;
227 m_sparkProperties.emplace(std::forward<SparkPropertiesKeyT>(key), std::forward<SparkPropertiesValueT>(value));
228 return *this;
229 }
231
233
236 inline const Aws::Map<Aws::String, Aws::String>& GetAthenaProperties() const { return m_athenaProperties; }
237 inline bool AthenaPropertiesHasBeenSet() const { return m_athenaPropertiesHasBeenSet; }
238 template <typename AthenaPropertiesT = Aws::Map<Aws::String, Aws::String>>
239 void SetAthenaProperties(AthenaPropertiesT&& value) {
240 m_athenaPropertiesHasBeenSet = true;
241 m_athenaProperties = std::forward<AthenaPropertiesT>(value);
242 }
243 template <typename AthenaPropertiesT = Aws::Map<Aws::String, Aws::String>>
244 ConnectionInput& WithAthenaProperties(AthenaPropertiesT&& value) {
245 SetAthenaProperties(std::forward<AthenaPropertiesT>(value));
246 return *this;
247 }
248 template <typename AthenaPropertiesKeyT = Aws::String, typename AthenaPropertiesValueT = Aws::String>
249 ConnectionInput& AddAthenaProperties(AthenaPropertiesKeyT&& key, AthenaPropertiesValueT&& value) {
250 m_athenaPropertiesHasBeenSet = true;
251 m_athenaProperties.emplace(std::forward<AthenaPropertiesKeyT>(key), std::forward<AthenaPropertiesValueT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::Map<Aws::String, Aws::String>& GetPythonProperties() const { return m_pythonProperties; }
261 inline bool PythonPropertiesHasBeenSet() const { return m_pythonPropertiesHasBeenSet; }
262 template <typename PythonPropertiesT = Aws::Map<Aws::String, Aws::String>>
263 void SetPythonProperties(PythonPropertiesT&& value) {
264 m_pythonPropertiesHasBeenSet = true;
265 m_pythonProperties = std::forward<PythonPropertiesT>(value);
266 }
267 template <typename PythonPropertiesT = Aws::Map<Aws::String, Aws::String>>
268 ConnectionInput& WithPythonProperties(PythonPropertiesT&& value) {
269 SetPythonProperties(std::forward<PythonPropertiesT>(value));
270 return *this;
271 }
272 template <typename PythonPropertiesKeyT = Aws::String, typename PythonPropertiesValueT = Aws::String>
273 ConnectionInput& AddPythonProperties(PythonPropertiesKeyT&& key, PythonPropertiesValueT&& value) {
274 m_pythonPropertiesHasBeenSet = true;
275 m_pythonProperties.emplace(std::forward<PythonPropertiesKeyT>(key), std::forward<PythonPropertiesValueT>(value));
276 return *this;
277 }
279
281
286 inline const PhysicalConnectionRequirements& GetPhysicalConnectionRequirements() const { return m_physicalConnectionRequirements; }
287 inline bool PhysicalConnectionRequirementsHasBeenSet() const { return m_physicalConnectionRequirementsHasBeenSet; }
288 template <typename PhysicalConnectionRequirementsT = PhysicalConnectionRequirements>
289 void SetPhysicalConnectionRequirements(PhysicalConnectionRequirementsT&& value) {
290 m_physicalConnectionRequirementsHasBeenSet = true;
291 m_physicalConnectionRequirements = std::forward<PhysicalConnectionRequirementsT>(value);
292 }
293 template <typename PhysicalConnectionRequirementsT = PhysicalConnectionRequirements>
294 ConnectionInput& WithPhysicalConnectionRequirements(PhysicalConnectionRequirementsT&& value) {
295 SetPhysicalConnectionRequirements(std::forward<PhysicalConnectionRequirementsT>(value));
296 return *this;
297 }
299
301
304 inline const AuthenticationConfigurationInput& GetAuthenticationConfiguration() const { return m_authenticationConfiguration; }
305 inline bool AuthenticationConfigurationHasBeenSet() const { return m_authenticationConfigurationHasBeenSet; }
306 template <typename AuthenticationConfigurationT = AuthenticationConfigurationInput>
307 void SetAuthenticationConfiguration(AuthenticationConfigurationT&& value) {
308 m_authenticationConfigurationHasBeenSet = true;
309 m_authenticationConfiguration = std::forward<AuthenticationConfigurationT>(value);
310 }
311 template <typename AuthenticationConfigurationT = AuthenticationConfigurationInput>
312 ConnectionInput& WithAuthenticationConfiguration(AuthenticationConfigurationT&& value) {
313 SetAuthenticationConfiguration(std::forward<AuthenticationConfigurationT>(value));
314 return *this;
315 }
317
319
323 inline bool GetValidateCredentials() const { return m_validateCredentials; }
324 inline bool ValidateCredentialsHasBeenSet() const { return m_validateCredentialsHasBeenSet; }
325 inline void SetValidateCredentials(bool value) {
326 m_validateCredentialsHasBeenSet = true;
327 m_validateCredentials = value;
328 }
331 return *this;
332 }
334
336
340 inline const Aws::Vector<ComputeEnvironment>& GetValidateForComputeEnvironments() const { return m_validateForComputeEnvironments; }
341 inline bool ValidateForComputeEnvironmentsHasBeenSet() const { return m_validateForComputeEnvironmentsHasBeenSet; }
342 template <typename ValidateForComputeEnvironmentsT = Aws::Vector<ComputeEnvironment>>
343 void SetValidateForComputeEnvironments(ValidateForComputeEnvironmentsT&& value) {
344 m_validateForComputeEnvironmentsHasBeenSet = true;
345 m_validateForComputeEnvironments = std::forward<ValidateForComputeEnvironmentsT>(value);
346 }
347 template <typename ValidateForComputeEnvironmentsT = Aws::Vector<ComputeEnvironment>>
348 ConnectionInput& WithValidateForComputeEnvironments(ValidateForComputeEnvironmentsT&& value) {
349 SetValidateForComputeEnvironments(std::forward<ValidateForComputeEnvironmentsT>(value));
350 return *this;
351 }
353 m_validateForComputeEnvironmentsHasBeenSet = true;
354 m_validateForComputeEnvironments.push_back(value);
355 return *this;
356 }
358 private:
359 Aws::String m_name;
360
361 Aws::String m_description;
362
363 ConnectionType m_connectionType{ConnectionType::NOT_SET};
364
365 Aws::Vector<Aws::String> m_matchCriteria;
366
368
369 Aws::Map<Aws::String, Aws::String> m_sparkProperties;
370
371 Aws::Map<Aws::String, Aws::String> m_athenaProperties;
372
373 Aws::Map<Aws::String, Aws::String> m_pythonProperties;
374
375 PhysicalConnectionRequirements m_physicalConnectionRequirements;
376
377 AuthenticationConfigurationInput m_authenticationConfiguration;
378
379 bool m_validateCredentials{false};
380
381 Aws::Vector<ComputeEnvironment> m_validateForComputeEnvironments;
382 bool m_nameHasBeenSet = false;
383 bool m_descriptionHasBeenSet = false;
384 bool m_connectionTypeHasBeenSet = false;
385 bool m_matchCriteriaHasBeenSet = false;
386 bool m_connectionPropertiesHasBeenSet = false;
387 bool m_sparkPropertiesHasBeenSet = false;
388 bool m_athenaPropertiesHasBeenSet = false;
389 bool m_pythonPropertiesHasBeenSet = false;
390 bool m_physicalConnectionRequirementsHasBeenSet = false;
391 bool m_authenticationConfigurationHasBeenSet = false;
392 bool m_validateCredentialsHasBeenSet = false;
393 bool m_validateForComputeEnvironmentsHasBeenSet = false;
394};
395
396} // namespace Model
397} // namespace Glue
398} // namespace Aws
AWS_GLUE_API ConnectionInput(Aws::Utils::Json::JsonView jsonValue)
ConnectionInput & WithValidateCredentials(bool value)
ConnectionInput & AddSparkProperties(SparkPropertiesKeyT &&key, SparkPropertiesValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAthenaProperties() const
ConnectionInput & AddAthenaProperties(AthenaPropertiesKeyT &&key, AthenaPropertiesValueT &&value)
const PhysicalConnectionRequirements & GetPhysicalConnectionRequirements() const
const Aws::Vector< Aws::String > & GetMatchCriteria() const
ConnectionInput & WithConnectionProperties(ConnectionPropertiesT &&value)
AWS_GLUE_API ConnectionInput()=default
bool PhysicalConnectionRequirementsHasBeenSet() const
ConnectionInput & WithConnectionType(ConnectionType value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAuthenticationConfiguration(AuthenticationConfigurationT &&value)
void SetConnectionType(ConnectionType value)
bool ValidateForComputeEnvironmentsHasBeenSet() const
void SetAthenaProperties(AthenaPropertiesT &&value)
const Aws::Vector< ComputeEnvironment > & GetValidateForComputeEnvironments() const
const Aws::Map< Aws::String, Aws::String > & GetSparkProperties() const
const Aws::Map< Aws::String, Aws::String > & GetPythonProperties() const
ConnectionInput & WithPythonProperties(PythonPropertiesT &&value)
ConnectionInput & AddValidateForComputeEnvironments(ComputeEnvironment value)
const Aws::String & GetDescription() const
ConnectionInput & WithValidateForComputeEnvironments(ValidateForComputeEnvironmentsT &&value)
ConnectionInput & AddConnectionProperties(ConnectionPropertyKey key, Aws::String value)
ConnectionInput & WithDescription(DescriptionT &&value)
ConnectionInput & WithName(NameT &&value)
ConnectionInput & WithAuthenticationConfiguration(AuthenticationConfigurationT &&value)
void SetValidateForComputeEnvironments(ValidateForComputeEnvironmentsT &&value)
void SetConnectionProperties(ConnectionPropertiesT &&value)
const Aws::String & GetName() const
ConnectionInput & AddPythonProperties(PythonPropertiesKeyT &&key, PythonPropertiesValueT &&value)
AWS_GLUE_API ConnectionInput & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectionInput & WithAthenaProperties(AthenaPropertiesT &&value)
const Aws::Map< ConnectionPropertyKey, Aws::String > & GetConnectionProperties() const
ConnectionInput & WithMatchCriteria(MatchCriteriaT &&value)
void SetMatchCriteria(MatchCriteriaT &&value)
ConnectionInput & WithPhysicalConnectionRequirements(PhysicalConnectionRequirementsT &&value)
void SetPythonProperties(PythonPropertiesT &&value)
const AuthenticationConfigurationInput & GetAuthenticationConfiguration() const
void SetSparkProperties(SparkPropertiesT &&value)
void SetDescription(DescriptionT &&value)
void SetPhysicalConnectionRequirements(PhysicalConnectionRequirementsT &&value)
ConnectionInput & AddMatchCriteria(MatchCriteriaT &&value)
ConnectionType GetConnectionType() const
ConnectionInput & WithSparkProperties(SparkPropertiesT &&value)
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