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

Specifies a data target that writes to Amazon S3 in Apache Parquet columnar * storage.

See Also:

AWS * API Reference

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

The name of the data target.

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

The name of the data target.

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

The name of the data target.

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

The name of the data target.

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

The name of the data target.

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

The name of the data target.

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

The name of the data target.

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

The name of the data target.

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

The nodes that are inputs to the data target.

*/ inline const Aws::Vector& GetInputs() const{ return m_inputs; } /** *

The nodes that are inputs to the data target.

*/ inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; } /** *

The nodes that are inputs to the data target.

*/ inline void SetInputs(const Aws::Vector& value) { m_inputsHasBeenSet = true; m_inputs = value; } /** *

The nodes that are inputs to the data target.

*/ inline void SetInputs(Aws::Vector&& value) { m_inputsHasBeenSet = true; m_inputs = std::move(value); } /** *

The nodes that are inputs to the data target.

*/ inline JDBCConnectorTarget& WithInputs(const Aws::Vector& value) { SetInputs(value); return *this;} /** *

The nodes that are inputs to the data target.

*/ inline JDBCConnectorTarget& WithInputs(Aws::Vector&& value) { SetInputs(std::move(value)); return *this;} /** *

The nodes that are inputs to the data target.

*/ inline JDBCConnectorTarget& AddInputs(const Aws::String& value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; } /** *

The nodes that are inputs to the data target.

*/ inline JDBCConnectorTarget& AddInputs(Aws::String&& value) { m_inputsHasBeenSet = true; m_inputs.push_back(std::move(value)); return *this; } /** *

The nodes that are inputs to the data target.

*/ inline JDBCConnectorTarget& AddInputs(const char* value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; } /** *

The name of the connection that is associated with the connector.

*/ inline const Aws::String& GetConnectionName() const{ return m_connectionName; } /** *

The name of the connection that is associated with the connector.

*/ inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; } /** *

The name of the connection that is associated with the connector.

*/ inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; } /** *

The name of the connection that is associated with the connector.

*/ inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::move(value); } /** *

The name of the connection that is associated with the connector.

*/ inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); } /** *

The name of the connection that is associated with the connector.

*/ inline JDBCConnectorTarget& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;} /** *

The name of the connection that is associated with the connector.

*/ inline JDBCConnectorTarget& WithConnectionName(Aws::String&& value) { SetConnectionName(std::move(value)); return *this;} /** *

The name of the connection that is associated with the connector.

*/ inline JDBCConnectorTarget& WithConnectionName(const char* value) { SetConnectionName(value); return *this;} /** *

The name of the table in the data target.

*/ inline const Aws::String& GetConnectionTable() const{ return m_connectionTable; } /** *

The name of the table in the data target.

*/ inline bool ConnectionTableHasBeenSet() const { return m_connectionTableHasBeenSet; } /** *

The name of the table in the data target.

*/ inline void SetConnectionTable(const Aws::String& value) { m_connectionTableHasBeenSet = true; m_connectionTable = value; } /** *

The name of the table in the data target.

*/ inline void SetConnectionTable(Aws::String&& value) { m_connectionTableHasBeenSet = true; m_connectionTable = std::move(value); } /** *

The name of the table in the data target.

*/ inline void SetConnectionTable(const char* value) { m_connectionTableHasBeenSet = true; m_connectionTable.assign(value); } /** *

The name of the table in the data target.

*/ inline JDBCConnectorTarget& WithConnectionTable(const Aws::String& value) { SetConnectionTable(value); return *this;} /** *

The name of the table in the data target.

*/ inline JDBCConnectorTarget& WithConnectionTable(Aws::String&& value) { SetConnectionTable(std::move(value)); return *this;} /** *

The name of the table in the data target.

*/ inline JDBCConnectorTarget& WithConnectionTable(const char* value) { SetConnectionTable(value); return *this;} /** *

The name of a connector that will be used.

*/ inline const Aws::String& GetConnectorName() const{ return m_connectorName; } /** *

The name of a connector that will be used.

*/ inline bool ConnectorNameHasBeenSet() const { return m_connectorNameHasBeenSet; } /** *

The name of a connector that will be used.

*/ inline void SetConnectorName(const Aws::String& value) { m_connectorNameHasBeenSet = true; m_connectorName = value; } /** *

The name of a connector that will be used.

*/ inline void SetConnectorName(Aws::String&& value) { m_connectorNameHasBeenSet = true; m_connectorName = std::move(value); } /** *

The name of a connector that will be used.

*/ inline void SetConnectorName(const char* value) { m_connectorNameHasBeenSet = true; m_connectorName.assign(value); } /** *

The name of a connector that will be used.

*/ inline JDBCConnectorTarget& WithConnectorName(const Aws::String& value) { SetConnectorName(value); return *this;} /** *

The name of a connector that will be used.

*/ inline JDBCConnectorTarget& WithConnectorName(Aws::String&& value) { SetConnectorName(std::move(value)); return *this;} /** *

The name of a connector that will be used.

*/ inline JDBCConnectorTarget& WithConnectorName(const char* value) { SetConnectorName(value); return *this;} /** *

The type of connection, such as marketplace.jdbc or custom.jdbc, designating * a connection to a JDBC data target.

*/ inline const Aws::String& GetConnectionType() const{ return m_connectionType; } /** *

The type of connection, such as marketplace.jdbc or custom.jdbc, designating * a connection to a JDBC data target.

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

The type of connection, such as marketplace.jdbc or custom.jdbc, designating * a connection to a JDBC data target.

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

The type of connection, such as marketplace.jdbc or custom.jdbc, designating * a connection to a JDBC data target.

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

The type of connection, such as marketplace.jdbc or custom.jdbc, designating * a connection to a JDBC data target.

*/ inline void SetConnectionType(const char* value) { m_connectionTypeHasBeenSet = true; m_connectionType.assign(value); } /** *

The type of connection, such as marketplace.jdbc or custom.jdbc, designating * a connection to a JDBC data target.

*/ inline JDBCConnectorTarget& WithConnectionType(const Aws::String& value) { SetConnectionType(value); return *this;} /** *

The type of connection, such as marketplace.jdbc or custom.jdbc, designating * a connection to a JDBC data target.

*/ inline JDBCConnectorTarget& WithConnectionType(Aws::String&& value) { SetConnectionType(std::move(value)); return *this;} /** *

The type of connection, such as marketplace.jdbc or custom.jdbc, designating * a connection to a JDBC data target.

*/ inline JDBCConnectorTarget& WithConnectionType(const char* value) { SetConnectionType(value); return *this;} /** *

Additional connection options for the connector.

*/ inline const Aws::Map& GetAdditionalOptions() const{ return m_additionalOptions; } /** *

Additional connection options for the connector.

*/ inline bool AdditionalOptionsHasBeenSet() const { return m_additionalOptionsHasBeenSet; } /** *

Additional connection options for the connector.

*/ inline void SetAdditionalOptions(const Aws::Map& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions = value; } /** *

Additional connection options for the connector.

*/ inline void SetAdditionalOptions(Aws::Map&& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions = std::move(value); } /** *

Additional connection options for the connector.

*/ inline JDBCConnectorTarget& WithAdditionalOptions(const Aws::Map& value) { SetAdditionalOptions(value); return *this;} /** *

Additional connection options for the connector.

*/ inline JDBCConnectorTarget& WithAdditionalOptions(Aws::Map&& value) { SetAdditionalOptions(std::move(value)); return *this;} /** *

Additional connection options for the connector.

*/ inline JDBCConnectorTarget& AddAdditionalOptions(const Aws::String& key, const Aws::String& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions.emplace(key, value); return *this; } /** *

Additional connection options for the connector.

*/ inline JDBCConnectorTarget& AddAdditionalOptions(Aws::String&& key, const Aws::String& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions.emplace(std::move(key), value); return *this; } /** *

Additional connection options for the connector.

*/ inline JDBCConnectorTarget& AddAdditionalOptions(const Aws::String& key, Aws::String&& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions.emplace(key, std::move(value)); return *this; } /** *

Additional connection options for the connector.

*/ inline JDBCConnectorTarget& AddAdditionalOptions(Aws::String&& key, Aws::String&& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions.emplace(std::move(key), std::move(value)); return *this; } /** *

Additional connection options for the connector.

*/ inline JDBCConnectorTarget& AddAdditionalOptions(const char* key, Aws::String&& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions.emplace(key, std::move(value)); return *this; } /** *

Additional connection options for the connector.

*/ inline JDBCConnectorTarget& AddAdditionalOptions(Aws::String&& key, const char* value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions.emplace(std::move(key), value); return *this; } /** *

Additional connection options for the connector.

*/ inline JDBCConnectorTarget& AddAdditionalOptions(const char* key, const char* value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions.emplace(key, value); return *this; } /** *

Specifies the data schema for the JDBC target.

*/ inline const Aws::Vector& GetOutputSchemas() const{ return m_outputSchemas; } /** *

Specifies the data schema for the JDBC target.

*/ inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; } /** *

Specifies the data schema for the JDBC target.

*/ inline void SetOutputSchemas(const Aws::Vector& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = value; } /** *

Specifies the data schema for the JDBC target.

*/ inline void SetOutputSchemas(Aws::Vector&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = std::move(value); } /** *

Specifies the data schema for the JDBC target.

*/ inline JDBCConnectorTarget& WithOutputSchemas(const Aws::Vector& value) { SetOutputSchemas(value); return *this;} /** *

Specifies the data schema for the JDBC target.

*/ inline JDBCConnectorTarget& WithOutputSchemas(Aws::Vector&& value) { SetOutputSchemas(std::move(value)); return *this;} /** *

Specifies the data schema for the JDBC target.

*/ inline JDBCConnectorTarget& AddOutputSchemas(const GlueSchema& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(value); return *this; } /** *

Specifies the data schema for the JDBC target.

*/ inline JDBCConnectorTarget& AddOutputSchemas(GlueSchema&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_inputs; bool m_inputsHasBeenSet = false; Aws::String m_connectionName; bool m_connectionNameHasBeenSet = false; Aws::String m_connectionTable; bool m_connectionTableHasBeenSet = false; Aws::String m_connectorName; bool m_connectorNameHasBeenSet = false; Aws::String m_connectionType; bool m_connectionTypeHasBeenSet = false; Aws::Map m_additionalOptions; bool m_additionalOptionsHasBeenSet = false; Aws::Vector m_outputSchemas; bool m_outputSchemasHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws