Enum ReturnConsumedCapacity

java.lang.Object
java.lang.Enum<ReturnConsumedCapacity>
com.amazonaws.services.dynamodbv2.model.ReturnConsumedCapacity
All Implemented Interfaces:
Serializable, Comparable<ReturnConsumedCapacity>, java.lang.constant.Constable

public enum ReturnConsumedCapacity extends Enum<ReturnConsumedCapacity>

Determines the level of detail about provisioned throughput consumption that is returned in the response:

  • INDEXES - The response includes the aggregate ConsumedCapacity for the operation, together with ConsumedCapacity for each table and secondary index that was accessed.

    Note that some operations, such as GetItem and BatchGetItem, do not access any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity information for table(s).

  • TOTAL - The response includes only the aggregate ConsumedCapacity for the operation.

  • NONE - No ConsumedCapacity details are included in the response.

  • Enum Constant Details

  • Method Details

    • values

      public static ReturnConsumedCapacity[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ReturnConsumedCapacity valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ReturnConsumedCapacity>
    • fromValue

      public static ReturnConsumedCapacity fromValue(String value)
      Use this in place of valueOf.
      Parameters:
      value - real value
      Returns:
      ReturnConsumedCapacity corresponding to the value