public static enum UsageRecord.Granularity extends Enum<UsageRecord.Granularity>
Modifier and Type | Method and Description |
---|---|
static UsageRecord.Granularity |
forValue(String value)
Generate a Granularity from a string.
|
String |
toString() |
static UsageRecord.Granularity |
valueOf(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.
|
public static final UsageRecord.Granularity HOUR
public static final UsageRecord.Granularity DAY
public static final UsageRecord.Granularity ALL
public static UsageRecord.Granularity[] values()
for (UsageRecord.Granularity c : UsageRecord.Granularity.values()) System.out.println(c);
public static UsageRecord.Granularity valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<UsageRecord.Granularity>
public static UsageRecord.Granularity forValue(String value)
value
- string valueCopyright © 2019 Twilio, Inc. All Rights Reserved.