@Generated(value="software.amazon.awssdk:codegen") public final class ConsumedCapacity extends Object implements SdkPojo, Serializable, 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) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<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.
|
boolean |
hasGlobalSecondaryIndexes()
Returns true if the GlobalSecondaryIndexes property was specified by the sender (it may be empty), or false if
the sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasLocalSecondaryIndexes()
Returns true if the LocalSecondaryIndexes property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
Map<String,Capacity> |
localSecondaryIndexes()
The amount of throughput consumed on each local index affected by the operation.
|
Double |
readCapacityUnits()
The total number of read capacity units consumed by the operation.
|
List<SdkField<?>> |
sdkFields() |
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()
Returns a string representation of this object.
|
Double |
writeCapacityUnits()
The total number of write capacity units consumed by the operation.
|
copy
public final String tableName()
The name of the table that was affected by the operation.
public final Double capacityUnits()
The total number of capacity units consumed by the operation.
public final Double readCapacityUnits()
The total number of read capacity units consumed by the operation.
public final Double writeCapacityUnits()
The total number of write capacity units consumed by the operation.
public final Capacity table()
The amount of throughput consumed on the table affected by the operation.
public final boolean hasLocalSecondaryIndexes()
public final 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.
You can use hasLocalSecondaryIndexes()
to see if a value was sent in this field.
public final boolean hasGlobalSecondaryIndexes()
public final 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.
You can use hasGlobalSecondaryIndexes()
to see if a value was sent in this field.
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 final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.