/** * Determines whether to include consumed capacity information in the output. If this is set to * <code>TOTAL</code>, then this information is shown in the output; otherwise, the consumed * capacity information is not shown. * * <p>Returns a reference to this object so that method calls can be chained together. * * <p><b>Constraints:</b><br> * <b>Allowed Values: </b>TOTAL, NONE * * @param returnConsumedCapacity Determines whether to include consumed capacity information in * the output. If this is set to <code>TOTAL</code>, then this information is shown in the * output; otherwise, the consumed capacity information is not shown. * @return A reference to this updated object so that method calls can be chained together. * @see ReturnConsumedCapacity */ public BatchWriteItemRequest withReturnConsumedCapacity( ReturnConsumedCapacity returnConsumedCapacity) { this.returnConsumedCapacity = returnConsumedCapacity.toString(); return this; }
/** * Determines whether to include consumed capacity information in the output. If this is set to * <code>TOTAL</code>, then this information is shown in the output; otherwise, the consumed * capacity information is not shown. * * <p><b>Constraints:</b><br> * <b>Allowed Values: </b>TOTAL, NONE * * @param returnConsumedCapacity Determines whether to include consumed capacity information in * the output. If this is set to <code>TOTAL</code>, then this information is shown in the * output; otherwise, the consumed capacity information is not shown. * @see ReturnConsumedCapacity */ public void setReturnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity) { this.returnConsumedCapacity = returnConsumedCapacity.toString(); }