AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ConnectionInput.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/model/ConnectionType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/glue/model/PhysicalConnectionRequirements.h>
13#include <aws/glue/model/AuthenticationConfigurationInput.h>
14#include <aws/glue/model/ConnectionPropertyKey.h>
15#include <aws/glue/model/ComputeEnvironment.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Glue
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_GLUE_API ConnectionInput() = default;
46
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 ConnectionInput& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
68 template<typename DescriptionT = Aws::String>
69 ConnectionInput& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
71
73
167 inline ConnectionType GetConnectionType() const { return m_connectionType; }
168 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
169 inline void SetConnectionType(ConnectionType value) { m_connectionTypeHasBeenSet = true; m_connectionType = value; }
172
174
177 inline const Aws::Vector<Aws::String>& GetMatchCriteria() const { return m_matchCriteria; }
178 inline bool MatchCriteriaHasBeenSet() const { return m_matchCriteriaHasBeenSet; }
179 template<typename MatchCriteriaT = Aws::Vector<Aws::String>>
180 void SetMatchCriteria(MatchCriteriaT&& value) { m_matchCriteriaHasBeenSet = true; m_matchCriteria = std::forward<MatchCriteriaT>(value); }
181 template<typename MatchCriteriaT = Aws::Vector<Aws::String>>
182 ConnectionInput& WithMatchCriteria(MatchCriteriaT&& value) { SetMatchCriteria(std::forward<MatchCriteriaT>(value)); return *this;}
183 template<typename MatchCriteriaT = Aws::String>
184 ConnectionInput& AddMatchCriteria(MatchCriteriaT&& value) { m_matchCriteriaHasBeenSet = true; m_matchCriteria.emplace_back(std::forward<MatchCriteriaT>(value)); return *this; }
186
188
191 inline const Aws::Map<ConnectionPropertyKey, Aws::String>& GetConnectionProperties() const { return m_connectionProperties; }
192 inline bool ConnectionPropertiesHasBeenSet() const { return m_connectionPropertiesHasBeenSet; }
193 template<typename ConnectionPropertiesT = Aws::Map<ConnectionPropertyKey, Aws::String>>
194 void SetConnectionProperties(ConnectionPropertiesT&& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties = std::forward<ConnectionPropertiesT>(value); }
195 template<typename ConnectionPropertiesT = Aws::Map<ConnectionPropertyKey, Aws::String>>
196 ConnectionInput& WithConnectionProperties(ConnectionPropertiesT&& value) { SetConnectionProperties(std::forward<ConnectionPropertiesT>(value)); return *this;}
198 m_connectionPropertiesHasBeenSet = true; m_connectionProperties.emplace(key, value); return *this;
199 }
201
203
206 inline const Aws::Map<Aws::String, Aws::String>& GetSparkProperties() const { return m_sparkProperties; }
207 inline bool SparkPropertiesHasBeenSet() const { return m_sparkPropertiesHasBeenSet; }
208 template<typename SparkPropertiesT = Aws::Map<Aws::String, Aws::String>>
209 void SetSparkProperties(SparkPropertiesT&& value) { m_sparkPropertiesHasBeenSet = true; m_sparkProperties = std::forward<SparkPropertiesT>(value); }
210 template<typename SparkPropertiesT = Aws::Map<Aws::String, Aws::String>>
211 ConnectionInput& WithSparkProperties(SparkPropertiesT&& value) { SetSparkProperties(std::forward<SparkPropertiesT>(value)); return *this;}
212 template<typename SparkPropertiesKeyT = Aws::String, typename SparkPropertiesValueT = Aws::String>
213 ConnectionInput& AddSparkProperties(SparkPropertiesKeyT&& key, SparkPropertiesValueT&& value) {
214 m_sparkPropertiesHasBeenSet = true; m_sparkProperties.emplace(std::forward<SparkPropertiesKeyT>(key), std::forward<SparkPropertiesValueT>(value)); 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) { m_athenaPropertiesHasBeenSet = true; m_athenaProperties = std::forward<AthenaPropertiesT>(value); }
226 template<typename AthenaPropertiesT = Aws::Map<Aws::String, Aws::String>>
227 ConnectionInput& WithAthenaProperties(AthenaPropertiesT&& value) { SetAthenaProperties(std::forward<AthenaPropertiesT>(value)); return *this;}
228 template<typename AthenaPropertiesKeyT = Aws::String, typename AthenaPropertiesValueT = Aws::String>
229 ConnectionInput& AddAthenaProperties(AthenaPropertiesKeyT&& key, AthenaPropertiesValueT&& value) {
230 m_athenaPropertiesHasBeenSet = true; m_athenaProperties.emplace(std::forward<AthenaPropertiesKeyT>(key), std::forward<AthenaPropertiesValueT>(value)); return *this;
231 }
233
235
238 inline const Aws::Map<Aws::String, Aws::String>& GetPythonProperties() const { return m_pythonProperties; }
239 inline bool PythonPropertiesHasBeenSet() const { return m_pythonPropertiesHasBeenSet; }
240 template<typename PythonPropertiesT = Aws::Map<Aws::String, Aws::String>>
241 void SetPythonProperties(PythonPropertiesT&& value) { m_pythonPropertiesHasBeenSet = true; m_pythonProperties = std::forward<PythonPropertiesT>(value); }
242 template<typename PythonPropertiesT = Aws::Map<Aws::String, Aws::String>>
243 ConnectionInput& WithPythonProperties(PythonPropertiesT&& value) { SetPythonProperties(std::forward<PythonPropertiesT>(value)); return *this;}
244 template<typename PythonPropertiesKeyT = Aws::String, typename PythonPropertiesValueT = Aws::String>
245 ConnectionInput& AddPythonProperties(PythonPropertiesKeyT&& key, PythonPropertiesValueT&& value) {
246 m_pythonPropertiesHasBeenSet = true; m_pythonProperties.emplace(std::forward<PythonPropertiesKeyT>(key), std::forward<PythonPropertiesValueT>(value)); return *this;
247 }
249
251
256 inline const PhysicalConnectionRequirements& GetPhysicalConnectionRequirements() const { return m_physicalConnectionRequirements; }
257 inline bool PhysicalConnectionRequirementsHasBeenSet() const { return m_physicalConnectionRequirementsHasBeenSet; }
258 template<typename PhysicalConnectionRequirementsT = PhysicalConnectionRequirements>
259 void SetPhysicalConnectionRequirements(PhysicalConnectionRequirementsT&& value) { m_physicalConnectionRequirementsHasBeenSet = true; m_physicalConnectionRequirements = std::forward<PhysicalConnectionRequirementsT>(value); }
260 template<typename PhysicalConnectionRequirementsT = PhysicalConnectionRequirements>
261 ConnectionInput& WithPhysicalConnectionRequirements(PhysicalConnectionRequirementsT&& value) { SetPhysicalConnectionRequirements(std::forward<PhysicalConnectionRequirementsT>(value)); return *this;}
263
265
268 inline const AuthenticationConfigurationInput& GetAuthenticationConfiguration() const { return m_authenticationConfiguration; }
269 inline bool AuthenticationConfigurationHasBeenSet() const { return m_authenticationConfigurationHasBeenSet; }
270 template<typename AuthenticationConfigurationT = AuthenticationConfigurationInput>
271 void SetAuthenticationConfiguration(AuthenticationConfigurationT&& value) { m_authenticationConfigurationHasBeenSet = true; m_authenticationConfiguration = std::forward<AuthenticationConfigurationT>(value); }
272 template<typename AuthenticationConfigurationT = AuthenticationConfigurationInput>
273 ConnectionInput& WithAuthenticationConfiguration(AuthenticationConfigurationT&& value) { SetAuthenticationConfiguration(std::forward<AuthenticationConfigurationT>(value)); return *this;}
275
277
281 inline bool GetValidateCredentials() const { return m_validateCredentials; }
282 inline bool ValidateCredentialsHasBeenSet() const { return m_validateCredentialsHasBeenSet; }
283 inline void SetValidateCredentials(bool value) { m_validateCredentialsHasBeenSet = true; m_validateCredentials = value; }
284 inline ConnectionInput& WithValidateCredentials(bool value) { SetValidateCredentials(value); return *this;}
286
288
292 inline const Aws::Vector<ComputeEnvironment>& GetValidateForComputeEnvironments() const { return m_validateForComputeEnvironments; }
293 inline bool ValidateForComputeEnvironmentsHasBeenSet() const { return m_validateForComputeEnvironmentsHasBeenSet; }
294 template<typename ValidateForComputeEnvironmentsT = Aws::Vector<ComputeEnvironment>>
295 void SetValidateForComputeEnvironments(ValidateForComputeEnvironmentsT&& value) { m_validateForComputeEnvironmentsHasBeenSet = true; m_validateForComputeEnvironments = std::forward<ValidateForComputeEnvironmentsT>(value); }
296 template<typename ValidateForComputeEnvironmentsT = Aws::Vector<ComputeEnvironment>>
297 ConnectionInput& WithValidateForComputeEnvironments(ValidateForComputeEnvironmentsT&& value) { SetValidateForComputeEnvironments(std::forward<ValidateForComputeEnvironmentsT>(value)); return *this;}
298 inline ConnectionInput& AddValidateForComputeEnvironments(ComputeEnvironment value) { m_validateForComputeEnvironmentsHasBeenSet = true; m_validateForComputeEnvironments.push_back(value); return *this; }
300 private:
301
302 Aws::String m_name;
303 bool m_nameHasBeenSet = false;
304
305 Aws::String m_description;
306 bool m_descriptionHasBeenSet = false;
307
308 ConnectionType m_connectionType{ConnectionType::NOT_SET};
309 bool m_connectionTypeHasBeenSet = false;
310
311 Aws::Vector<Aws::String> m_matchCriteria;
312 bool m_matchCriteriaHasBeenSet = false;
313
315 bool m_connectionPropertiesHasBeenSet = false;
316
317 Aws::Map<Aws::String, Aws::String> m_sparkProperties;
318 bool m_sparkPropertiesHasBeenSet = false;
319
320 Aws::Map<Aws::String, Aws::String> m_athenaProperties;
321 bool m_athenaPropertiesHasBeenSet = false;
322
323 Aws::Map<Aws::String, Aws::String> m_pythonProperties;
324 bool m_pythonPropertiesHasBeenSet = false;
325
326 PhysicalConnectionRequirements m_physicalConnectionRequirements;
327 bool m_physicalConnectionRequirementsHasBeenSet = false;
328
329 AuthenticationConfigurationInput m_authenticationConfiguration;
330 bool m_authenticationConfigurationHasBeenSet = false;
331
332 bool m_validateCredentials{false};
333 bool m_validateCredentialsHasBeenSet = false;
334
335 Aws::Vector<ComputeEnvironment> m_validateForComputeEnvironments;
336 bool m_validateForComputeEnvironmentsHasBeenSet = false;
337 };
338
339} // namespace Model
340} // namespace Glue
341} // 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