Enum ReturnConsumedCapacity
- java.lang.Object
-
- java.lang.Enum<ReturnConsumedCapacity>
-
- com.amazonaws.services.dynamodbv2.model.ReturnConsumedCapacity
-
- All Implemented Interfaces:
Serializable
,Comparable<ReturnConsumedCapacity>
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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReturnConsumedCapacity
fromValue(String value)
Use this in place of valueOf.String
toString()
static ReturnConsumedCapacity
valueOf(String name)
Returns the enum constant of this type with the specified name.static ReturnConsumedCapacity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INDEXES
public static final ReturnConsumedCapacity INDEXES
-
TOTAL
public static final ReturnConsumedCapacity TOTAL
-
NONE
public static final ReturnConsumedCapacity NONE
-
-
Method Detail
-
values
public static ReturnConsumedCapacity[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ReturnConsumedCapacity c : ReturnConsumedCapacity.values()) System.out.println(c);
- 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 nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<ReturnConsumedCapacity>
-
fromValue
public static ReturnConsumedCapacity fromValue(String value)
Use this in place of valueOf.- Parameters:
value
- real value- Returns:
- ReturnConsumedCapacity corresponding to the value
-
-