/** * 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 BatchDeleteTableRowsRequest : public HoneycodeRequest { public: AWS_HONEYCODE_API BatchDeleteTableRowsRequest(); // 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 "BatchDeleteTableRows"; } AWS_HONEYCODE_API Aws::String SerializePayload() const override; /** *

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

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 deleted.

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 deleted.

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 deleted.

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 deleted.

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 deleted.

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

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

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

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

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

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

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

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

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

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 deleted.

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 deleted.

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 deleted.

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 deleted.

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 deleted.

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

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

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

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

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

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

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

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

The list of row ids to delete from the table. You need to specify at least * one row id in this list.

Note that if one of the row ids provided in * the request does not exist in the table, then the request fails and no rows are * deleted from the table.

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

The list of row ids to delete from the table. You need to specify at least * one row id in this list.

Note that if one of the row ids provided in * the request does not exist in the table, then the request fails and no rows are * deleted from the table.

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

The list of row ids to delete from the table. You need to specify at least * one row id in this list.

Note that if one of the row ids provided in * the request does not exist in the table, then the request fails and no rows are * deleted from the table.

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

The list of row ids to delete from the table. You need to specify at least * one row id in this list.

Note that if one of the row ids provided in * the request does not exist in the table, then the request fails and no rows are * deleted from the table.

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

The list of row ids to delete from the table. You need to specify at least * one row id in this list.

Note that if one of the row ids provided in * the request does not exist in the table, then the request fails and no rows are * deleted from the table.

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

The list of row ids to delete from the table. You need to specify at least * one row id in this list.

Note that if one of the row ids provided in * the request does not exist in the table, then the request fails and no rows are * deleted from the table.

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

The list of row ids to delete from the table. You need to specify at least * one row id in this list.

Note that if one of the row ids provided in * the request does not exist in the table, then the request fails and no rows are * deleted from the table.

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

The list of row ids to delete from the table. You need to specify at least * one row id in this list.

Note that if one of the row ids provided in * the request does not exist in the table, then the request fails and no rows are * deleted from the table.

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

The list of row ids to delete from the table. You need to specify at least * one row id in this list.

Note that if one of the row ids provided in * the request does not exist in the table, then the request fails and no rows are * deleted from the table.

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

The request token for performing the delete 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 delete 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 delete 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 delete 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 delete 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 delete 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 BatchDeleteTableRowsRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

The request token for performing the delete 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 BatchDeleteTableRowsRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

The request token for performing the delete 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 BatchDeleteTableRowsRequest& 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_rowIds; bool m_rowIdsHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; }; } // namespace Model } // namespace Honeycode } // namespace Aws