/** * 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 Athena { namespace Model { /** */ class ListTableMetadataRequest : public AthenaRequest { public: AWS_ATHENA_API ListTableMetadataRequest(); // 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 "ListTableMetadata"; } AWS_ATHENA_API Aws::String SerializePayload() const override; AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the data catalog for which table metadata should be returned.

*/ inline const Aws::String& GetCatalogName() const{ return m_catalogName; } /** *

The name of the data catalog for which table metadata should be returned.

*/ inline bool CatalogNameHasBeenSet() const { return m_catalogNameHasBeenSet; } /** *

The name of the data catalog for which table metadata should be returned.

*/ inline void SetCatalogName(const Aws::String& value) { m_catalogNameHasBeenSet = true; m_catalogName = value; } /** *

The name of the data catalog for which table metadata should be returned.

*/ inline void SetCatalogName(Aws::String&& value) { m_catalogNameHasBeenSet = true; m_catalogName = std::move(value); } /** *

The name of the data catalog for which table metadata should be returned.

*/ inline void SetCatalogName(const char* value) { m_catalogNameHasBeenSet = true; m_catalogName.assign(value); } /** *

The name of the data catalog for which table metadata should be returned.

*/ inline ListTableMetadataRequest& WithCatalogName(const Aws::String& value) { SetCatalogName(value); return *this;} /** *

The name of the data catalog for which table metadata should be returned.

*/ inline ListTableMetadataRequest& WithCatalogName(Aws::String&& value) { SetCatalogName(std::move(value)); return *this;} /** *

The name of the data catalog for which table metadata should be returned.

*/ inline ListTableMetadataRequest& WithCatalogName(const char* value) { SetCatalogName(value); return *this;} /** *

The name of the database for which table metadata should be returned.

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

The name of the database for which table metadata should be returned.

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

The name of the database for which table metadata should be returned.

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

The name of the database for which table metadata should be returned.

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

The name of the database for which table metadata should be returned.

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

The name of the database for which table metadata should be returned.

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

The name of the database for which table metadata should be returned.

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

The name of the database for which table metadata should be returned.

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

A regex filter that pattern-matches table names. If no expression is * supplied, metadata for all tables are listed.

*/ inline const Aws::String& GetExpression() const{ return m_expression; } /** *

A regex filter that pattern-matches table names. If no expression is * supplied, metadata for all tables are listed.

*/ inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; } /** *

A regex filter that pattern-matches table names. If no expression is * supplied, metadata for all tables are listed.

*/ inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; } /** *

A regex filter that pattern-matches table names. If no expression is * supplied, metadata for all tables are listed.

*/ inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); } /** *

A regex filter that pattern-matches table names. If no expression is * supplied, metadata for all tables are listed.

*/ inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); } /** *

A regex filter that pattern-matches table names. If no expression is * supplied, metadata for all tables are listed.

*/ inline ListTableMetadataRequest& WithExpression(const Aws::String& value) { SetExpression(value); return *this;} /** *

A regex filter that pattern-matches table names. If no expression is * supplied, metadata for all tables are listed.

*/ inline ListTableMetadataRequest& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;} /** *

A regex filter that pattern-matches table names. If no expression is * supplied, metadata for all tables are listed.

*/ inline ListTableMetadataRequest& WithExpression(const char* value) { SetExpression(value); return *this;} /** *

A token generated by the Athena service that specifies where to continue * pagination if a previous request was truncated. To obtain the next set of pages, * pass in the NextToken from the response object of the previous page call.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

A token generated by the Athena service that specifies where to continue * pagination if a previous request was truncated. To obtain the next set of pages, * pass in the NextToken from the response object of the previous page call.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

A token generated by the Athena service that specifies where to continue * pagination if a previous request was truncated. To obtain the next set of pages, * pass in the NextToken from the response object of the previous page call.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

A token generated by the Athena service that specifies where to continue * pagination if a previous request was truncated. To obtain the next set of pages, * pass in the NextToken from the response object of the previous page call.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

A token generated by the Athena service that specifies where to continue * pagination if a previous request was truncated. To obtain the next set of pages, * pass in the NextToken from the response object of the previous page call.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

A token generated by the Athena service that specifies where to continue * pagination if a previous request was truncated. To obtain the next set of pages, * pass in the NextToken from the response object of the previous page call.

*/ inline ListTableMetadataRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

A token generated by the Athena service that specifies where to continue * pagination if a previous request was truncated. To obtain the next set of pages, * pass in the NextToken from the response object of the previous page call.

*/ inline ListTableMetadataRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

A token generated by the Athena service that specifies where to continue * pagination if a previous request was truncated. To obtain the next set of pages, * pass in the NextToken from the response object of the previous page call.

*/ inline ListTableMetadataRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

Specifies the maximum number of results to return.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

Specifies the maximum number of results to return.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

Specifies the maximum number of results to return.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

Specifies the maximum number of results to return.

*/ inline ListTableMetadataRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_catalogName; bool m_catalogNameHasBeenSet = false; Aws::String m_databaseName; bool m_databaseNameHasBeenSet = false; Aws::String m_expression; bool m_expressionHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws