/// <summary> /// Add a DocumentBatchWrite object to the multi-table batch request. /// </summary> /// <param name="batch">DocumentBatchWrite to add.</param> public void AddBatch(DocumentBatchWrite batch) { Batches.Add(batch); }
/// <summary> /// Creates a MultiTableDocumentBatchWrite object that is a combination /// of the current DocumentBatchWrite and the specified DocumentBatchWrite. /// </summary> /// <param name="otherBatch">Other DocumentBatchWrite object.</param> /// <returns> /// MultiTableDocumentBatchWrite consisting of the two DocumentBatchWrite /// objects. /// </returns> public MultiTableDocumentBatchWrite Combine(DocumentBatchWrite otherBatch) { return(new MultiTableDocumentBatchWrite(this, otherBatch)); }