Interface BatchCreateTableRowsResponse.Builder

    • Method Detail

      • workbookCursor

        BatchCreateTableRowsResponse.Builder workbookCursor​(Long workbookCursor)

        The updated workbook cursor after adding the new rows at the end of the table.

        Parameters:
        workbookCursor - The updated workbook cursor after adding the new rows at the end of the table.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • createdRows

        BatchCreateTableRowsResponse.Builder createdRows​(Map<String,​String> createdRows)

        The map of batch item id to the row id that was created for that item.

        Parameters:
        createdRows - The map of batch item id to the row id that was created for that item.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • failedBatchItems

        BatchCreateTableRowsResponse.Builder failedBatchItems​(Collection<FailedBatchItem> failedBatchItems)

        The list of batch items in the request that could not be added to the table. Each element in this list contains one item from the request that could not be added to the table along with the reason why that item could not be added.

        Parameters:
        failedBatchItems - The list of batch items in the request that could not be added to the table. Each element in this list contains one item from the request that could not be added to the table along with the reason why that item could not be added.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • failedBatchItems

        BatchCreateTableRowsResponse.Builder failedBatchItems​(FailedBatchItem... failedBatchItems)

        The list of batch items in the request that could not be added to the table. Each element in this list contains one item from the request that could not be added to the table along with the reason why that item could not be added.

        Parameters:
        failedBatchItems - The list of batch items in the request that could not be added to the table. Each element in this list contains one item from the request that could not be added to the table along with the reason why that item could not be added.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • failedBatchItems

        BatchCreateTableRowsResponse.Builder failedBatchItems​(Consumer<FailedBatchItem.Builder>... failedBatchItems)

        The list of batch items in the request that could not be added to the table. Each element in this list contains one item from the request that could not be added to the table along with the reason why that item could not be added.

        This is a convenience method that creates an instance of the FailedBatchItem.Builder avoiding the need to create one manually via FailedBatchItem.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #failedBatchItems(List).

        Parameters:
        failedBatchItems - a consumer that will call methods on FailedBatchItem.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #failedBatchItems(java.util.Collection)