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

A structure used to define a table.

See Also:

AWS API * Reference

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

The table name. For Hive compatibility, this is folded to lowercase when it * is stored.

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

The table name. For Hive compatibility, this is folded to lowercase when it * is stored.

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

The table name. For Hive compatibility, this is folded to lowercase when it * is stored.

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

The table name. For Hive compatibility, this is folded to lowercase when it * is stored.

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

The table name. For Hive compatibility, this is folded to lowercase when it * is stored.

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

The table name. For Hive compatibility, this is folded to lowercase when it * is stored.

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

The table name. For Hive compatibility, this is folded to lowercase when it * is stored.

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

The table name. For Hive compatibility, this is folded to lowercase when it * is stored.

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

A description of the table.

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

A description of the table.

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

A description of the table.

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

A description of the table.

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

A description of the table.

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

A description of the table.

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

A description of the table.

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

A description of the table.

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

The table owner. Included for Apache Hive compatibility. Not used in the * normal course of Glue operations.

*/ inline const Aws::String& GetOwner() const{ return m_owner; } /** *

The table owner. Included for Apache Hive compatibility. Not used in the * normal course of Glue operations.

*/ inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; } /** *

The table owner. Included for Apache Hive compatibility. Not used in the * normal course of Glue operations.

*/ inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; } /** *

The table owner. Included for Apache Hive compatibility. Not used in the * normal course of Glue operations.

*/ inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); } /** *

The table owner. Included for Apache Hive compatibility. Not used in the * normal course of Glue operations.

*/ inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); } /** *

The table owner. Included for Apache Hive compatibility. Not used in the * normal course of Glue operations.

*/ inline TableInput& WithOwner(const Aws::String& value) { SetOwner(value); return *this;} /** *

The table owner. Included for Apache Hive compatibility. Not used in the * normal course of Glue operations.

*/ inline TableInput& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;} /** *

The table owner. Included for Apache Hive compatibility. Not used in the * normal course of Glue operations.

*/ inline TableInput& WithOwner(const char* value) { SetOwner(value); return *this;} /** *

The last time that the table was accessed.

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

The last time that the table was accessed.

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

The last time that the table was accessed.

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

The last time that the table was accessed.

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

The last time that the table was accessed.

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

The last time that the table was accessed.

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

The last time that column statistics were computed for this table.

*/ inline const Aws::Utils::DateTime& GetLastAnalyzedTime() const{ return m_lastAnalyzedTime; } /** *

The last time that column statistics were computed for this table.

*/ inline bool LastAnalyzedTimeHasBeenSet() const { return m_lastAnalyzedTimeHasBeenSet; } /** *

The last time that column statistics were computed for this table.

*/ inline void SetLastAnalyzedTime(const Aws::Utils::DateTime& value) { m_lastAnalyzedTimeHasBeenSet = true; m_lastAnalyzedTime = value; } /** *

The last time that column statistics were computed for this table.

*/ inline void SetLastAnalyzedTime(Aws::Utils::DateTime&& value) { m_lastAnalyzedTimeHasBeenSet = true; m_lastAnalyzedTime = std::move(value); } /** *

The last time that column statistics were computed for this table.

*/ inline TableInput& WithLastAnalyzedTime(const Aws::Utils::DateTime& value) { SetLastAnalyzedTime(value); return *this;} /** *

The last time that column statistics were computed for this table.

*/ inline TableInput& WithLastAnalyzedTime(Aws::Utils::DateTime&& value) { SetLastAnalyzedTime(std::move(value)); return *this;} /** *

The retention time for this table.

*/ inline int GetRetention() const{ return m_retention; } /** *

The retention time for this table.

*/ inline bool RetentionHasBeenSet() const { return m_retentionHasBeenSet; } /** *

The retention time for this table.

*/ inline void SetRetention(int value) { m_retentionHasBeenSet = true; m_retention = value; } /** *

The retention time for this table.

*/ inline TableInput& WithRetention(int value) { SetRetention(value); return *this;} /** *

A storage descriptor containing information about the physical storage of * this table.

*/ inline const StorageDescriptor& GetStorageDescriptor() const{ return m_storageDescriptor; } /** *

A storage descriptor containing information about the physical storage of * this table.

*/ inline bool StorageDescriptorHasBeenSet() const { return m_storageDescriptorHasBeenSet; } /** *

A storage descriptor containing information about the physical storage of * this table.

*/ inline void SetStorageDescriptor(const StorageDescriptor& value) { m_storageDescriptorHasBeenSet = true; m_storageDescriptor = value; } /** *

A storage descriptor containing information about the physical storage of * this table.

*/ inline void SetStorageDescriptor(StorageDescriptor&& value) { m_storageDescriptorHasBeenSet = true; m_storageDescriptor = std::move(value); } /** *

A storage descriptor containing information about the physical storage of * this table.

*/ inline TableInput& WithStorageDescriptor(const StorageDescriptor& value) { SetStorageDescriptor(value); return *this;} /** *

A storage descriptor containing information about the physical storage of * this table.

*/ inline TableInput& WithStorageDescriptor(StorageDescriptor&& value) { SetStorageDescriptor(std::move(value)); return *this;} /** *

A list of columns by which the table is partitioned. Only primitive types are * supported as partition keys.

When you create a table used by Amazon * Athena, and you do not specify any partitionKeys, you must at least * set the value of partitionKeys to an empty list. For example:

*

"PartitionKeys": []

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

A list of columns by which the table is partitioned. Only primitive types are * supported as partition keys.

When you create a table used by Amazon * Athena, and you do not specify any partitionKeys, you must at least * set the value of partitionKeys to an empty list. For example:

*

"PartitionKeys": []

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

A list of columns by which the table is partitioned. Only primitive types are * supported as partition keys.

When you create a table used by Amazon * Athena, and you do not specify any partitionKeys, you must at least * set the value of partitionKeys to an empty list. For example:

*

"PartitionKeys": []

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

A list of columns by which the table is partitioned. Only primitive types are * supported as partition keys.

When you create a table used by Amazon * Athena, and you do not specify any partitionKeys, you must at least * set the value of partitionKeys to an empty list. For example:

*

"PartitionKeys": []

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

A list of columns by which the table is partitioned. Only primitive types are * supported as partition keys.

When you create a table used by Amazon * Athena, and you do not specify any partitionKeys, you must at least * set the value of partitionKeys to an empty list. For example:

*

"PartitionKeys": []

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

A list of columns by which the table is partitioned. Only primitive types are * supported as partition keys.

When you create a table used by Amazon * Athena, and you do not specify any partitionKeys, you must at least * set the value of partitionKeys to an empty list. For example:

*

"PartitionKeys": []

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

A list of columns by which the table is partitioned. Only primitive types are * supported as partition keys.

When you create a table used by Amazon * Athena, and you do not specify any partitionKeys, you must at least * set the value of partitionKeys to an empty list. For example:

*

"PartitionKeys": []

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

A list of columns by which the table is partitioned. Only primitive types are * supported as partition keys.

When you create a table used by Amazon * Athena, and you do not specify any partitionKeys, you must at least * set the value of partitionKeys to an empty list. For example:

*

"PartitionKeys": []

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

Included for Apache Hive compatibility. Not used in the normal course of Glue * operations. If the table is a VIRTUAL_VIEW, certain Athena * configuration encoded in base64.

*/ inline const Aws::String& GetViewOriginalText() const{ return m_viewOriginalText; } /** *

Included for Apache Hive compatibility. Not used in the normal course of Glue * operations. If the table is a VIRTUAL_VIEW, certain Athena * configuration encoded in base64.

*/ inline bool ViewOriginalTextHasBeenSet() const { return m_viewOriginalTextHasBeenSet; } /** *

Included for Apache Hive compatibility. Not used in the normal course of Glue * operations. If the table is a VIRTUAL_VIEW, certain Athena * configuration encoded in base64.

*/ inline void SetViewOriginalText(const Aws::String& value) { m_viewOriginalTextHasBeenSet = true; m_viewOriginalText = value; } /** *

Included for Apache Hive compatibility. Not used in the normal course of Glue * operations. If the table is a VIRTUAL_VIEW, certain Athena * configuration encoded in base64.

*/ inline void SetViewOriginalText(Aws::String&& value) { m_viewOriginalTextHasBeenSet = true; m_viewOriginalText = std::move(value); } /** *

Included for Apache Hive compatibility. Not used in the normal course of Glue * operations. If the table is a VIRTUAL_VIEW, certain Athena * configuration encoded in base64.

*/ inline void SetViewOriginalText(const char* value) { m_viewOriginalTextHasBeenSet = true; m_viewOriginalText.assign(value); } /** *

Included for Apache Hive compatibility. Not used in the normal course of Glue * operations. If the table is a VIRTUAL_VIEW, certain Athena * configuration encoded in base64.

*/ inline TableInput& WithViewOriginalText(const Aws::String& value) { SetViewOriginalText(value); return *this;} /** *

Included for Apache Hive compatibility. Not used in the normal course of Glue * operations. If the table is a VIRTUAL_VIEW, certain Athena * configuration encoded in base64.

*/ inline TableInput& WithViewOriginalText(Aws::String&& value) { SetViewOriginalText(std::move(value)); return *this;} /** *

Included for Apache Hive compatibility. Not used in the normal course of Glue * operations. If the table is a VIRTUAL_VIEW, certain Athena * configuration encoded in base64.

*/ inline TableInput& WithViewOriginalText(const char* value) { SetViewOriginalText(value); return *this;} /** *

Included for Apache Hive compatibility. Not used in the normal course of Glue * operations.

*/ inline const Aws::String& GetViewExpandedText() const{ return m_viewExpandedText; } /** *

Included for Apache Hive compatibility. Not used in the normal course of Glue * operations.

*/ inline bool ViewExpandedTextHasBeenSet() const { return m_viewExpandedTextHasBeenSet; } /** *

Included for Apache Hive compatibility. Not used in the normal course of Glue * operations.

*/ inline void SetViewExpandedText(const Aws::String& value) { m_viewExpandedTextHasBeenSet = true; m_viewExpandedText = value; } /** *

Included for Apache Hive compatibility. Not used in the normal course of Glue * operations.

*/ inline void SetViewExpandedText(Aws::String&& value) { m_viewExpandedTextHasBeenSet = true; m_viewExpandedText = std::move(value); } /** *

Included for Apache Hive compatibility. Not used in the normal course of Glue * operations.

*/ inline void SetViewExpandedText(const char* value) { m_viewExpandedTextHasBeenSet = true; m_viewExpandedText.assign(value); } /** *

Included for Apache Hive compatibility. Not used in the normal course of Glue * operations.

*/ inline TableInput& WithViewExpandedText(const Aws::String& value) { SetViewExpandedText(value); return *this;} /** *

Included for Apache Hive compatibility. Not used in the normal course of Glue * operations.

*/ inline TableInput& WithViewExpandedText(Aws::String&& value) { SetViewExpandedText(std::move(value)); return *this;} /** *

Included for Apache Hive compatibility. Not used in the normal course of Glue * operations.

*/ inline TableInput& WithViewExpandedText(const char* value) { SetViewExpandedText(value); return *this;} /** *

The type of this table. Glue will create tables with the * EXTERNAL_TABLE type. Other services, such as Athena, may create * tables with additional table types.

Glue related table types:

*
EXTERNAL_TABLE

Hive compatible attribute - indicates a non-Hive * managed table.

GOVERNED

Used by Lake Formation. The * Glue Data Catalog understands GOVERNED.

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

The type of this table. Glue will create tables with the * EXTERNAL_TABLE type. Other services, such as Athena, may create * tables with additional table types.

Glue related table types:

*
EXTERNAL_TABLE

Hive compatible attribute - indicates a non-Hive * managed table.

GOVERNED

Used by Lake Formation. The * Glue Data Catalog understands GOVERNED.

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

The type of this table. Glue will create tables with the * EXTERNAL_TABLE type. Other services, such as Athena, may create * tables with additional table types.

Glue related table types:

*
EXTERNAL_TABLE

Hive compatible attribute - indicates a non-Hive * managed table.

GOVERNED

Used by Lake Formation. The * Glue Data Catalog understands GOVERNED.

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

The type of this table. Glue will create tables with the * EXTERNAL_TABLE type. Other services, such as Athena, may create * tables with additional table types.

Glue related table types:

*
EXTERNAL_TABLE

Hive compatible attribute - indicates a non-Hive * managed table.

GOVERNED

Used by Lake Formation. The * Glue Data Catalog understands GOVERNED.

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

The type of this table. Glue will create tables with the * EXTERNAL_TABLE type. Other services, such as Athena, may create * tables with additional table types.

Glue related table types:

*
EXTERNAL_TABLE

Hive compatible attribute - indicates a non-Hive * managed table.

GOVERNED

Used by Lake Formation. The * Glue Data Catalog understands GOVERNED.

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

The type of this table. Glue will create tables with the * EXTERNAL_TABLE type. Other services, such as Athena, may create * tables with additional table types.

Glue related table types:

*
EXTERNAL_TABLE

Hive compatible attribute - indicates a non-Hive * managed table.

GOVERNED

Used by Lake Formation. The * Glue Data Catalog understands GOVERNED.

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

The type of this table. Glue will create tables with the * EXTERNAL_TABLE type. Other services, such as Athena, may create * tables with additional table types.

Glue related table types:

*
EXTERNAL_TABLE

Hive compatible attribute - indicates a non-Hive * managed table.

GOVERNED

Used by Lake Formation. The * Glue Data Catalog understands GOVERNED.

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

The type of this table. Glue will create tables with the * EXTERNAL_TABLE type. Other services, such as Athena, may create * tables with additional table types.

Glue related table types:

*
EXTERNAL_TABLE

Hive compatible attribute - indicates a non-Hive * managed table.

GOVERNED

Used by Lake Formation. The * Glue Data Catalog understands GOVERNED.

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

These key-value pairs define properties associated with the table.

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

These key-value pairs define properties associated with the table.

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

These key-value pairs define properties associated with the table.

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

These key-value pairs define properties associated with the table.

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

These key-value pairs define properties associated with the table.

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

These key-value pairs define properties associated with the table.

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

These key-value pairs define properties associated with the table.

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

These key-value pairs define properties associated with the table.

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

These key-value pairs define properties associated with the table.

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

These key-value pairs define properties associated with the table.

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

These key-value pairs define properties associated with the table.

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

These key-value pairs define properties associated with the table.

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

These key-value pairs define properties associated with the table.

*/ inline TableInput& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } /** *

A TableIdentifier structure that describes a target table for * resource linking.

*/ inline const TableIdentifier& GetTargetTable() const{ return m_targetTable; } /** *

A TableIdentifier structure that describes a target table for * resource linking.

*/ inline bool TargetTableHasBeenSet() const { return m_targetTableHasBeenSet; } /** *

A TableIdentifier structure that describes a target table for * resource linking.

*/ inline void SetTargetTable(const TableIdentifier& value) { m_targetTableHasBeenSet = true; m_targetTable = value; } /** *

A TableIdentifier structure that describes a target table for * resource linking.

*/ inline void SetTargetTable(TableIdentifier&& value) { m_targetTableHasBeenSet = true; m_targetTable = std::move(value); } /** *

A TableIdentifier structure that describes a target table for * resource linking.

*/ inline TableInput& WithTargetTable(const TableIdentifier& value) { SetTargetTable(value); return *this;} /** *

A TableIdentifier structure that describes a target table for * resource linking.

*/ inline TableInput& WithTargetTable(TableIdentifier&& value) { SetTargetTable(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_owner; bool m_ownerHasBeenSet = false; Aws::Utils::DateTime m_lastAccessTime; bool m_lastAccessTimeHasBeenSet = false; Aws::Utils::DateTime m_lastAnalyzedTime; bool m_lastAnalyzedTimeHasBeenSet = false; int m_retention; bool m_retentionHasBeenSet = false; StorageDescriptor m_storageDescriptor; bool m_storageDescriptorHasBeenSet = false; Aws::Vector m_partitionKeys; bool m_partitionKeysHasBeenSet = false; Aws::String m_viewOriginalText; bool m_viewOriginalTextHasBeenSet = false; Aws::String m_viewExpandedText; bool m_viewExpandedTextHasBeenSet = false; Aws::String m_tableType; bool m_tableTypeHasBeenSet = false; Aws::Map m_parameters; bool m_parametersHasBeenSet = false; TableIdentifier m_targetTable; bool m_targetTableHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws