AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
TestConnectionInput.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/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/AuthenticationConfigurationInput.h>
11#include <aws/glue/model/ConnectionPropertyKey.h>
12#include <aws/glue/model/ConnectionType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue {
24namespace Model {
25
33 public:
34 AWS_GLUE_API TestConnectionInput() = default;
38
40
44 inline ConnectionType GetConnectionType() const { return m_connectionType; }
45 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
46 inline void SetConnectionType(ConnectionType value) {
47 m_connectionTypeHasBeenSet = true;
48 m_connectionType = value;
49 }
51 SetConnectionType(value);
52 return *this;
53 }
55
57
69 inline const Aws::Map<ConnectionPropertyKey, Aws::String>& GetConnectionProperties() const { return m_connectionProperties; }
70 inline bool ConnectionPropertiesHasBeenSet() const { return m_connectionPropertiesHasBeenSet; }
71 template <typename ConnectionPropertiesT = Aws::Map<ConnectionPropertyKey, Aws::String>>
72 void SetConnectionProperties(ConnectionPropertiesT&& value) {
73 m_connectionPropertiesHasBeenSet = true;
74 m_connectionProperties = std::forward<ConnectionPropertiesT>(value);
75 }
76 template <typename ConnectionPropertiesT = Aws::Map<ConnectionPropertyKey, Aws::String>>
77 TestConnectionInput& WithConnectionProperties(ConnectionPropertiesT&& value) {
78 SetConnectionProperties(std::forward<ConnectionPropertiesT>(value));
79 return *this;
80 }
82 m_connectionPropertiesHasBeenSet = true;
83 m_connectionProperties.emplace(key, value);
84 return *this;
85 }
87
89
93 inline const AuthenticationConfigurationInput& GetAuthenticationConfiguration() const { return m_authenticationConfiguration; }
94 inline bool AuthenticationConfigurationHasBeenSet() const { return m_authenticationConfigurationHasBeenSet; }
95 template <typename AuthenticationConfigurationT = AuthenticationConfigurationInput>
96 void SetAuthenticationConfiguration(AuthenticationConfigurationT&& value) {
97 m_authenticationConfigurationHasBeenSet = true;
98 m_authenticationConfiguration = std::forward<AuthenticationConfigurationT>(value);
99 }
100 template <typename AuthenticationConfigurationT = AuthenticationConfigurationInput>
101 TestConnectionInput& WithAuthenticationConfiguration(AuthenticationConfigurationT&& value) {
102 SetAuthenticationConfiguration(std::forward<AuthenticationConfigurationT>(value));
103 return *this;
104 }
106 private:
107 ConnectionType m_connectionType{ConnectionType::NOT_SET};
108
110
111 AuthenticationConfigurationInput m_authenticationConfiguration;
112 bool m_connectionTypeHasBeenSet = false;
113 bool m_connectionPropertiesHasBeenSet = false;
114 bool m_authenticationConfigurationHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace Glue
119} // namespace Aws
AWS_GLUE_API TestConnectionInput & operator=(Aws::Utils::Json::JsonView jsonValue)
const AuthenticationConfigurationInput & GetAuthenticationConfiguration() const
TestConnectionInput & AddConnectionProperties(ConnectionPropertyKey key, Aws::String value)
void SetConnectionProperties(ConnectionPropertiesT &&value)
void SetConnectionType(ConnectionType value)
TestConnectionInput & WithAuthenticationConfiguration(AuthenticationConfigurationT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
TestConnectionInput & WithConnectionProperties(ConnectionPropertiesT &&value)
AWS_GLUE_API TestConnectionInput(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< ConnectionPropertyKey, Aws::String > & GetConnectionProperties() const
TestConnectionInput & WithConnectionType(ConnectionType value)
void SetAuthenticationConfiguration(AuthenticationConfigurationT &&value)
AWS_GLUE_API TestConnectionInput()=default
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
Aws::Utils::Json::JsonValue JsonValue