code: public BatchGetItemResult withConsumedCapacity(ConsumedCapacity... consumedCapacity) {
          if (this.consumedCapacity == null) {
              setConsumedCapacity(new java.util.ArrayList<ConsumedCapacity>(consumedCapacity.length));
          }
          for (ConsumedCapacity ele : consumedCapacity) {
              this.consumedCapacity.add(ele);
          }
          return this;
      }
docs: <p>
  The read capacity units consumed by the entire <code>BatchGetItem</code> operation.
  </p>
  <p>
  Each element consists of:
  </p>
  <ul>
  <li>
  <p>
  <code>TableName</code> - The table that consumed the provisioned throughput.
  </p>
  </li>
  <li>
  <p>
  <code>CapacityUnits</code> - The total number of capacity units consumed.
  </p>
  </li>
  </ul>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setConsumedCapacity(java.util.Collection)} or {@link #withConsumedCapacity(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param consumedCapacity
  The read capacity units consumed by the entire <code>BatchGetItem</code> operation.</p>
  <p>
  Each element consists of:
  </p>
  <ul>
  <li>
  <p>
  <code>TableName</code> - The table that consumed the provisioned throughput.
  </p>
  </li>
  <li>
  <p>
  <code>CapacityUnits</code> - The total number of capacity units consumed.
  </p>
  </li>
  @return Returns a reference to this object so that method calls can be chained together.