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

A database that points to an entity outside the Glue Data * Catalog.

See Also:

AWS * API Reference

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

A unique identifier for the federated database.

*/ inline const Aws::String& GetIdentifier() const{ return m_identifier; } /** *

A unique identifier for the federated database.

*/ inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; } /** *

A unique identifier for the federated database.

*/ inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; } /** *

A unique identifier for the federated database.

*/ inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); } /** *

A unique identifier for the federated database.

*/ inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); } /** *

A unique identifier for the federated database.

*/ inline FederatedDatabase& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;} /** *

A unique identifier for the federated database.

*/ inline FederatedDatabase& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;} /** *

A unique identifier for the federated database.

*/ inline FederatedDatabase& WithIdentifier(const char* value) { SetIdentifier(value); return *this;} /** *

The name of the connection to the external metastore.

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

The name of the connection to the external metastore.

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

The name of the connection to the external metastore.

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

The name of the connection to the external metastore.

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

The name of the connection to the external metastore.

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

The name of the connection to the external metastore.

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

The name of the connection to the external metastore.

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

The name of the connection to the external metastore.

*/ inline FederatedDatabase& WithConnectionName(const char* value) { SetConnectionName(value); return *this;} private: Aws::String m_identifier; bool m_identifierHasBeenSet = false; Aws::String m_connectionName; bool m_connectionNameHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws