@Generated(value="software.amazon.awssdk:codegen") public final class ConsumedCapacity extends Object implements StructuredPojo, ToCopyableBuilder<ConsumedCapacity.Builder,ConsumedCapacity>
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.
Modifier and Type | Class and Description |
---|---|
static interface |
ConsumedCapacity.Builder |
Modifier and Type | Method and Description |
---|---|
static ConsumedCapacity.Builder |
builder() |
Double |
capacityUnits()
The total number of capacity units consumed by the operation.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
Map<String,Capacity> |
globalSecondaryIndexes()
The amount of throughput consumed on each global index affected by the operation.
|
int |
hashCode() |
Map<String,Capacity> |
localSecondaryIndexes()
The amount of throughput consumed on each local index affected by the operation.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
static Class<? extends ConsumedCapacity.Builder> |
serializableBuilderClass() |
Capacity |
table()
The amount of throughput consumed on the table affected by the operation.
|
String |
tableName()
The name of the table that was affected by the operation.
|
ConsumedCapacity.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String tableName()
The name of the table that was affected by the operation.
public Double capacityUnits()
The total number of capacity units consumed by the operation.
public Capacity table()
The amount of throughput consumed on the table affected by the operation.
public Map<String,Capacity> localSecondaryIndexes()
The amount of throughput consumed on each local index affected by the operation.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Map<String,Capacity> globalSecondaryIndexes()
The amount of throughput consumed on each global index affected by the operation.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public ConsumedCapacity.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ConsumedCapacity.Builder,ConsumedCapacity>
public static ConsumedCapacity.Builder builder()
public static Class<? extends ConsumedCapacity.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.