/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Honeycode { namespace Model { /** */ class BatchUpdateTableRowsRequest : public HoneycodeRequest { public: AWS_HONEYCODE_API BatchUpdateTableRowsRequest(); // 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 "BatchUpdateTableRows"; } AWS_HONEYCODE_API Aws::String SerializePayload() const override; /** *

The ID of the workbook where the rows are being updated.

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 where the rows are being updated.

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 where the rows are being updated.

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 where the rows are being updated.

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 where the rows are being updated.

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 where the rows are being updated.

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

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

The ID of the workbook where the rows are being updated.

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

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

The ID of the workbook where the rows are being updated.

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

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

The ID of the table where the rows are being updated.

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 where the rows are being updated.

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 where the rows are being updated.

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 where the rows are being updated.

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 where the rows are being updated.

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 where the rows are being updated.

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

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

The ID of the table where the rows are being updated.

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

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

The ID of the table where the rows are being updated.

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

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

The list of rows to update in the table. Each item in this list needs to * contain the row id to update along with the map of column id to cell values for * each column in that row that needs to be updated. You need to specify at least * one row in this list, and for each row, you need to specify at least one column * to update.

Note that if one of the row or column ids in the request * does not exist in the table, then the request fails and no updates are made to * the table.

*/ inline const Aws::Vector& GetRowsToUpdate() const{ return m_rowsToUpdate; } /** *

The list of rows to update in the table. Each item in this list needs to * contain the row id to update along with the map of column id to cell values for * each column in that row that needs to be updated. You need to specify at least * one row in this list, and for each row, you need to specify at least one column * to update.

Note that if one of the row or column ids in the request * does not exist in the table, then the request fails and no updates are made to * the table.

*/ inline bool RowsToUpdateHasBeenSet() const { return m_rowsToUpdateHasBeenSet; } /** *

The list of rows to update in the table. Each item in this list needs to * contain the row id to update along with the map of column id to cell values for * each column in that row that needs to be updated. You need to specify at least * one row in this list, and for each row, you need to specify at least one column * to update.

Note that if one of the row or column ids in the request * does not exist in the table, then the request fails and no updates are made to * the table.

*/ inline void SetRowsToUpdate(const Aws::Vector& value) { m_rowsToUpdateHasBeenSet = true; m_rowsToUpdate = value; } /** *

The list of rows to update in the table. Each item in this list needs to * contain the row id to update along with the map of column id to cell values for * each column in that row that needs to be updated. You need to specify at least * one row in this list, and for each row, you need to specify at least one column * to update.

Note that if one of the row or column ids in the request * does not exist in the table, then the request fails and no updates are made to * the table.

*/ inline void SetRowsToUpdate(Aws::Vector&& value) { m_rowsToUpdateHasBeenSet = true; m_rowsToUpdate = std::move(value); } /** *

The list of rows to update in the table. Each item in this list needs to * contain the row id to update along with the map of column id to cell values for * each column in that row that needs to be updated. You need to specify at least * one row in this list, and for each row, you need to specify at least one column * to update.

Note that if one of the row or column ids in the request * does not exist in the table, then the request fails and no updates are made to * the table.

*/ inline BatchUpdateTableRowsRequest& WithRowsToUpdate(const Aws::Vector& value) { SetRowsToUpdate(value); return *this;} /** *

The list of rows to update in the table. Each item in this list needs to * contain the row id to update along with the map of column id to cell values for * each column in that row that needs to be updated. You need to specify at least * one row in this list, and for each row, you need to specify at least one column * to update.

Note that if one of the row or column ids in the request * does not exist in the table, then the request fails and no updates are made to * the table.

*/ inline BatchUpdateTableRowsRequest& WithRowsToUpdate(Aws::Vector&& value) { SetRowsToUpdate(std::move(value)); return *this;} /** *

The list of rows to update in the table. Each item in this list needs to * contain the row id to update along with the map of column id to cell values for * each column in that row that needs to be updated. You need to specify at least * one row in this list, and for each row, you need to specify at least one column * to update.

Note that if one of the row or column ids in the request * does not exist in the table, then the request fails and no updates are made to * the table.

*/ inline BatchUpdateTableRowsRequest& AddRowsToUpdate(const UpdateRowData& value) { m_rowsToUpdateHasBeenSet = true; m_rowsToUpdate.push_back(value); return *this; } /** *

The list of rows to update in the table. Each item in this list needs to * contain the row id to update along with the map of column id to cell values for * each column in that row that needs to be updated. You need to specify at least * one row in this list, and for each row, you need to specify at least one column * to update.

Note that if one of the row or column ids in the request * does not exist in the table, then the request fails and no updates are made to * the table.

*/ inline BatchUpdateTableRowsRequest& AddRowsToUpdate(UpdateRowData&& value) { m_rowsToUpdateHasBeenSet = true; m_rowsToUpdate.push_back(std::move(value)); return *this; } /** *

The request token for performing the update action. Request tokens help to * identify duplicate requests. If a call times out or fails due to a transient * error like a failed network connection, you can retry the call with the same * request token. The service ensures that if the first call using that request * token is successfully performed, the second call will not perform the action * again.

Note that request tokens are valid only for a few minutes. You * cannot use request tokens to dedupe requests spanning hours or days.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

The request token for performing the update action. Request tokens help to * identify duplicate requests. If a call times out or fails due to a transient * error like a failed network connection, you can retry the call with the same * request token. The service ensures that if the first call using that request * token is successfully performed, the second call will not perform the action * again.

Note that request tokens are valid only for a few minutes. You * cannot use request tokens to dedupe requests spanning hours or days.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

The request token for performing the update action. Request tokens help to * identify duplicate requests. If a call times out or fails due to a transient * error like a failed network connection, you can retry the call with the same * request token. The service ensures that if the first call using that request * token is successfully performed, the second call will not perform the action * again.

Note that request tokens are valid only for a few minutes. You * cannot use request tokens to dedupe requests spanning hours or days.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

The request token for performing the update action. Request tokens help to * identify duplicate requests. If a call times out or fails due to a transient * error like a failed network connection, you can retry the call with the same * request token. The service ensures that if the first call using that request * token is successfully performed, the second call will not perform the action * again.

Note that request tokens are valid only for a few minutes. You * cannot use request tokens to dedupe requests spanning hours or days.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

The request token for performing the update action. Request tokens help to * identify duplicate requests. If a call times out or fails due to a transient * error like a failed network connection, you can retry the call with the same * request token. The service ensures that if the first call using that request * token is successfully performed, the second call will not perform the action * again.

Note that request tokens are valid only for a few minutes. You * cannot use request tokens to dedupe requests spanning hours or days.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

The request token for performing the update action. Request tokens help to * identify duplicate requests. If a call times out or fails due to a transient * error like a failed network connection, you can retry the call with the same * request token. The service ensures that if the first call using that request * token is successfully performed, the second call will not perform the action * again.

Note that request tokens are valid only for a few minutes. You * cannot use request tokens to dedupe requests spanning hours or days.

*/ inline BatchUpdateTableRowsRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

The request token for performing the update action. Request tokens help to * identify duplicate requests. If a call times out or fails due to a transient * error like a failed network connection, you can retry the call with the same * request token. The service ensures that if the first call using that request * token is successfully performed, the second call will not perform the action * again.

Note that request tokens are valid only for a few minutes. You * cannot use request tokens to dedupe requests spanning hours or days.

*/ inline BatchUpdateTableRowsRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

The request token for performing the update action. Request tokens help to * identify duplicate requests. If a call times out or fails due to a transient * error like a failed network connection, you can retry the call with the same * request token. The service ensures that if the first call using that request * token is successfully performed, the second call will not perform the action * again.

Note that request tokens are valid only for a few minutes. You * cannot use request tokens to dedupe requests spanning hours or days.

*/ inline BatchUpdateTableRowsRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} private: Aws::String m_workbookId; bool m_workbookIdHasBeenSet = false; Aws::String m_tableId; bool m_tableIdHasBeenSet = false; Aws::Vector m_rowsToUpdate; bool m_rowsToUpdateHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; }; } // namespace Model } // namespace Honeycode } // namespace Aws