Package com.oracle.bmc.apigateway.model
Enum Quota.Unit
- java.lang.Object
-
- java.lang.Enum<Quota.Unit>
-
- com.oracle.bmc.apigateway.model.Quota.Unit
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<Quota.Unit>
- Enclosing class:
- Quota
public static enum Quota.Unit extends Enum<Quota.Unit> implements BmcEnum
The unit of time over which quotas are calculated.Example: MINUTE or MONTH
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Quota.Unit
create(String key)
String
getValue()
static Quota.Unit
valueOf(String name)
Returns the enum constant of this type with the specified name.static Quota.Unit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Minute
public static final Quota.Unit Minute
-
Hour
public static final Quota.Unit Hour
-
Day
public static final Quota.Unit Day
-
Week
public static final Quota.Unit Week
-
Month
public static final Quota.Unit Month
-
UnknownEnumValue
public static final Quota.Unit UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
-
-
Method Detail
-
values
public static Quota.Unit[] 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 (Quota.Unit c : Quota.Unit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Quota.Unit 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
-
create
public static Quota.Unit create(String key)
-
-