pub struct Builder { /* private fields */ }
Expand description
A builder for BatchCreateTableRowsInput
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn workbook_id(self, input: impl Into<String>) -> Self
pub fn workbook_id(self, input: impl Into<String>) -> Self
The ID of the workbook where the new rows are being added.
If a workbook with the specified ID could not be found, this API throws ResourceNotFoundException.
sourcepub fn set_workbook_id(self, input: Option<String>) -> Self
pub fn set_workbook_id(self, input: Option<String>) -> Self
The ID of the workbook where the new rows are being added.
If a workbook with the specified ID could not be found, this API throws ResourceNotFoundException.
sourcepub fn table_id(self, input: impl Into<String>) -> Self
pub fn table_id(self, input: impl Into<String>) -> Self
The ID of the table where the new rows are being added.
If a table with the specified ID could not be found, this API throws ResourceNotFoundException.
sourcepub fn set_table_id(self, input: Option<String>) -> Self
pub fn set_table_id(self, input: Option<String>) -> Self
The ID of the table where the new rows are being added.
If a table with the specified ID could not be found, this API throws ResourceNotFoundException.
sourcepub fn rows_to_create(self, input: CreateRowData) -> Self
pub fn rows_to_create(self, input: CreateRowData) -> Self
Appends an item to rows_to_create
.
To override the contents of this collection use set_rows_to_create
.
The list of rows to create at the end of the table. Each item in this list needs to have a batch item id to uniquely identify the element in the request and the cells to create for that row. You need to specify at least one item in this list.
Note that if one of the column ids in any of the rows in the request does not exist in the table, then the request fails and no updates are made to the table.
sourcepub fn set_rows_to_create(self, input: Option<Vec<CreateRowData>>) -> Self
pub fn set_rows_to_create(self, input: Option<Vec<CreateRowData>>) -> Self
The list of rows to create at the end of the table. Each item in this list needs to have a batch item id to uniquely identify the element in the request and the cells to create for that row. You need to specify at least one item in this list.
Note that if one of the column ids in any of the rows in the request does not exist in the table, then the request fails and no updates are made to the table.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
The request token for performing the batch create operation. 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 operation again.
Note that request tokens are valid only for a few minutes. You cannot use request tokens to dedupe requests spanning hours or days.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
The request token for performing the batch create operation. 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 operation again.
Note that request tokens are valid only for a few minutes. You cannot use request tokens to dedupe requests spanning hours or days.
sourcepub fn build(self) -> Result<BatchCreateTableRowsInput, BuildError>
pub fn build(self) -> Result<BatchCreateTableRowsInput, BuildError>
Consumes the builder and constructs a BatchCreateTableRowsInput
.