Package com.twilio.rest.wireless.v1.sim
Enum UsageRecord.Granularity
- java.lang.Object
-
- java.lang.Enum<UsageRecord.Granularity>
-
- com.twilio.rest.wireless.v1.sim.UsageRecord.Granularity
-
- All Implemented Interfaces:
Serializable,Comparable<UsageRecord.Granularity>
- Enclosing class:
- UsageRecord
public static enum UsageRecord.Granularity extends Enum<UsageRecord.Granularity>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UsageRecord.GranularityforValue(String value)StringtoString()static UsageRecord.GranularityvalueOf(String name)Returns the enum constant of this type with the specified name.static UsageRecord.Granularity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HOURLY
public static final UsageRecord.Granularity HOURLY
-
DAILY
public static final UsageRecord.Granularity DAILY
-
ALL
public static final UsageRecord.Granularity ALL
-
-
Method Detail
-
values
public static UsageRecord.Granularity[] 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 (UsageRecord.Granularity c : UsageRecord.Granularity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UsageRecord.Granularity 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:
toStringin classEnum<UsageRecord.Granularity>
-
forValue
public static UsageRecord.Granularity forValue(String value)
-
-