Interface ConsumedCapacity.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ConsumedCapacity.Builder,ConsumedCapacity>, SdkBuilder<ConsumedCapacity.Builder,ConsumedCapacity>, SdkPojo
Enclosing class:
ConsumedCapacity

public static interface ConsumedCapacity.Builder extends SdkPojo, CopyableBuilder<ConsumedCapacity.Builder,ConsumedCapacity>
  • Method Details

    • tableName

      ConsumedCapacity.Builder tableName(String tableName)

      The name of the table that was affected by the operation.

      Parameters:
      tableName - The name of the table that was affected by the operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityUnits

      ConsumedCapacity.Builder capacityUnits(Double capacityUnits)

      The total number of capacity units consumed by the operation.

      Parameters:
      capacityUnits - The total number of capacity units consumed by the operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • readCapacityUnits

      ConsumedCapacity.Builder readCapacityUnits(Double readCapacityUnits)

      The total number of read capacity units consumed by the operation.

      Parameters:
      readCapacityUnits - The total number of read capacity units consumed by the operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • writeCapacityUnits

      ConsumedCapacity.Builder writeCapacityUnits(Double writeCapacityUnits)

      The total number of write capacity units consumed by the operation.

      Parameters:
      writeCapacityUnits - The total number of write capacity units consumed by the operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • table

      The amount of throughput consumed on the table affected by the operation.

      Parameters:
      table - The amount of throughput consumed on the table affected by the operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • table

      The amount of throughput consumed on the table affected by the operation.

      This is a convenience method that creates an instance of the Capacity.Builder avoiding the need to create one manually via Capacity.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to table(Capacity).

      Parameters:
      table - a consumer that will call methods on Capacity.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • localSecondaryIndexes

      ConsumedCapacity.Builder localSecondaryIndexes(Map<String,Capacity> localSecondaryIndexes)

      The amount of throughput consumed on each local index affected by the operation.

      Parameters:
      localSecondaryIndexes - The amount of throughput consumed on each local index affected by the operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • globalSecondaryIndexes

      ConsumedCapacity.Builder globalSecondaryIndexes(Map<String,Capacity> globalSecondaryIndexes)

      The amount of throughput consumed on each global index affected by the operation.

      Parameters:
      globalSecondaryIndexes - The amount of throughput consumed on each global index affected by the operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.