/** * 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 Http { class URI; } //namespace Http namespace Honeycode { namespace Model { /** */ class ListTablesRequest : public HoneycodeRequest { public: AWS_HONEYCODE_API ListTablesRequest(); // 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 "ListTables"; } AWS_HONEYCODE_API Aws::String SerializePayload() const override; AWS_HONEYCODE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The ID of the workbook whose tables are being retrieved.

If a * workbook with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline const Aws::String& GetWorkbookId() const{ return m_workbookId; } /** *

The ID of the workbook whose tables are being retrieved.

If a * workbook with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline bool WorkbookIdHasBeenSet() const { return m_workbookIdHasBeenSet; } /** *

The ID of the workbook whose tables are being retrieved.

If a * workbook with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline void SetWorkbookId(const Aws::String& value) { m_workbookIdHasBeenSet = true; m_workbookId = value; } /** *

The ID of the workbook whose tables are being retrieved.

If a * workbook with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline void SetWorkbookId(Aws::String&& value) { m_workbookIdHasBeenSet = true; m_workbookId = std::move(value); } /** *

The ID of the workbook whose tables are being retrieved.

If a * workbook with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline void SetWorkbookId(const char* value) { m_workbookIdHasBeenSet = true; m_workbookId.assign(value); } /** *

The ID of the workbook whose tables are being retrieved.

If a * workbook with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline ListTablesRequest& WithWorkbookId(const Aws::String& value) { SetWorkbookId(value); return *this;} /** *

The ID of the workbook whose tables are being retrieved.

If a * workbook with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline ListTablesRequest& WithWorkbookId(Aws::String&& value) { SetWorkbookId(std::move(value)); return *this;} /** *

The ID of the workbook whose tables are being retrieved.

If a * workbook with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline ListTablesRequest& WithWorkbookId(const char* value) { SetWorkbookId(value); return *this;} /** *

The maximum number of tables to return in each page of the results.

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

The maximum number of tables to return in each page of the results.

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

The maximum number of tables to return in each page of the results.

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

The maximum number of tables to return in each page of the results.

*/ inline ListTablesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

This parameter is optional. If a nextToken is not specified, the API returns * the first page of data.

Pagination tokens expire after 1 hour. If you * use a token that was returned more than an hour back, the API will throw * ValidationException.

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

This parameter is optional. If a nextToken is not specified, the API returns * the first page of data.

Pagination tokens expire after 1 hour. If you * use a token that was returned more than an hour back, the API will throw * ValidationException.

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

This parameter is optional. If a nextToken is not specified, the API returns * the first page of data.

Pagination tokens expire after 1 hour. If you * use a token that was returned more than an hour back, the API will throw * ValidationException.

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

This parameter is optional. If a nextToken is not specified, the API returns * the first page of data.

Pagination tokens expire after 1 hour. If you * use a token that was returned more than an hour back, the API will throw * ValidationException.

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

This parameter is optional. If a nextToken is not specified, the API returns * the first page of data.

Pagination tokens expire after 1 hour. If you * use a token that was returned more than an hour back, the API will throw * ValidationException.

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

This parameter is optional. If a nextToken is not specified, the API returns * the first page of data.

Pagination tokens expire after 1 hour. If you * use a token that was returned more than an hour back, the API will throw * ValidationException.

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

This parameter is optional. If a nextToken is not specified, the API returns * the first page of data.

Pagination tokens expire after 1 hour. If you * use a token that was returned more than an hour back, the API will throw * ValidationException.

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

This parameter is optional. If a nextToken is not specified, the API returns * the first page of data.

Pagination tokens expire after 1 hour. If you * use a token that was returned more than an hour back, the API will throw * ValidationException.

*/ inline ListTablesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_workbookId; bool m_workbookIdHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace Honeycode } // namespace Aws