AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GlueConnectionInput.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/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/AuthenticationConfigurationInput.h>
12#include <aws/datazone/model/ComputeEnvironments.h>
13#include <aws/datazone/model/GlueConnectionType.h>
14#include <aws/datazone/model/PhysicalConnectionRequirements.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DataZone {
26namespace Model {
27
34 public:
35 AWS_DATAZONE_API GlueConnectionInput() = default;
38 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::Map<Aws::String, Aws::String>& GetConnectionProperties() const { return m_connectionProperties; }
45 inline bool ConnectionPropertiesHasBeenSet() const { return m_connectionPropertiesHasBeenSet; }
46 template <typename ConnectionPropertiesT = Aws::Map<Aws::String, Aws::String>>
47 void SetConnectionProperties(ConnectionPropertiesT&& value) {
48 m_connectionPropertiesHasBeenSet = true;
49 m_connectionProperties = std::forward<ConnectionPropertiesT>(value);
50 }
51 template <typename ConnectionPropertiesT = Aws::Map<Aws::String, Aws::String>>
52 GlueConnectionInput& WithConnectionProperties(ConnectionPropertiesT&& value) {
53 SetConnectionProperties(std::forward<ConnectionPropertiesT>(value));
54 return *this;
55 }
56 template <typename ConnectionPropertiesKeyT = Aws::String, typename ConnectionPropertiesValueT = Aws::String>
57 GlueConnectionInput& AddConnectionProperties(ConnectionPropertiesKeyT&& key, ConnectionPropertiesValueT&& value) {
58 m_connectionPropertiesHasBeenSet = true;
59 m_connectionProperties.emplace(std::forward<ConnectionPropertiesKeyT>(key), std::forward<ConnectionPropertiesValueT>(value));
60 return *this;
61 }
63
65
69 inline const PhysicalConnectionRequirements& GetPhysicalConnectionRequirements() const { return m_physicalConnectionRequirements; }
70 inline bool PhysicalConnectionRequirementsHasBeenSet() const { return m_physicalConnectionRequirementsHasBeenSet; }
71 template <typename PhysicalConnectionRequirementsT = PhysicalConnectionRequirements>
72 void SetPhysicalConnectionRequirements(PhysicalConnectionRequirementsT&& value) {
73 m_physicalConnectionRequirementsHasBeenSet = true;
74 m_physicalConnectionRequirements = std::forward<PhysicalConnectionRequirementsT>(value);
75 }
76 template <typename PhysicalConnectionRequirementsT = PhysicalConnectionRequirements>
77 GlueConnectionInput& WithPhysicalConnectionRequirements(PhysicalConnectionRequirementsT&& value) {
78 SetPhysicalConnectionRequirements(std::forward<PhysicalConnectionRequirementsT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetName() const { return m_name; }
88 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
89 template <typename NameT = Aws::String>
90 void SetName(NameT&& value) {
91 m_nameHasBeenSet = true;
92 m_name = std::forward<NameT>(value);
93 }
94 template <typename NameT = Aws::String>
95 GlueConnectionInput& WithName(NameT&& value) {
96 SetName(std::forward<NameT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetDescription() const { return m_description; }
106 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
107 template <typename DescriptionT = Aws::String>
108 void SetDescription(DescriptionT&& value) {
109 m_descriptionHasBeenSet = true;
110 m_description = std::forward<DescriptionT>(value);
111 }
112 template <typename DescriptionT = Aws::String>
113 GlueConnectionInput& WithDescription(DescriptionT&& value) {
114 SetDescription(std::forward<DescriptionT>(value));
115 return *this;
116 }
118
120
123 inline GlueConnectionType GetConnectionType() const { return m_connectionType; }
124 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
126 m_connectionTypeHasBeenSet = true;
127 m_connectionType = value;
128 }
130 SetConnectionType(value);
131 return *this;
132 }
134
136
139 inline const Aws::String& GetMatchCriteria() const { return m_matchCriteria; }
140 inline bool MatchCriteriaHasBeenSet() const { return m_matchCriteriaHasBeenSet; }
141 template <typename MatchCriteriaT = Aws::String>
142 void SetMatchCriteria(MatchCriteriaT&& value) {
143 m_matchCriteriaHasBeenSet = true;
144 m_matchCriteria = std::forward<MatchCriteriaT>(value);
145 }
146 template <typename MatchCriteriaT = Aws::String>
147 GlueConnectionInput& WithMatchCriteria(MatchCriteriaT&& value) {
148 SetMatchCriteria(std::forward<MatchCriteriaT>(value));
149 return *this;
150 }
152
154
158 inline bool GetValidateCredentials() const { return m_validateCredentials; }
159 inline bool ValidateCredentialsHasBeenSet() const { return m_validateCredentialsHasBeenSet; }
160 inline void SetValidateCredentials(bool value) {
161 m_validateCredentialsHasBeenSet = true;
162 m_validateCredentials = value;
163 }
166 return *this;
167 }
169
171
175 inline const Aws::Vector<ComputeEnvironments>& GetValidateForComputeEnvironments() const { return m_validateForComputeEnvironments; }
176 inline bool ValidateForComputeEnvironmentsHasBeenSet() const { return m_validateForComputeEnvironmentsHasBeenSet; }
177 template <typename ValidateForComputeEnvironmentsT = Aws::Vector<ComputeEnvironments>>
178 void SetValidateForComputeEnvironments(ValidateForComputeEnvironmentsT&& value) {
179 m_validateForComputeEnvironmentsHasBeenSet = true;
180 m_validateForComputeEnvironments = std::forward<ValidateForComputeEnvironmentsT>(value);
181 }
182 template <typename ValidateForComputeEnvironmentsT = Aws::Vector<ComputeEnvironments>>
183 GlueConnectionInput& WithValidateForComputeEnvironments(ValidateForComputeEnvironmentsT&& value) {
184 SetValidateForComputeEnvironments(std::forward<ValidateForComputeEnvironmentsT>(value));
185 return *this;
186 }
188 m_validateForComputeEnvironmentsHasBeenSet = true;
189 m_validateForComputeEnvironments.push_back(value);
190 return *this;
191 }
193
195
198 inline const Aws::Map<Aws::String, Aws::String>& GetSparkProperties() const { return m_sparkProperties; }
199 inline bool SparkPropertiesHasBeenSet() const { return m_sparkPropertiesHasBeenSet; }
200 template <typename SparkPropertiesT = Aws::Map<Aws::String, Aws::String>>
201 void SetSparkProperties(SparkPropertiesT&& value) {
202 m_sparkPropertiesHasBeenSet = true;
203 m_sparkProperties = std::forward<SparkPropertiesT>(value);
204 }
205 template <typename SparkPropertiesT = Aws::Map<Aws::String, Aws::String>>
206 GlueConnectionInput& WithSparkProperties(SparkPropertiesT&& value) {
207 SetSparkProperties(std::forward<SparkPropertiesT>(value));
208 return *this;
209 }
210 template <typename SparkPropertiesKeyT = Aws::String, typename SparkPropertiesValueT = Aws::String>
211 GlueConnectionInput& AddSparkProperties(SparkPropertiesKeyT&& key, SparkPropertiesValueT&& value) {
212 m_sparkPropertiesHasBeenSet = true;
213 m_sparkProperties.emplace(std::forward<SparkPropertiesKeyT>(key), std::forward<SparkPropertiesValueT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::Map<Aws::String, Aws::String>& GetAthenaProperties() const { return m_athenaProperties; }
223 inline bool AthenaPropertiesHasBeenSet() const { return m_athenaPropertiesHasBeenSet; }
224 template <typename AthenaPropertiesT = Aws::Map<Aws::String, Aws::String>>
225 void SetAthenaProperties(AthenaPropertiesT&& value) {
226 m_athenaPropertiesHasBeenSet = true;
227 m_athenaProperties = std::forward<AthenaPropertiesT>(value);
228 }
229 template <typename AthenaPropertiesT = Aws::Map<Aws::String, Aws::String>>
230 GlueConnectionInput& WithAthenaProperties(AthenaPropertiesT&& value) {
231 SetAthenaProperties(std::forward<AthenaPropertiesT>(value));
232 return *this;
233 }
234 template <typename AthenaPropertiesKeyT = Aws::String, typename AthenaPropertiesValueT = Aws::String>
235 GlueConnectionInput& AddAthenaProperties(AthenaPropertiesKeyT&& key, AthenaPropertiesValueT&& value) {
236 m_athenaPropertiesHasBeenSet = true;
237 m_athenaProperties.emplace(std::forward<AthenaPropertiesKeyT>(key), std::forward<AthenaPropertiesValueT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::Map<Aws::String, Aws::String>& GetPythonProperties() const { return m_pythonProperties; }
247 inline bool PythonPropertiesHasBeenSet() const { return m_pythonPropertiesHasBeenSet; }
248 template <typename PythonPropertiesT = Aws::Map<Aws::String, Aws::String>>
249 void SetPythonProperties(PythonPropertiesT&& value) {
250 m_pythonPropertiesHasBeenSet = true;
251 m_pythonProperties = std::forward<PythonPropertiesT>(value);
252 }
253 template <typename PythonPropertiesT = Aws::Map<Aws::String, Aws::String>>
254 GlueConnectionInput& WithPythonProperties(PythonPropertiesT&& value) {
255 SetPythonProperties(std::forward<PythonPropertiesT>(value));
256 return *this;
257 }
258 template <typename PythonPropertiesKeyT = Aws::String, typename PythonPropertiesValueT = Aws::String>
259 GlueConnectionInput& AddPythonProperties(PythonPropertiesKeyT&& key, PythonPropertiesValueT&& value) {
260 m_pythonPropertiesHasBeenSet = true;
261 m_pythonProperties.emplace(std::forward<PythonPropertiesKeyT>(key), std::forward<PythonPropertiesValueT>(value));
262 return *this;
263 }
265
267
271 inline const AuthenticationConfigurationInput& GetAuthenticationConfiguration() const { return m_authenticationConfiguration; }
272 inline bool AuthenticationConfigurationHasBeenSet() const { return m_authenticationConfigurationHasBeenSet; }
273 template <typename AuthenticationConfigurationT = AuthenticationConfigurationInput>
274 void SetAuthenticationConfiguration(AuthenticationConfigurationT&& value) {
275 m_authenticationConfigurationHasBeenSet = true;
276 m_authenticationConfiguration = std::forward<AuthenticationConfigurationT>(value);
277 }
278 template <typename AuthenticationConfigurationT = AuthenticationConfigurationInput>
279 GlueConnectionInput& WithAuthenticationConfiguration(AuthenticationConfigurationT&& value) {
280 SetAuthenticationConfiguration(std::forward<AuthenticationConfigurationT>(value));
281 return *this;
282 }
284 private:
285 Aws::Map<Aws::String, Aws::String> m_connectionProperties;
286
287 PhysicalConnectionRequirements m_physicalConnectionRequirements;
288
289 Aws::String m_name;
290
291 Aws::String m_description;
292
294
295 Aws::String m_matchCriteria;
296
297 bool m_validateCredentials{false};
298
299 Aws::Vector<ComputeEnvironments> m_validateForComputeEnvironments;
300
301 Aws::Map<Aws::String, Aws::String> m_sparkProperties;
302
303 Aws::Map<Aws::String, Aws::String> m_athenaProperties;
304
305 Aws::Map<Aws::String, Aws::String> m_pythonProperties;
306
307 AuthenticationConfigurationInput m_authenticationConfiguration;
308 bool m_connectionPropertiesHasBeenSet = false;
309 bool m_physicalConnectionRequirementsHasBeenSet = false;
310 bool m_nameHasBeenSet = false;
311 bool m_descriptionHasBeenSet = false;
312 bool m_connectionTypeHasBeenSet = false;
313 bool m_matchCriteriaHasBeenSet = false;
314 bool m_validateCredentialsHasBeenSet = false;
315 bool m_validateForComputeEnvironmentsHasBeenSet = false;
316 bool m_sparkPropertiesHasBeenSet = false;
317 bool m_athenaPropertiesHasBeenSet = false;
318 bool m_pythonPropertiesHasBeenSet = false;
319 bool m_authenticationConfigurationHasBeenSet = false;
320};
321
322} // namespace Model
323} // namespace DataZone
324} // namespace Aws
GlueConnectionInput & WithMatchCriteria(MatchCriteriaT &&value)
GlueConnectionInput & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetConnectionProperties() const
GlueConnectionInput & WithValidateCredentials(bool value)
GlueConnectionInput & WithAthenaProperties(AthenaPropertiesT &&value)
void SetAuthenticationConfiguration(AuthenticationConfigurationT &&value)
void SetPythonProperties(PythonPropertiesT &&value)
void SetPhysicalConnectionRequirements(PhysicalConnectionRequirementsT &&value)
GlueConnectionInput & WithValidateForComputeEnvironments(ValidateForComputeEnvironmentsT &&value)
AWS_DATAZONE_API GlueConnectionInput(Aws::Utils::Json::JsonView jsonValue)
GlueConnectionInput & WithConnectionProperties(ConnectionPropertiesT &&value)
void SetConnectionProperties(ConnectionPropertiesT &&value)
GlueConnectionInput & WithSparkProperties(SparkPropertiesT &&value)
void SetConnectionType(GlueConnectionType value)
GlueConnectionInput & WithAuthenticationConfiguration(AuthenticationConfigurationT &&value)
GlueConnectionInput & AddPythonProperties(PythonPropertiesKeyT &&key, PythonPropertiesValueT &&value)
AWS_DATAZONE_API GlueConnectionInput & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSparkProperties(SparkPropertiesT &&value)
GlueConnectionInput & WithPythonProperties(PythonPropertiesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAthenaProperties() const
GlueConnectionInput & AddConnectionProperties(ConnectionPropertiesKeyT &&key, ConnectionPropertiesValueT &&value)
void SetValidateForComputeEnvironments(ValidateForComputeEnvironmentsT &&value)
AWS_DATAZONE_API GlueConnectionInput()=default
void SetMatchCriteria(MatchCriteriaT &&value)
void SetAthenaProperties(AthenaPropertiesT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetPythonProperties() const
GlueConnectionInput & AddAthenaProperties(AthenaPropertiesKeyT &&key, AthenaPropertiesValueT &&value)
GlueConnectionInput & WithName(NameT &&value)
GlueConnectionInput & WithPhysicalConnectionRequirements(PhysicalConnectionRequirementsT &&value)
GlueConnectionInput & AddSparkProperties(SparkPropertiesKeyT &&key, SparkPropertiesValueT &&value)
GlueConnectionInput & AddValidateForComputeEnvironments(ComputeEnvironments value)
const Aws::Vector< ComputeEnvironments > & GetValidateForComputeEnvironments() const
const Aws::Map< Aws::String, Aws::String > & GetSparkProperties() const
const PhysicalConnectionRequirements & GetPhysicalConnectionRequirements() const
GlueConnectionInput & WithConnectionType(GlueConnectionType value)
const AuthenticationConfigurationInput & GetAuthenticationConfiguration() 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