/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Athena { namespace Model { /** *

Contains metadata information for a database in a data catalog.

See * Also:

AWS API * Reference

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

The name of the database.

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

The name of the database.

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

The name of the database.

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

The name of the database.

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

The name of the database.

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

The name of the database.

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

The name of the database.

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

The name of the database.

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

An optional description of the database.

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

An optional description of the database.

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

An optional description of the database.

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

An optional description of the database.

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

An optional description of the database.

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

An optional description of the database.

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

An optional description of the database.

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

An optional description of the database.

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

A set of custom key/value pairs.

*/ inline const Aws::Map& GetParameters() const{ return m_parameters; } /** *

A set of custom key/value pairs.

*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *

A set of custom key/value pairs.

*/ inline void SetParameters(const Aws::Map& value) { m_parametersHasBeenSet = true; m_parameters = value; } /** *

A set of custom key/value pairs.

*/ inline void SetParameters(Aws::Map&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } /** *

A set of custom key/value pairs.

*/ inline Database& WithParameters(const Aws::Map& value) { SetParameters(value); return *this;} /** *

A set of custom key/value pairs.

*/ inline Database& WithParameters(Aws::Map&& value) { SetParameters(std::move(value)); return *this;} /** *

A set of custom key/value pairs.

*/ inline Database& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } /** *

A set of custom key/value pairs.

*/ inline Database& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } /** *

A set of custom key/value pairs.

*/ inline Database& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

A set of custom key/value pairs.

*/ inline Database& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; } /** *

A set of custom key/value pairs.

*/ inline Database& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

A set of custom key/value pairs.

*/ inline Database& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } /** *

A set of custom key/value pairs.

*/ inline Database& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Map m_parameters; bool m_parametersHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws