AWS SDK for C++

AWS SDK for C++ Version 1.11.690

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
173 inline ConnectionType GetConnectionType() const { return m_connectionType; }
174 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
176 m_connectionTypeHasBeenSet = true;
177 m_connectionType = value;
178 }
180 SetConnectionType(value);
181 return *this;
182 }
184
186
189 inline const Aws::Vector<Aws::String>& GetMatchCriteria() const { return m_matchCriteria; }
190 inline bool MatchCriteriaHasBeenSet() const { return m_matchCriteriaHasBeenSet; }
191 template <typename MatchCriteriaT = Aws::Vector<Aws::String>>
192 void SetMatchCriteria(MatchCriteriaT&& value) {
193 m_matchCriteriaHasBeenSet = true;
194 m_matchCriteria = std::forward<MatchCriteriaT>(value);
195 }
196 template <typename MatchCriteriaT = Aws::Vector<Aws::String>>
197 ConnectionInput& WithMatchCriteria(MatchCriteriaT&& value) {
198 SetMatchCriteria(std::forward<MatchCriteriaT>(value));
199 return *this;
200 }
201 template <typename MatchCriteriaT = Aws::String>
202 ConnectionInput& AddMatchCriteria(MatchCriteriaT&& value) {
203 m_matchCriteriaHasBeenSet = true;
204 m_matchCriteria.emplace_back(std::forward<MatchCriteriaT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::Map<ConnectionPropertyKey, Aws::String>& GetConnectionProperties() const { return m_connectionProperties; }
214 inline bool ConnectionPropertiesHasBeenSet() const { return m_connectionPropertiesHasBeenSet; }
215 template <typename ConnectionPropertiesT = Aws::Map<ConnectionPropertyKey, Aws::String>>
216 void SetConnectionProperties(ConnectionPropertiesT&& value) {
217 m_connectionPropertiesHasBeenSet = true;
218 m_connectionProperties = std::forward<ConnectionPropertiesT>(value);
219 }
220 template <typename ConnectionPropertiesT = Aws::Map<ConnectionPropertyKey, Aws::String>>
221 ConnectionInput& WithConnectionProperties(ConnectionPropertiesT&& value) {
222 SetConnectionProperties(std::forward<ConnectionPropertiesT>(value));
223 return *this;
224 }
226 m_connectionPropertiesHasBeenSet = true;
227 m_connectionProperties.emplace(key, value);
228 return *this;
229 }
231
233
236 inline const Aws::Map<Aws::String, Aws::String>& GetSparkProperties() const { return m_sparkProperties; }
237 inline bool SparkPropertiesHasBeenSet() const { return m_sparkPropertiesHasBeenSet; }
238 template <typename SparkPropertiesT = Aws::Map<Aws::String, Aws::String>>
239 void SetSparkProperties(SparkPropertiesT&& value) {
240 m_sparkPropertiesHasBeenSet = true;
241 m_sparkProperties = std::forward<SparkPropertiesT>(value);
242 }
243 template <typename SparkPropertiesT = Aws::Map<Aws::String, Aws::String>>
244 ConnectionInput& WithSparkProperties(SparkPropertiesT&& value) {
245 SetSparkProperties(std::forward<SparkPropertiesT>(value));
246 return *this;
247 }
248 template <typename SparkPropertiesKeyT = Aws::String, typename SparkPropertiesValueT = Aws::String>
249 ConnectionInput& AddSparkProperties(SparkPropertiesKeyT&& key, SparkPropertiesValueT&& value) {
250 m_sparkPropertiesHasBeenSet = true;
251 m_sparkProperties.emplace(std::forward<SparkPropertiesKeyT>(key), std::forward<SparkPropertiesValueT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::Map<Aws::String, Aws::String>& GetAthenaProperties() const { return m_athenaProperties; }
261 inline bool AthenaPropertiesHasBeenSet() const { return m_athenaPropertiesHasBeenSet; }
262 template <typename AthenaPropertiesT = Aws::Map<Aws::String, Aws::String>>
263 void SetAthenaProperties(AthenaPropertiesT&& value) {
264 m_athenaPropertiesHasBeenSet = true;
265 m_athenaProperties = std::forward<AthenaPropertiesT>(value);
266 }
267 template <typename AthenaPropertiesT = Aws::Map<Aws::String, Aws::String>>
268 ConnectionInput& WithAthenaProperties(AthenaPropertiesT&& value) {
269 SetAthenaProperties(std::forward<AthenaPropertiesT>(value));
270 return *this;
271 }
272 template <typename AthenaPropertiesKeyT = Aws::String, typename AthenaPropertiesValueT = Aws::String>
273 ConnectionInput& AddAthenaProperties(AthenaPropertiesKeyT&& key, AthenaPropertiesValueT&& value) {
274 m_athenaPropertiesHasBeenSet = true;
275 m_athenaProperties.emplace(std::forward<AthenaPropertiesKeyT>(key), std::forward<AthenaPropertiesValueT>(value));
276 return *this;
277 }
279
281
284 inline const Aws::Map<Aws::String, Aws::String>& GetPythonProperties() const { return m_pythonProperties; }
285 inline bool PythonPropertiesHasBeenSet() const { return m_pythonPropertiesHasBeenSet; }
286 template <typename PythonPropertiesT = Aws::Map<Aws::String, Aws::String>>
287 void SetPythonProperties(PythonPropertiesT&& value) {
288 m_pythonPropertiesHasBeenSet = true;
289 m_pythonProperties = std::forward<PythonPropertiesT>(value);
290 }
291 template <typename PythonPropertiesT = Aws::Map<Aws::String, Aws::String>>
292 ConnectionInput& WithPythonProperties(PythonPropertiesT&& value) {
293 SetPythonProperties(std::forward<PythonPropertiesT>(value));
294 return *this;
295 }
296 template <typename PythonPropertiesKeyT = Aws::String, typename PythonPropertiesValueT = Aws::String>
297 ConnectionInput& AddPythonProperties(PythonPropertiesKeyT&& key, PythonPropertiesValueT&& value) {
298 m_pythonPropertiesHasBeenSet = true;
299 m_pythonProperties.emplace(std::forward<PythonPropertiesKeyT>(key), std::forward<PythonPropertiesValueT>(value));
300 return *this;
301 }
303
305
310 inline const PhysicalConnectionRequirements& GetPhysicalConnectionRequirements() const { return m_physicalConnectionRequirements; }
311 inline bool PhysicalConnectionRequirementsHasBeenSet() const { return m_physicalConnectionRequirementsHasBeenSet; }
312 template <typename PhysicalConnectionRequirementsT = PhysicalConnectionRequirements>
313 void SetPhysicalConnectionRequirements(PhysicalConnectionRequirementsT&& value) {
314 m_physicalConnectionRequirementsHasBeenSet = true;
315 m_physicalConnectionRequirements = std::forward<PhysicalConnectionRequirementsT>(value);
316 }
317 template <typename PhysicalConnectionRequirementsT = PhysicalConnectionRequirements>
318 ConnectionInput& WithPhysicalConnectionRequirements(PhysicalConnectionRequirementsT&& value) {
319 SetPhysicalConnectionRequirements(std::forward<PhysicalConnectionRequirementsT>(value));
320 return *this;
321 }
323
325
328 inline const AuthenticationConfigurationInput& GetAuthenticationConfiguration() const { return m_authenticationConfiguration; }
329 inline bool AuthenticationConfigurationHasBeenSet() const { return m_authenticationConfigurationHasBeenSet; }
330 template <typename AuthenticationConfigurationT = AuthenticationConfigurationInput>
331 void SetAuthenticationConfiguration(AuthenticationConfigurationT&& value) {
332 m_authenticationConfigurationHasBeenSet = true;
333 m_authenticationConfiguration = std::forward<AuthenticationConfigurationT>(value);
334 }
335 template <typename AuthenticationConfigurationT = AuthenticationConfigurationInput>
336 ConnectionInput& WithAuthenticationConfiguration(AuthenticationConfigurationT&& value) {
337 SetAuthenticationConfiguration(std::forward<AuthenticationConfigurationT>(value));
338 return *this;
339 }
341
343
347 inline bool GetValidateCredentials() const { return m_validateCredentials; }
348 inline bool ValidateCredentialsHasBeenSet() const { return m_validateCredentialsHasBeenSet; }
349 inline void SetValidateCredentials(bool value) {
350 m_validateCredentialsHasBeenSet = true;
351 m_validateCredentials = value;
352 }
355 return *this;
356 }
358
360
364 inline const Aws::Vector<ComputeEnvironment>& GetValidateForComputeEnvironments() const { return m_validateForComputeEnvironments; }
365 inline bool ValidateForComputeEnvironmentsHasBeenSet() const { return m_validateForComputeEnvironmentsHasBeenSet; }
366 template <typename ValidateForComputeEnvironmentsT = Aws::Vector<ComputeEnvironment>>
367 void SetValidateForComputeEnvironments(ValidateForComputeEnvironmentsT&& value) {
368 m_validateForComputeEnvironmentsHasBeenSet = true;
369 m_validateForComputeEnvironments = std::forward<ValidateForComputeEnvironmentsT>(value);
370 }
371 template <typename ValidateForComputeEnvironmentsT = Aws::Vector<ComputeEnvironment>>
372 ConnectionInput& WithValidateForComputeEnvironments(ValidateForComputeEnvironmentsT&& value) {
373 SetValidateForComputeEnvironments(std::forward<ValidateForComputeEnvironmentsT>(value));
374 return *this;
375 }
377 m_validateForComputeEnvironmentsHasBeenSet = true;
378 m_validateForComputeEnvironments.push_back(value);
379 return *this;
380 }
382 private:
383 Aws::String m_name;
384 bool m_nameHasBeenSet = false;
385
386 Aws::String m_description;
387 bool m_descriptionHasBeenSet = false;
388
389 ConnectionType m_connectionType{ConnectionType::NOT_SET};
390 bool m_connectionTypeHasBeenSet = false;
391
392 Aws::Vector<Aws::String> m_matchCriteria;
393 bool m_matchCriteriaHasBeenSet = false;
394
396 bool m_connectionPropertiesHasBeenSet = false;
397
398 Aws::Map<Aws::String, Aws::String> m_sparkProperties;
399 bool m_sparkPropertiesHasBeenSet = false;
400
401 Aws::Map<Aws::String, Aws::String> m_athenaProperties;
402 bool m_athenaPropertiesHasBeenSet = false;
403
404 Aws::Map<Aws::String, Aws::String> m_pythonProperties;
405 bool m_pythonPropertiesHasBeenSet = false;
406
407 PhysicalConnectionRequirements m_physicalConnectionRequirements;
408 bool m_physicalConnectionRequirementsHasBeenSet = false;
409
410 AuthenticationConfigurationInput m_authenticationConfiguration;
411 bool m_authenticationConfigurationHasBeenSet = false;
412
413 bool m_validateCredentials{false};
414 bool m_validateCredentialsHasBeenSet = false;
415
416 Aws::Vector<ComputeEnvironment> m_validateForComputeEnvironments;
417 bool m_validateForComputeEnvironmentsHasBeenSet = false;
418};
419
420} // namespace Model
421} // namespace Glue
422} // 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