/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.dynamodbv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The capacity units consumed by an operation. The data returned includes the total provisioned throughput consumed,
* along with statistics for the table and any indexes involved in the operation. ConsumedCapacity
is only
* returned if the request asked for it. For more information, see Provisioned
* Throughput in the Amazon DynamoDB Developer Guide.
*
* The name of the table that was affected by the operation. *
*/ private String tableName; /** ** The total number of capacity units consumed by the operation. *
*/ private Double capacityUnits; /** ** The total number of read capacity units consumed by the operation. *
*/ private Double readCapacityUnits; /** ** The total number of write capacity units consumed by the operation. *
*/ private Double writeCapacityUnits; /** ** The amount of throughput consumed on the table affected by the operation. *
*/ private Capacity table; /** ** The amount of throughput consumed on each local index affected by the operation. *
*/ private java.util.Map* The amount of throughput consumed on each global index affected by the operation. *
*/ private java.util.Map* The name of the table that was affected by the operation. *
* * @param tableName * The name of the table that was affected by the operation. */ public void setTableName(String tableName) { this.tableName = tableName; } /** ** The name of the table that was affected by the operation. *
* * @return The name of the table that was affected by the operation. */ public String getTableName() { return this.tableName; } /** ** The name of the table that was affected by the operation. *
* * @param tableName * The name of the table that was affected by the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ConsumedCapacity withTableName(String tableName) { setTableName(tableName); return this; } /** ** The total number of capacity units consumed by the operation. *
* * @param capacityUnits * The total number of capacity units consumed by the operation. */ public void setCapacityUnits(Double capacityUnits) { this.capacityUnits = capacityUnits; } /** ** The total number of capacity units consumed by the operation. *
* * @return The total number of capacity units consumed by the operation. */ public Double getCapacityUnits() { return this.capacityUnits; } /** ** The total number of capacity units consumed by the operation. *
* * @param capacityUnits * The total number of capacity units consumed by the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ConsumedCapacity withCapacityUnits(Double capacityUnits) { setCapacityUnits(capacityUnits); return this; } /** ** The total number of read capacity units consumed by the operation. *
* * @param readCapacityUnits * The total number of read capacity units consumed by the operation. */ public void setReadCapacityUnits(Double readCapacityUnits) { this.readCapacityUnits = readCapacityUnits; } /** ** The total number of read capacity units consumed by the operation. *
* * @return The total number of read capacity units consumed by the operation. */ public Double getReadCapacityUnits() { return this.readCapacityUnits; } /** ** The total number of read capacity units consumed by the operation. *
* * @param readCapacityUnits * The total number of read capacity units consumed by the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ConsumedCapacity withReadCapacityUnits(Double readCapacityUnits) { setReadCapacityUnits(readCapacityUnits); return this; } /** ** The total number of write capacity units consumed by the operation. *
* * @param writeCapacityUnits * The total number of write capacity units consumed by the operation. */ public void setWriteCapacityUnits(Double writeCapacityUnits) { this.writeCapacityUnits = writeCapacityUnits; } /** ** The total number of write capacity units consumed by the operation. *
* * @return The total number of write capacity units consumed by the operation. */ public Double getWriteCapacityUnits() { return this.writeCapacityUnits; } /** ** The total number of write capacity units consumed by the operation. *
* * @param writeCapacityUnits * The total number of write capacity units consumed by the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ConsumedCapacity withWriteCapacityUnits(Double writeCapacityUnits) { setWriteCapacityUnits(writeCapacityUnits); return this; } /** ** The amount of throughput consumed on the table affected by the operation. *
* * @param table * The amount of throughput consumed on the table affected by the operation. */ public void setTable(Capacity table) { this.table = table; } /** ** The amount of throughput consumed on the table affected by the operation. *
* * @return The amount of throughput consumed on the table affected by the operation. */ public Capacity getTable() { return this.table; } /** ** The amount of throughput consumed on the table affected by the operation. *
* * @param table * The amount of throughput consumed on the table affected by the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ConsumedCapacity withTable(Capacity table) { setTable(table); return this; } /** ** The amount of throughput consumed on each local index affected by the operation. *
* * @return The amount of throughput consumed on each local index affected by the operation. */ public java.util.Map* The amount of throughput consumed on each local index affected by the operation. *
* * @param localSecondaryIndexes * The amount of throughput consumed on each local index affected by the operation. */ public void setLocalSecondaryIndexes(java.util.Map* The amount of throughput consumed on each local index affected by the operation. *
* * @param localSecondaryIndexes * The amount of throughput consumed on each local index affected by the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ConsumedCapacity withLocalSecondaryIndexes(java.util.Map* The amount of throughput consumed on each global index affected by the operation. *
* * @return The amount of throughput consumed on each global index affected by the operation. */ public java.util.Map* The amount of throughput consumed on each global index affected by the operation. *
* * @param globalSecondaryIndexes * The amount of throughput consumed on each global index affected by the operation. */ public void setGlobalSecondaryIndexes(java.util.Map* The amount of throughput consumed on each global index affected by the operation. *
* * @param globalSecondaryIndexes * The amount of throughput consumed on each global index affected by the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ConsumedCapacity withGlobalSecondaryIndexes(java.util.Map