/** * 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 Honeycode { namespace Model { /** */ class ListTableRowsRequest : public HoneycodeRequest { public: AWS_HONEYCODE_API ListTableRowsRequest(); // 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 "ListTableRows"; } AWS_HONEYCODE_API Aws::String SerializePayload() const override; /** *

The ID of the workbook that contains the table whose rows 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 that contains the table whose rows 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 that contains the table whose rows 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 that contains the table whose rows 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 that contains the table whose rows 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 that contains the table whose rows are being * retrieved.

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

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

The ID of the workbook that contains the table whose rows are being * retrieved.

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

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

The ID of the workbook that contains the table whose rows are being * retrieved.

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

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

The ID of the table whose rows are being retrieved.

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

*/ inline const Aws::String& GetTableId() const{ return m_tableId; } /** *

The ID of the table whose rows are being retrieved.

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

*/ inline bool TableIdHasBeenSet() const { return m_tableIdHasBeenSet; } /** *

The ID of the table whose rows are being retrieved.

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

*/ inline void SetTableId(const Aws::String& value) { m_tableIdHasBeenSet = true; m_tableId = value; } /** *

The ID of the table whose rows are being retrieved.

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

*/ inline void SetTableId(Aws::String&& value) { m_tableIdHasBeenSet = true; m_tableId = std::move(value); } /** *

The ID of the table whose rows are being retrieved.

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

*/ inline void SetTableId(const char* value) { m_tableIdHasBeenSet = true; m_tableId.assign(value); } /** *

The ID of the table whose rows are being retrieved.

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

*/ inline ListTableRowsRequest& WithTableId(const Aws::String& value) { SetTableId(value); return *this;} /** *

The ID of the table whose rows are being retrieved.

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

*/ inline ListTableRowsRequest& WithTableId(Aws::String&& value) { SetTableId(std::move(value)); return *this;} /** *

The ID of the table whose rows are being retrieved.

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

*/ inline ListTableRowsRequest& WithTableId(const char* value) { SetTableId(value); return *this;} /** *

This parameter is optional. If one or more row ids are specified in this * list, then only the specified row ids are returned in the result. If no row ids * are specified here, then all the rows in the table are returned.

*/ inline const Aws::Vector& GetRowIds() const{ return m_rowIds; } /** *

This parameter is optional. If one or more row ids are specified in this * list, then only the specified row ids are returned in the result. If no row ids * are specified here, then all the rows in the table are returned.

*/ inline bool RowIdsHasBeenSet() const { return m_rowIdsHasBeenSet; } /** *

This parameter is optional. If one or more row ids are specified in this * list, then only the specified row ids are returned in the result. If no row ids * are specified here, then all the rows in the table are returned.

*/ inline void SetRowIds(const Aws::Vector& value) { m_rowIdsHasBeenSet = true; m_rowIds = value; } /** *

This parameter is optional. If one or more row ids are specified in this * list, then only the specified row ids are returned in the result. If no row ids * are specified here, then all the rows in the table are returned.

*/ inline void SetRowIds(Aws::Vector&& value) { m_rowIdsHasBeenSet = true; m_rowIds = std::move(value); } /** *

This parameter is optional. If one or more row ids are specified in this * list, then only the specified row ids are returned in the result. If no row ids * are specified here, then all the rows in the table are returned.

*/ inline ListTableRowsRequest& WithRowIds(const Aws::Vector& value) { SetRowIds(value); return *this;} /** *

This parameter is optional. If one or more row ids are specified in this * list, then only the specified row ids are returned in the result. If no row ids * are specified here, then all the rows in the table are returned.

*/ inline ListTableRowsRequest& WithRowIds(Aws::Vector&& value) { SetRowIds(std::move(value)); return *this;} /** *

This parameter is optional. If one or more row ids are specified in this * list, then only the specified row ids are returned in the result. If no row ids * are specified here, then all the rows in the table are returned.

*/ inline ListTableRowsRequest& AddRowIds(const Aws::String& value) { m_rowIdsHasBeenSet = true; m_rowIds.push_back(value); return *this; } /** *

This parameter is optional. If one or more row ids are specified in this * list, then only the specified row ids are returned in the result. If no row ids * are specified here, then all the rows in the table are returned.

*/ inline ListTableRowsRequest& AddRowIds(Aws::String&& value) { m_rowIdsHasBeenSet = true; m_rowIds.push_back(std::move(value)); return *this; } /** *

This parameter is optional. If one or more row ids are specified in this * list, then only the specified row ids are returned in the result. If no row ids * are specified here, then all the rows in the table are returned.

*/ inline ListTableRowsRequest& AddRowIds(const char* value) { m_rowIdsHasBeenSet = true; m_rowIds.push_back(value); return *this; } /** *

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

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

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

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

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

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

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

*/ inline ListTableRowsRequest& 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 ListTableRowsRequest& 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 ListTableRowsRequest& 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 ListTableRowsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_workbookId; bool m_workbookIdHasBeenSet = false; Aws::String m_tableId; bool m_tableIdHasBeenSet = false; Aws::Vector m_rowIds; bool m_rowIdsHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace Honeycode } // namespace Aws