1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`BatchUpdateTableRows`](crate::operation::batch_update_table_rows::builders::BatchUpdateTableRowsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`workbook_id(impl Into<String>)`](crate::operation::batch_update_table_rows::builders::BatchUpdateTableRowsFluentBuilder::workbook_id) / [`set_workbook_id(Option<String>)`](crate::operation::batch_update_table_rows::builders::BatchUpdateTableRowsFluentBuilder::set_workbook_id):<br>required: **true**<br><p>The ID of the workbook where the rows are being updated.</p> <p>If a workbook with the specified id could not be found, this API throws ResourceNotFoundException.</p><br>
    ///   - [`table_id(impl Into<String>)`](crate::operation::batch_update_table_rows::builders::BatchUpdateTableRowsFluentBuilder::table_id) / [`set_table_id(Option<String>)`](crate::operation::batch_update_table_rows::builders::BatchUpdateTableRowsFluentBuilder::set_table_id):<br>required: **true**<br><p>The ID of the table where the rows are being updated.</p> <p>If a table with the specified id could not be found, this API throws ResourceNotFoundException.</p><br>
    ///   - [`rows_to_update(UpdateRowData)`](crate::operation::batch_update_table_rows::builders::BatchUpdateTableRowsFluentBuilder::rows_to_update) / [`set_rows_to_update(Option<Vec::<UpdateRowData>>)`](crate::operation::batch_update_table_rows::builders::BatchUpdateTableRowsFluentBuilder::set_rows_to_update):<br>required: **true**<br><p>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.</p> <p>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.</p><br>
    ///   - [`client_request_token(impl Into<String>)`](crate::operation::batch_update_table_rows::builders::BatchUpdateTableRowsFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::batch_update_table_rows::builders::BatchUpdateTableRowsFluentBuilder::set_client_request_token):<br>required: **false**<br><p>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.</p> <p>Note that request tokens are valid only for a few minutes. You cannot use request tokens to dedupe requests spanning hours or days.</p><br>
    /// - On success, responds with [`BatchUpdateTableRowsOutput`](crate::operation::batch_update_table_rows::BatchUpdateTableRowsOutput) with field(s):
    ///   - [`workbook_cursor(i64)`](crate::operation::batch_update_table_rows::BatchUpdateTableRowsOutput::workbook_cursor): <p>The updated workbook cursor after adding the new rows at the end of the table.</p>
    ///   - [`failed_batch_items(Option<Vec::<FailedBatchItem>>)`](crate::operation::batch_update_table_rows::BatchUpdateTableRowsOutput::failed_batch_items): <p>The list of batch items in the request that could not be updated in the table. Each element in this list contains one item from the request that could not be updated in the table along with the reason why that item could not be updated.</p>
    /// - On failure, responds with [`SdkError<BatchUpdateTableRowsError>`](crate::operation::batch_update_table_rows::BatchUpdateTableRowsError)
    pub fn batch_update_table_rows(&self) -> crate::operation::batch_update_table_rows::builders::BatchUpdateTableRowsFluentBuilder {
        crate::operation::batch_update_table_rows::builders::BatchUpdateTableRowsFluentBuilder::new(self.handle.clone())
    }
}