/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Glue { namespace Model { /** *

A structure that is used to specify a connection to create or * update.

See Also:

AWS * API Reference

*/ class AWS_GLUE_API ConnectionInput { public: ConnectionInput(); ConnectionInput(Aws::Utils::Json::JsonView jsonValue); ConnectionInput& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the connection.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the connection.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the connection.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the connection.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the connection.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the connection.

*/ inline ConnectionInput& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the connection.

*/ inline ConnectionInput& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the connection.

*/ inline ConnectionInput& WithName(const char* value) { SetName(value); return *this;} /** *

The description of the connection.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the connection.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the connection.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the connection.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the connection.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the connection.

*/ inline ConnectionInput& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the connection.

*/ inline ConnectionInput& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the connection.

*/ inline ConnectionInput& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The type of the connection. Currently, these types are supported:

    *
  • JDBC - Designates a connection to a database through Java * Database Connectivity (JDBC).

  • KAFKA - Designates * a connection to an Apache Kafka streaming platform.

  • * MONGODB - Designates a connection to a MongoDB document * database.

  • NETWORK - Designates a network * connection to a data source within an Amazon Virtual Private Cloud environment * (Amazon VPC).

SFTP is not supported.

*/ inline const ConnectionType& GetConnectionType() const{ return m_connectionType; } /** *

The type of the connection. Currently, these types are supported:

    *
  • JDBC - Designates a connection to a database through Java * Database Connectivity (JDBC).

  • KAFKA - Designates * a connection to an Apache Kafka streaming platform.

  • * MONGODB - Designates a connection to a MongoDB document * database.

  • NETWORK - Designates a network * connection to a data source within an Amazon Virtual Private Cloud environment * (Amazon VPC).

SFTP is not supported.

*/ inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; } /** *

The type of the connection. Currently, these types are supported:

    *
  • JDBC - Designates a connection to a database through Java * Database Connectivity (JDBC).

  • KAFKA - Designates * a connection to an Apache Kafka streaming platform.

  • * MONGODB - Designates a connection to a MongoDB document * database.

  • NETWORK - Designates a network * connection to a data source within an Amazon Virtual Private Cloud environment * (Amazon VPC).

SFTP is not supported.

*/ inline void SetConnectionType(const ConnectionType& value) { m_connectionTypeHasBeenSet = true; m_connectionType = value; } /** *

The type of the connection. Currently, these types are supported:

    *
  • JDBC - Designates a connection to a database through Java * Database Connectivity (JDBC).

  • KAFKA - Designates * a connection to an Apache Kafka streaming platform.

  • * MONGODB - Designates a connection to a MongoDB document * database.

  • NETWORK - Designates a network * connection to a data source within an Amazon Virtual Private Cloud environment * (Amazon VPC).

SFTP is not supported.

*/ inline void SetConnectionType(ConnectionType&& value) { m_connectionTypeHasBeenSet = true; m_connectionType = std::move(value); } /** *

The type of the connection. Currently, these types are supported:

    *
  • JDBC - Designates a connection to a database through Java * Database Connectivity (JDBC).

  • KAFKA - Designates * a connection to an Apache Kafka streaming platform.

  • * MONGODB - Designates a connection to a MongoDB document * database.

  • NETWORK - Designates a network * connection to a data source within an Amazon Virtual Private Cloud environment * (Amazon VPC).

SFTP is not supported.

*/ inline ConnectionInput& WithConnectionType(const ConnectionType& value) { SetConnectionType(value); return *this;} /** *

The type of the connection. Currently, these types are supported:

    *
  • JDBC - Designates a connection to a database through Java * Database Connectivity (JDBC).

  • KAFKA - Designates * a connection to an Apache Kafka streaming platform.

  • * MONGODB - Designates a connection to a MongoDB document * database.

  • NETWORK - Designates a network * connection to a data source within an Amazon Virtual Private Cloud environment * (Amazon VPC).

SFTP is not supported.

*/ inline ConnectionInput& WithConnectionType(ConnectionType&& value) { SetConnectionType(std::move(value)); return *this;} /** *

A list of criteria that can be used in selecting this connection.

*/ inline const Aws::Vector& GetMatchCriteria() const{ return m_matchCriteria; } /** *

A list of criteria that can be used in selecting this connection.

*/ inline bool MatchCriteriaHasBeenSet() const { return m_matchCriteriaHasBeenSet; } /** *

A list of criteria that can be used in selecting this connection.

*/ inline void SetMatchCriteria(const Aws::Vector& value) { m_matchCriteriaHasBeenSet = true; m_matchCriteria = value; } /** *

A list of criteria that can be used in selecting this connection.

*/ inline void SetMatchCriteria(Aws::Vector&& value) { m_matchCriteriaHasBeenSet = true; m_matchCriteria = std::move(value); } /** *

A list of criteria that can be used in selecting this connection.

*/ inline ConnectionInput& WithMatchCriteria(const Aws::Vector& value) { SetMatchCriteria(value); return *this;} /** *

A list of criteria that can be used in selecting this connection.

*/ inline ConnectionInput& WithMatchCriteria(Aws::Vector&& value) { SetMatchCriteria(std::move(value)); return *this;} /** *

A list of criteria that can be used in selecting this connection.

*/ inline ConnectionInput& AddMatchCriteria(const Aws::String& value) { m_matchCriteriaHasBeenSet = true; m_matchCriteria.push_back(value); return *this; } /** *

A list of criteria that can be used in selecting this connection.

*/ inline ConnectionInput& AddMatchCriteria(Aws::String&& value) { m_matchCriteriaHasBeenSet = true; m_matchCriteria.push_back(std::move(value)); return *this; } /** *

A list of criteria that can be used in selecting this connection.

*/ inline ConnectionInput& AddMatchCriteria(const char* value) { m_matchCriteriaHasBeenSet = true; m_matchCriteria.push_back(value); return *this; } /** *

These key-value pairs define parameters for the connection.

*/ inline const Aws::Map& GetConnectionProperties() const{ return m_connectionProperties; } /** *

These key-value pairs define parameters for the connection.

*/ inline bool ConnectionPropertiesHasBeenSet() const { return m_connectionPropertiesHasBeenSet; } /** *

These key-value pairs define parameters for the connection.

*/ inline void SetConnectionProperties(const Aws::Map& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties = value; } /** *

These key-value pairs define parameters for the connection.

*/ inline void SetConnectionProperties(Aws::Map&& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties = std::move(value); } /** *

These key-value pairs define parameters for the connection.

*/ inline ConnectionInput& WithConnectionProperties(const Aws::Map& value) { SetConnectionProperties(value); return *this;} /** *

These key-value pairs define parameters for the connection.

*/ inline ConnectionInput& WithConnectionProperties(Aws::Map&& value) { SetConnectionProperties(std::move(value)); return *this;} /** *

These key-value pairs define parameters for the connection.

*/ inline ConnectionInput& AddConnectionProperties(const ConnectionPropertyKey& key, const Aws::String& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties.emplace(key, value); return *this; } /** *

These key-value pairs define parameters for the connection.

*/ inline ConnectionInput& AddConnectionProperties(ConnectionPropertyKey&& key, const Aws::String& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties.emplace(std::move(key), value); return *this; } /** *

These key-value pairs define parameters for the connection.

*/ inline ConnectionInput& AddConnectionProperties(const ConnectionPropertyKey& key, Aws::String&& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties.emplace(key, std::move(value)); return *this; } /** *

These key-value pairs define parameters for the connection.

*/ inline ConnectionInput& AddConnectionProperties(ConnectionPropertyKey&& key, Aws::String&& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties.emplace(std::move(key), std::move(value)); return *this; } /** *

These key-value pairs define parameters for the connection.

*/ inline ConnectionInput& AddConnectionProperties(ConnectionPropertyKey&& key, const char* value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties.emplace(std::move(key), value); return *this; } /** *

These key-value pairs define parameters for the connection.

*/ inline ConnectionInput& AddConnectionProperties(const ConnectionPropertyKey& key, const char* value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties.emplace(key, value); return *this; } /** *

A map of physical connection requirements, such as virtual private cloud * (VPC) and SecurityGroup, that are needed to successfully make this * connection.

*/ inline const PhysicalConnectionRequirements& GetPhysicalConnectionRequirements() const{ return m_physicalConnectionRequirements; } /** *

A map of physical connection requirements, such as virtual private cloud * (VPC) and SecurityGroup, that are needed to successfully make this * connection.

*/ inline bool PhysicalConnectionRequirementsHasBeenSet() const { return m_physicalConnectionRequirementsHasBeenSet; } /** *

A map of physical connection requirements, such as virtual private cloud * (VPC) and SecurityGroup, that are needed to successfully make this * connection.

*/ inline void SetPhysicalConnectionRequirements(const PhysicalConnectionRequirements& value) { m_physicalConnectionRequirementsHasBeenSet = true; m_physicalConnectionRequirements = value; } /** *

A map of physical connection requirements, such as virtual private cloud * (VPC) and SecurityGroup, that are needed to successfully make this * connection.

*/ inline void SetPhysicalConnectionRequirements(PhysicalConnectionRequirements&& value) { m_physicalConnectionRequirementsHasBeenSet = true; m_physicalConnectionRequirements = std::move(value); } /** *

A map of physical connection requirements, such as virtual private cloud * (VPC) and SecurityGroup, that are needed to successfully make this * connection.

*/ inline ConnectionInput& WithPhysicalConnectionRequirements(const PhysicalConnectionRequirements& value) { SetPhysicalConnectionRequirements(value); return *this;} /** *

A map of physical connection requirements, such as virtual private cloud * (VPC) and SecurityGroup, that are needed to successfully make this * connection.

*/ inline ConnectionInput& WithPhysicalConnectionRequirements(PhysicalConnectionRequirements&& value) { SetPhysicalConnectionRequirements(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; ConnectionType m_connectionType; bool m_connectionTypeHasBeenSet; Aws::Vector m_matchCriteria; bool m_matchCriteriaHasBeenSet; Aws::Map m_connectionProperties; bool m_connectionPropertiesHasBeenSet; PhysicalConnectionRequirements m_physicalConnectionRequirements; bool m_physicalConnectionRequirementsHasBeenSet; }; } // namespace Model } // namespace Glue } // namespace Aws