/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Athena { namespace Model { /** */ class GetDatabaseRequest : public AthenaRequest { public: AWS_ATHENA_API GetDatabaseRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetDatabase"; } AWS_ATHENA_API Aws::String SerializePayload() const override; AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the data catalog that contains the database to return.

*/ inline const Aws::String& GetCatalogName() const{ return m_catalogName; } /** *

The name of the data catalog that contains the database to return.

*/ inline bool CatalogNameHasBeenSet() const { return m_catalogNameHasBeenSet; } /** *

The name of the data catalog that contains the database to return.

*/ inline void SetCatalogName(const Aws::String& value) { m_catalogNameHasBeenSet = true; m_catalogName = value; } /** *

The name of the data catalog that contains the database to return.

*/ inline void SetCatalogName(Aws::String&& value) { m_catalogNameHasBeenSet = true; m_catalogName = std::move(value); } /** *

The name of the data catalog that contains the database to return.

*/ inline void SetCatalogName(const char* value) { m_catalogNameHasBeenSet = true; m_catalogName.assign(value); } /** *

The name of the data catalog that contains the database to return.

*/ inline GetDatabaseRequest& WithCatalogName(const Aws::String& value) { SetCatalogName(value); return *this;} /** *

The name of the data catalog that contains the database to return.

*/ inline GetDatabaseRequest& WithCatalogName(Aws::String&& value) { SetCatalogName(std::move(value)); return *this;} /** *

The name of the data catalog that contains the database to return.

*/ inline GetDatabaseRequest& WithCatalogName(const char* value) { SetCatalogName(value); return *this;} /** *

The name of the database to return.

*/ inline const Aws::String& GetDatabaseName() const{ return m_databaseName; } /** *

The name of the database to return.

*/ inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; } /** *

The name of the database to return.

*/ inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; } /** *

The name of the database to return.

*/ inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); } /** *

The name of the database to return.

*/ inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); } /** *

The name of the database to return.

*/ inline GetDatabaseRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;} /** *

The name of the database to return.

*/ inline GetDatabaseRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;} /** *

The name of the database to return.

*/ inline GetDatabaseRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;} private: Aws::String m_catalogName; bool m_catalogNameHasBeenSet = false; Aws::String m_databaseName; bool m_databaseNameHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws