/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains metadata for a table.See Also:
AWS
* API Reference
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.
The type of table. In Athena, only EXTERNAL_TABLE
is
* supported.
The type of table. In Athena, only EXTERNAL_TABLE
is
* supported.
The type of table. In Athena, only EXTERNAL_TABLE
is
* supported.
The type of table. In Athena, only EXTERNAL_TABLE
is
* supported.
The type of table. In Athena, only EXTERNAL_TABLE
is
* supported.
The type of table. In Athena, only EXTERNAL_TABLE
is
* supported.
The type of table. In Athena, only EXTERNAL_TABLE
is
* supported.
A list of the columns in the table.
*/ inline const Aws::VectorA 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::VectorA list of the columns in the table.
*/ inline void SetColumns(Aws::VectorA list of the columns in the table.
*/ inline TableMetadata& WithColumns(const Aws::VectorA list of the columns in the table.
*/ inline TableMetadata& WithColumns(Aws::VectorA 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::VectorA 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::VectorA list of the partition keys in the table.
*/ inline void SetPartitionKeys(Aws::VectorA list of the partition keys in the table.
*/ inline TableMetadata& WithPartitionKeys(const Aws::VectorA list of the partition keys in the table.
*/ inline TableMetadata& WithPartitionKeys(Aws::VectorA 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::MapA 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::MapA set of custom key/value pairs for table properties.
*/ inline void SetParameters(Aws::MapA set of custom key/value pairs for table properties.
*/ inline TableMetadata& WithParameters(const Aws::MapA set of custom key/value pairs for table properties.
*/ inline TableMetadata& WithParameters(Aws::MapA 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