AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
GlueConnection.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/AuthenticationConfiguration.h>
13#include <aws/datazone/model/ComputeEnvironments.h>
14#include <aws/datazone/model/ConnectionStatus.h>
15#include <aws/datazone/model/ConnectionType.h>
16#include <aws/datazone/model/PhysicalConnectionRequirements.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace DataZone {
28namespace Model {
29
36 public:
37 AWS_DATAZONE_API GlueConnection() = default;
38 AWS_DATAZONE_API GlueConnection(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
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 GlueConnection& 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 GlueConnection& WithDescription(DescriptionT&& value) {
73 SetDescription(std::forward<DescriptionT>(value));
74 return *this;
75 }
77
79
82 inline ConnectionType GetConnectionType() const { return m_connectionType; }
83 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
84 inline void SetConnectionType(ConnectionType value) {
85 m_connectionTypeHasBeenSet = true;
86 m_connectionType = value;
87 }
89 SetConnectionType(value);
90 return *this;
91 }
93
95
98 inline const Aws::Vector<Aws::String>& GetMatchCriteria() const { return m_matchCriteria; }
99 inline bool MatchCriteriaHasBeenSet() const { return m_matchCriteriaHasBeenSet; }
100 template <typename MatchCriteriaT = Aws::Vector<Aws::String>>
101 void SetMatchCriteria(MatchCriteriaT&& value) {
102 m_matchCriteriaHasBeenSet = true;
103 m_matchCriteria = std::forward<MatchCriteriaT>(value);
104 }
105 template <typename MatchCriteriaT = Aws::Vector<Aws::String>>
106 GlueConnection& WithMatchCriteria(MatchCriteriaT&& value) {
107 SetMatchCriteria(std::forward<MatchCriteriaT>(value));
108 return *this;
109 }
110 template <typename MatchCriteriaT = Aws::String>
111 GlueConnection& AddMatchCriteria(MatchCriteriaT&& value) {
112 m_matchCriteriaHasBeenSet = true;
113 m_matchCriteria.emplace_back(std::forward<MatchCriteriaT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Map<Aws::String, Aws::String>& GetConnectionProperties() const { return m_connectionProperties; }
123 inline bool ConnectionPropertiesHasBeenSet() const { return m_connectionPropertiesHasBeenSet; }
124 template <typename ConnectionPropertiesT = Aws::Map<Aws::String, Aws::String>>
125 void SetConnectionProperties(ConnectionPropertiesT&& value) {
126 m_connectionPropertiesHasBeenSet = true;
127 m_connectionProperties = std::forward<ConnectionPropertiesT>(value);
128 }
129 template <typename ConnectionPropertiesT = Aws::Map<Aws::String, Aws::String>>
130 GlueConnection& WithConnectionProperties(ConnectionPropertiesT&& value) {
131 SetConnectionProperties(std::forward<ConnectionPropertiesT>(value));
132 return *this;
133 }
134 template <typename ConnectionPropertiesKeyT = Aws::String, typename ConnectionPropertiesValueT = Aws::String>
135 GlueConnection& AddConnectionProperties(ConnectionPropertiesKeyT&& key, ConnectionPropertiesValueT&& value) {
136 m_connectionPropertiesHasBeenSet = true;
137 m_connectionProperties.emplace(std::forward<ConnectionPropertiesKeyT>(key), std::forward<ConnectionPropertiesValueT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Map<Aws::String, Aws::String>& GetSparkProperties() const { return m_sparkProperties; }
147 inline bool SparkPropertiesHasBeenSet() const { return m_sparkPropertiesHasBeenSet; }
148 template <typename SparkPropertiesT = Aws::Map<Aws::String, Aws::String>>
149 void SetSparkProperties(SparkPropertiesT&& value) {
150 m_sparkPropertiesHasBeenSet = true;
151 m_sparkProperties = std::forward<SparkPropertiesT>(value);
152 }
153 template <typename SparkPropertiesT = Aws::Map<Aws::String, Aws::String>>
154 GlueConnection& WithSparkProperties(SparkPropertiesT&& value) {
155 SetSparkProperties(std::forward<SparkPropertiesT>(value));
156 return *this;
157 }
158 template <typename SparkPropertiesKeyT = Aws::String, typename SparkPropertiesValueT = Aws::String>
159 GlueConnection& AddSparkProperties(SparkPropertiesKeyT&& key, SparkPropertiesValueT&& value) {
160 m_sparkPropertiesHasBeenSet = true;
161 m_sparkProperties.emplace(std::forward<SparkPropertiesKeyT>(key), std::forward<SparkPropertiesValueT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::Map<Aws::String, Aws::String>& GetAthenaProperties() const { return m_athenaProperties; }
171 inline bool AthenaPropertiesHasBeenSet() const { return m_athenaPropertiesHasBeenSet; }
172 template <typename AthenaPropertiesT = Aws::Map<Aws::String, Aws::String>>
173 void SetAthenaProperties(AthenaPropertiesT&& value) {
174 m_athenaPropertiesHasBeenSet = true;
175 m_athenaProperties = std::forward<AthenaPropertiesT>(value);
176 }
177 template <typename AthenaPropertiesT = Aws::Map<Aws::String, Aws::String>>
178 GlueConnection& WithAthenaProperties(AthenaPropertiesT&& value) {
179 SetAthenaProperties(std::forward<AthenaPropertiesT>(value));
180 return *this;
181 }
182 template <typename AthenaPropertiesKeyT = Aws::String, typename AthenaPropertiesValueT = Aws::String>
183 GlueConnection& AddAthenaProperties(AthenaPropertiesKeyT&& key, AthenaPropertiesValueT&& value) {
184 m_athenaPropertiesHasBeenSet = true;
185 m_athenaProperties.emplace(std::forward<AthenaPropertiesKeyT>(key), std::forward<AthenaPropertiesValueT>(value));
186 return *this;
187 }
189
191
194 inline const Aws::Map<Aws::String, Aws::String>& GetPythonProperties() const { return m_pythonProperties; }
195 inline bool PythonPropertiesHasBeenSet() const { return m_pythonPropertiesHasBeenSet; }
196 template <typename PythonPropertiesT = Aws::Map<Aws::String, Aws::String>>
197 void SetPythonProperties(PythonPropertiesT&& value) {
198 m_pythonPropertiesHasBeenSet = true;
199 m_pythonProperties = std::forward<PythonPropertiesT>(value);
200 }
201 template <typename PythonPropertiesT = Aws::Map<Aws::String, Aws::String>>
202 GlueConnection& WithPythonProperties(PythonPropertiesT&& value) {
203 SetPythonProperties(std::forward<PythonPropertiesT>(value));
204 return *this;
205 }
206 template <typename PythonPropertiesKeyT = Aws::String, typename PythonPropertiesValueT = Aws::String>
207 GlueConnection& AddPythonProperties(PythonPropertiesKeyT&& key, PythonPropertiesValueT&& value) {
208 m_pythonPropertiesHasBeenSet = true;
209 m_pythonProperties.emplace(std::forward<PythonPropertiesKeyT>(key), std::forward<PythonPropertiesValueT>(value));
210 return *this;
211 }
213
215
219 inline const PhysicalConnectionRequirements& GetPhysicalConnectionRequirements() const { return m_physicalConnectionRequirements; }
220 inline bool PhysicalConnectionRequirementsHasBeenSet() const { return m_physicalConnectionRequirementsHasBeenSet; }
221 template <typename PhysicalConnectionRequirementsT = PhysicalConnectionRequirements>
222 void SetPhysicalConnectionRequirements(PhysicalConnectionRequirementsT&& value) {
223 m_physicalConnectionRequirementsHasBeenSet = true;
224 m_physicalConnectionRequirements = std::forward<PhysicalConnectionRequirementsT>(value);
225 }
226 template <typename PhysicalConnectionRequirementsT = PhysicalConnectionRequirements>
227 GlueConnection& WithPhysicalConnectionRequirements(PhysicalConnectionRequirementsT&& value) {
228 SetPhysicalConnectionRequirements(std::forward<PhysicalConnectionRequirementsT>(value));
229 return *this;
230 }
232
234
237 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
238 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
239 template <typename CreationTimeT = Aws::Utils::DateTime>
240 void SetCreationTime(CreationTimeT&& value) {
241 m_creationTimeHasBeenSet = true;
242 m_creationTime = std::forward<CreationTimeT>(value);
243 }
244 template <typename CreationTimeT = Aws::Utils::DateTime>
245 GlueConnection& WithCreationTime(CreationTimeT&& value) {
246 SetCreationTime(std::forward<CreationTimeT>(value));
247 return *this;
248 }
250
252
256 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
257 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
258 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
259 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
260 m_lastUpdatedTimeHasBeenSet = true;
261 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
262 }
263 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
264 GlueConnection& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
265 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
275 inline bool LastUpdatedByHasBeenSet() const { return m_lastUpdatedByHasBeenSet; }
276 template <typename LastUpdatedByT = Aws::String>
277 void SetLastUpdatedBy(LastUpdatedByT&& value) {
278 m_lastUpdatedByHasBeenSet = true;
279 m_lastUpdatedBy = std::forward<LastUpdatedByT>(value);
280 }
281 template <typename LastUpdatedByT = Aws::String>
282 GlueConnection& WithLastUpdatedBy(LastUpdatedByT&& value) {
283 SetLastUpdatedBy(std::forward<LastUpdatedByT>(value));
284 return *this;
285 }
287
289
292 inline ConnectionStatus GetStatus() const { return m_status; }
293 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
294 inline void SetStatus(ConnectionStatus value) {
295 m_statusHasBeenSet = true;
296 m_status = value;
297 }
299 SetStatus(value);
300 return *this;
301 }
303
305
308 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
309 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
310 template <typename StatusReasonT = Aws::String>
311 void SetStatusReason(StatusReasonT&& value) {
312 m_statusReasonHasBeenSet = true;
313 m_statusReason = std::forward<StatusReasonT>(value);
314 }
315 template <typename StatusReasonT = Aws::String>
316 GlueConnection& WithStatusReason(StatusReasonT&& value) {
317 SetStatusReason(std::forward<StatusReasonT>(value));
318 return *this;
319 }
321
323
326 inline const Aws::Utils::DateTime& GetLastConnectionValidationTime() const { return m_lastConnectionValidationTime; }
327 inline bool LastConnectionValidationTimeHasBeenSet() const { return m_lastConnectionValidationTimeHasBeenSet; }
328 template <typename LastConnectionValidationTimeT = Aws::Utils::DateTime>
329 void SetLastConnectionValidationTime(LastConnectionValidationTimeT&& value) {
330 m_lastConnectionValidationTimeHasBeenSet = true;
331 m_lastConnectionValidationTime = std::forward<LastConnectionValidationTimeT>(value);
332 }
333 template <typename LastConnectionValidationTimeT = Aws::Utils::DateTime>
334 GlueConnection& WithLastConnectionValidationTime(LastConnectionValidationTimeT&& value) {
335 SetLastConnectionValidationTime(std::forward<LastConnectionValidationTimeT>(value));
336 return *this;
337 }
339
341
345 inline const AuthenticationConfiguration& GetAuthenticationConfiguration() const { return m_authenticationConfiguration; }
346 inline bool AuthenticationConfigurationHasBeenSet() const { return m_authenticationConfigurationHasBeenSet; }
347 template <typename AuthenticationConfigurationT = AuthenticationConfiguration>
348 void SetAuthenticationConfiguration(AuthenticationConfigurationT&& value) {
349 m_authenticationConfigurationHasBeenSet = true;
350 m_authenticationConfiguration = std::forward<AuthenticationConfigurationT>(value);
351 }
352 template <typename AuthenticationConfigurationT = AuthenticationConfiguration>
353 GlueConnection& WithAuthenticationConfiguration(AuthenticationConfigurationT&& value) {
354 SetAuthenticationConfiguration(std::forward<AuthenticationConfigurationT>(value));
355 return *this;
356 }
358
360
363 inline int GetConnectionSchemaVersion() const { return m_connectionSchemaVersion; }
364 inline bool ConnectionSchemaVersionHasBeenSet() const { return m_connectionSchemaVersionHasBeenSet; }
365 inline void SetConnectionSchemaVersion(int value) {
366 m_connectionSchemaVersionHasBeenSet = true;
367 m_connectionSchemaVersion = value;
368 }
371 return *this;
372 }
374
376
380 inline const Aws::Vector<ComputeEnvironments>& GetCompatibleComputeEnvironments() const { return m_compatibleComputeEnvironments; }
381 inline bool CompatibleComputeEnvironmentsHasBeenSet() const { return m_compatibleComputeEnvironmentsHasBeenSet; }
382 template <typename CompatibleComputeEnvironmentsT = Aws::Vector<ComputeEnvironments>>
383 void SetCompatibleComputeEnvironments(CompatibleComputeEnvironmentsT&& value) {
384 m_compatibleComputeEnvironmentsHasBeenSet = true;
385 m_compatibleComputeEnvironments = std::forward<CompatibleComputeEnvironmentsT>(value);
386 }
387 template <typename CompatibleComputeEnvironmentsT = Aws::Vector<ComputeEnvironments>>
388 GlueConnection& WithCompatibleComputeEnvironments(CompatibleComputeEnvironmentsT&& value) {
389 SetCompatibleComputeEnvironments(std::forward<CompatibleComputeEnvironmentsT>(value));
390 return *this;
391 }
393 m_compatibleComputeEnvironmentsHasBeenSet = true;
394 m_compatibleComputeEnvironments.push_back(value);
395 return *this;
396 }
398 private:
399 Aws::String m_name;
400
401 Aws::String m_description;
402
403 ConnectionType m_connectionType{ConnectionType::NOT_SET};
404
405 Aws::Vector<Aws::String> m_matchCriteria;
406
407 Aws::Map<Aws::String, Aws::String> m_connectionProperties;
408
409 Aws::Map<Aws::String, Aws::String> m_sparkProperties;
410
411 Aws::Map<Aws::String, Aws::String> m_athenaProperties;
412
413 Aws::Map<Aws::String, Aws::String> m_pythonProperties;
414
415 PhysicalConnectionRequirements m_physicalConnectionRequirements;
416
417 Aws::Utils::DateTime m_creationTime{};
418
419 Aws::Utils::DateTime m_lastUpdatedTime{};
420
421 Aws::String m_lastUpdatedBy;
422
424
425 Aws::String m_statusReason;
426
427 Aws::Utils::DateTime m_lastConnectionValidationTime{};
428
429 AuthenticationConfiguration m_authenticationConfiguration;
430
431 int m_connectionSchemaVersion{0};
432
433 Aws::Vector<ComputeEnvironments> m_compatibleComputeEnvironments;
434 bool m_nameHasBeenSet = false;
435 bool m_descriptionHasBeenSet = false;
436 bool m_connectionTypeHasBeenSet = false;
437 bool m_matchCriteriaHasBeenSet = false;
438 bool m_connectionPropertiesHasBeenSet = false;
439 bool m_sparkPropertiesHasBeenSet = false;
440 bool m_athenaPropertiesHasBeenSet = false;
441 bool m_pythonPropertiesHasBeenSet = false;
442 bool m_physicalConnectionRequirementsHasBeenSet = false;
443 bool m_creationTimeHasBeenSet = false;
444 bool m_lastUpdatedTimeHasBeenSet = false;
445 bool m_lastUpdatedByHasBeenSet = false;
446 bool m_statusHasBeenSet = false;
447 bool m_statusReasonHasBeenSet = false;
448 bool m_lastConnectionValidationTimeHasBeenSet = false;
449 bool m_authenticationConfigurationHasBeenSet = false;
450 bool m_connectionSchemaVersionHasBeenSet = false;
451 bool m_compatibleComputeEnvironmentsHasBeenSet = false;
452};
453
454} // namespace Model
455} // namespace DataZone
456} // namespace Aws
const Aws::String & GetDescription() const
void SetPythonProperties(PythonPropertiesT &&value)
const Aws::Vector< ComputeEnvironments > & GetCompatibleComputeEnvironments() const
ConnectionType GetConnectionType() const
void SetStatus(ConnectionStatus value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetConnectionProperties(ConnectionPropertiesT &&value)
GlueConnection & WithCreationTime(CreationTimeT &&value)
GlueConnection & WithStatusReason(StatusReasonT &&value)
GlueConnection & WithDescription(DescriptionT &&value)
GlueConnection & WithLastConnectionValidationTime(LastConnectionValidationTimeT &&value)
GlueConnection & WithConnectionProperties(ConnectionPropertiesT &&value)
GlueConnection & WithConnectionType(ConnectionType value)
GlueConnection & WithStatus(ConnectionStatus value)
void SetCreationTime(CreationTimeT &&value)
GlueConnection & WithName(NameT &&value)
void SetMatchCriteria(MatchCriteriaT &&value)
const Aws::Vector< Aws::String > & GetMatchCriteria() const
void SetConnectionType(ConnectionType value)
const Aws::Utils::DateTime & GetCreationTime() const
GlueConnection & AddConnectionProperties(ConnectionPropertiesKeyT &&key, ConnectionPropertiesValueT &&value)
GlueConnection & AddAthenaProperties(AthenaPropertiesKeyT &&key, AthenaPropertiesValueT &&value)
const Aws::String & GetStatusReason() const
GlueConnection & AddCompatibleComputeEnvironments(ComputeEnvironments value)
const Aws::Map< Aws::String, Aws::String > & GetPythonProperties() const
GlueConnection & WithConnectionSchemaVersion(int value)
GlueConnection & WithMatchCriteria(MatchCriteriaT &&value)
const Aws::String & GetLastUpdatedBy() const
void SetDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetLastConnectionValidationTime() const
void SetStatusReason(StatusReasonT &&value)
ConnectionStatus GetStatus() const
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
GlueConnection & AddSparkProperties(SparkPropertiesKeyT &&key, SparkPropertiesValueT &&value)
void SetPhysicalConnectionRequirements(PhysicalConnectionRequirementsT &&value)
GlueConnection & WithSparkProperties(SparkPropertiesT &&value)
GlueConnection & WithLastUpdatedTime(LastUpdatedTimeT &&value)
AWS_DATAZONE_API GlueConnection()=default
void SetLastUpdatedBy(LastUpdatedByT &&value)
GlueConnection & WithPythonProperties(PythonPropertiesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAthenaProperties() const
GlueConnection & WithLastUpdatedBy(LastUpdatedByT &&value)
void SetCompatibleComputeEnvironments(CompatibleComputeEnvironmentsT &&value)
GlueConnection & AddPythonProperties(PythonPropertiesKeyT &&key, PythonPropertiesValueT &&value)
const AuthenticationConfiguration & GetAuthenticationConfiguration() const
AWS_DATAZONE_API GlueConnection(Aws::Utils::Json::JsonView jsonValue)
GlueConnection & WithAuthenticationConfiguration(AuthenticationConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetConnectionProperties() const
const PhysicalConnectionRequirements & GetPhysicalConnectionRequirements() const
void SetLastConnectionValidationTime(LastConnectionValidationTimeT &&value)
GlueConnection & AddMatchCriteria(MatchCriteriaT &&value)
const Aws::Map< Aws::String, Aws::String > & GetSparkProperties() const
AWS_DATAZONE_API GlueConnection & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSparkProperties(SparkPropertiesT &&value)
void SetAthenaProperties(AthenaPropertiesT &&value)
GlueConnection & WithAthenaProperties(AthenaPropertiesT &&value)
const Aws::String & GetName() const
const Aws::Utils::DateTime & GetLastUpdatedTime() const
GlueConnection & WithCompatibleComputeEnvironments(CompatibleComputeEnvironmentsT &&value)
void SetAuthenticationConfiguration(AuthenticationConfigurationT &&value)
GlueConnection & WithPhysicalConnectionRequirements(PhysicalConnectionRequirementsT &&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