/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Glue { namespace Model { /** */ class CreatePartitionIndexRequest : public GlueRequest { public: AWS_GLUE_API CreatePartitionIndexRequest(); // 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 "CreatePartitionIndex"; } AWS_GLUE_API Aws::String SerializePayload() const override; AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The catalog ID where the table resides.

*/ inline const Aws::String& GetCatalogId() const{ return m_catalogId; } /** *

The catalog ID where the table resides.

*/ inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; } /** *

The catalog ID where the table resides.

*/ inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; } /** *

The catalog ID where the table resides.

*/ inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); } /** *

The catalog ID where the table resides.

*/ inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); } /** *

The catalog ID where the table resides.

*/ inline CreatePartitionIndexRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;} /** *

The catalog ID where the table resides.

*/ inline CreatePartitionIndexRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;} /** *

The catalog ID where the table resides.

*/ inline CreatePartitionIndexRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;} /** *

Specifies the name of a database in which you want to create a partition * index.

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

Specifies the name of a database in which you want to create a partition * index.

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

Specifies the name of a database in which you want to create a partition * index.

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

Specifies the name of a database in which you want to create a partition * index.

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

Specifies the name of a database in which you want to create a partition * index.

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

Specifies the name of a database in which you want to create a partition * index.

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

Specifies the name of a database in which you want to create a partition * index.

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

Specifies the name of a database in which you want to create a partition * index.

*/ inline CreatePartitionIndexRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;} /** *

Specifies the name of a table in which you want to create a partition * index.

*/ inline const Aws::String& GetTableName() const{ return m_tableName; } /** *

Specifies the name of a table in which you want to create a partition * index.

*/ inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; } /** *

Specifies the name of a table in which you want to create a partition * index.

*/ inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; } /** *

Specifies the name of a table in which you want to create a partition * index.

*/ inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); } /** *

Specifies the name of a table in which you want to create a partition * index.

*/ inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); } /** *

Specifies the name of a table in which you want to create a partition * index.

*/ inline CreatePartitionIndexRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;} /** *

Specifies the name of a table in which you want to create a partition * index.

*/ inline CreatePartitionIndexRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;} /** *

Specifies the name of a table in which you want to create a partition * index.

*/ inline CreatePartitionIndexRequest& WithTableName(const char* value) { SetTableName(value); return *this;} /** *

Specifies a PartitionIndex structure to create a partition index * in an existing table.

*/ inline const PartitionIndex& GetPartitionIndex() const{ return m_partitionIndex; } /** *

Specifies a PartitionIndex structure to create a partition index * in an existing table.

*/ inline bool PartitionIndexHasBeenSet() const { return m_partitionIndexHasBeenSet; } /** *

Specifies a PartitionIndex structure to create a partition index * in an existing table.

*/ inline void SetPartitionIndex(const PartitionIndex& value) { m_partitionIndexHasBeenSet = true; m_partitionIndex = value; } /** *

Specifies a PartitionIndex structure to create a partition index * in an existing table.

*/ inline void SetPartitionIndex(PartitionIndex&& value) { m_partitionIndexHasBeenSet = true; m_partitionIndex = std::move(value); } /** *

Specifies a PartitionIndex structure to create a partition index * in an existing table.

*/ inline CreatePartitionIndexRequest& WithPartitionIndex(const PartitionIndex& value) { SetPartitionIndex(value); return *this;} /** *

Specifies a PartitionIndex structure to create a partition index * in an existing table.

*/ inline CreatePartitionIndexRequest& WithPartitionIndex(PartitionIndex&& value) { SetPartitionIndex(std::move(value)); return *this;} private: Aws::String m_catalogId; bool m_catalogIdHasBeenSet = false; Aws::String m_databaseName; bool m_databaseNameHasBeenSet = false; Aws::String m_tableName; bool m_tableNameHasBeenSet = false; PartitionIndex m_partitionIndex; bool m_partitionIndexHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws