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

Contains metadata for a table.

See Also:

AWS * API Reference

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

The name of the table.

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

The name of the table.

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

The name of the table.

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

The name of the table.

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

The name of the table.

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

The name of the table.

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

The name of the table.

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

The name of the table.

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

The time that the table was created.

*/ inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; } /** *

The time that the table was created.

*/ inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; } /** *

The time that the table was created.

*/ inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; } /** *

The time that the table was created.

*/ inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); } /** *

The time that the table was created.

*/ inline TableMetadata& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;} /** *

The time that the table was created.

*/ inline TableMetadata& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;} /** *

The last time the table was accessed.

*/ inline const Aws::Utils::DateTime& GetLastAccessTime() const{ return m_lastAccessTime; } /** *

The last time the table was accessed.

*/ inline bool LastAccessTimeHasBeenSet() const { return m_lastAccessTimeHasBeenSet; } /** *

The last time the table was accessed.

*/ inline void SetLastAccessTime(const Aws::Utils::DateTime& value) { m_lastAccessTimeHasBeenSet = true; m_lastAccessTime = value; } /** *

The last time the table was accessed.

*/ inline void SetLastAccessTime(Aws::Utils::DateTime&& value) { m_lastAccessTimeHasBeenSet = true; m_lastAccessTime = std::move(value); } /** *

The last time the table was accessed.

*/ inline TableMetadata& WithLastAccessTime(const Aws::Utils::DateTime& value) { SetLastAccessTime(value); return *this;} /** *

The last time the table was accessed.

*/ inline TableMetadata& WithLastAccessTime(Aws::Utils::DateTime&& value) { SetLastAccessTime(std::move(value)); return *this;} /** *

The type of table. In Athena, only EXTERNAL_TABLE is * supported.

*/ inline const Aws::String& GetTableType() const{ return m_tableType; } /** *

The type of table. In Athena, only EXTERNAL_TABLE is * supported.

*/ inline bool TableTypeHasBeenSet() const { return m_tableTypeHasBeenSet; } /** *

The type of table. In Athena, only EXTERNAL_TABLE is * supported.

*/ inline void SetTableType(const Aws::String& value) { m_tableTypeHasBeenSet = true; m_tableType = value; } /** *

The type of table. In Athena, only EXTERNAL_TABLE is * supported.

*/ inline void SetTableType(Aws::String&& value) { m_tableTypeHasBeenSet = true; m_tableType = std::move(value); } /** *

The type of table. In Athena, only EXTERNAL_TABLE is * supported.

*/ inline void SetTableType(const char* value) { m_tableTypeHasBeenSet = true; m_tableType.assign(value); } /** *

The type of table. In Athena, only EXTERNAL_TABLE is * supported.

*/ inline TableMetadata& WithTableType(const Aws::String& value) { SetTableType(value); return *this;} /** *

The type of table. In Athena, only EXTERNAL_TABLE is * supported.

*/ inline TableMetadata& WithTableType(Aws::String&& value) { SetTableType(std::move(value)); return *this;} /** *

The type of table. In Athena, only EXTERNAL_TABLE is * supported.

*/ inline TableMetadata& WithTableType(const char* value) { SetTableType(value); return *this;} /** *

A list of the columns in the table.

*/ inline const Aws::Vector& GetColumns() const{ return m_columns; } /** *

A list of the columns in the table.

*/ inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; } /** *

A list of the columns in the table.

*/ inline void SetColumns(const Aws::Vector& value) { m_columnsHasBeenSet = true; m_columns = value; } /** *

A list of the columns in the table.

*/ inline void SetColumns(Aws::Vector&& value) { m_columnsHasBeenSet = true; m_columns = std::move(value); } /** *

A list of the columns in the table.

*/ inline TableMetadata& WithColumns(const Aws::Vector& value) { SetColumns(value); return *this;} /** *

A list of the columns in the table.

*/ inline TableMetadata& WithColumns(Aws::Vector&& value) { SetColumns(std::move(value)); return *this;} /** *

A list of the columns in the table.

*/ inline TableMetadata& AddColumns(const Column& value) { m_columnsHasBeenSet = true; m_columns.push_back(value); return *this; } /** *

A list of the columns in the table.

*/ inline TableMetadata& AddColumns(Column&& value) { m_columnsHasBeenSet = true; m_columns.push_back(std::move(value)); return *this; } /** *

A list of the partition keys in the table.

*/ inline const Aws::Vector& GetPartitionKeys() const{ return m_partitionKeys; } /** *

A list of the partition keys in the table.

*/ inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; } /** *

A list of the partition keys in the table.

*/ inline void SetPartitionKeys(const Aws::Vector& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = value; } /** *

A list of the partition keys in the table.

*/ inline void SetPartitionKeys(Aws::Vector&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = std::move(value); } /** *

A list of the partition keys in the table.

*/ inline TableMetadata& WithPartitionKeys(const Aws::Vector& value) { SetPartitionKeys(value); return *this;} /** *

A list of the partition keys in the table.

*/ inline TableMetadata& WithPartitionKeys(Aws::Vector&& value) { SetPartitionKeys(std::move(value)); return *this;} /** *

A list of the partition keys in the table.

*/ inline TableMetadata& AddPartitionKeys(const Column& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.push_back(value); return *this; } /** *

A list of the partition keys in the table.

*/ inline TableMetadata& AddPartitionKeys(Column&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.push_back(std::move(value)); return *this; } /** *

A set of custom key/value pairs for table properties.

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

A set of custom key/value pairs for table properties.

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

A set of custom key/value pairs for table properties.

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

A set of custom key/value pairs for table properties.

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

A set of custom key/value pairs for table properties.

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

A set of custom key/value pairs for table properties.

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

A set of custom key/value pairs for table properties.

*/ inline TableMetadata& 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 for table properties.

*/ inline TableMetadata& 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 for table properties.

*/ inline TableMetadata& 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 for table properties.

*/ inline TableMetadata& 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 for table properties.

*/ inline TableMetadata& 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 for table properties.

*/ inline TableMetadata& 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 for table properties.

*/ inline TableMetadata& 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::Utils::DateTime m_createTime; bool m_createTimeHasBeenSet = false; Aws::Utils::DateTime m_lastAccessTime; bool m_lastAccessTimeHasBeenSet = false; Aws::String m_tableType; bool m_tableTypeHasBeenSet = false; Aws::Vector m_columns; bool m_columnsHasBeenSet = false; Aws::Vector m_partitionKeys; bool m_partitionKeysHasBeenSet = false; Aws::Map m_parameters; bool m_parametersHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws