@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public enum MetricUnit extends Enum<MetricUnit>
Enum Constant and Description |
---|
Bits |
BitsSecond |
Bytes |
BytesSecond |
Count |
CountSecond |
Gigabits |
GigabitsSecond |
Gigabytes |
GigabytesSecond |
Kilobits |
KilobitsSecond |
Kilobytes |
KilobytesSecond |
Megabits |
MegabitsSecond |
Megabytes |
MegabytesSecond |
Microseconds |
Milliseconds |
None |
Percent |
Seconds |
Terabits |
TerabitsSecond |
Terabytes |
TerabytesSecond |
Modifier and Type | Method and Description |
---|---|
static MetricUnit |
fromValue(String value)
Use this in place of valueOf.
|
String |
toString() |
static MetricUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetricUnit Seconds
public static final MetricUnit Microseconds
public static final MetricUnit Milliseconds
public static final MetricUnit Bytes
public static final MetricUnit Kilobytes
public static final MetricUnit Megabytes
public static final MetricUnit Gigabytes
public static final MetricUnit Terabytes
public static final MetricUnit Bits
public static final MetricUnit Kilobits
public static final MetricUnit Megabits
public static final MetricUnit Gigabits
public static final MetricUnit Terabits
public static final MetricUnit Percent
public static final MetricUnit Count
public static final MetricUnit BytesSecond
public static final MetricUnit KilobytesSecond
public static final MetricUnit MegabytesSecond
public static final MetricUnit GigabytesSecond
public static final MetricUnit TerabytesSecond
public static final MetricUnit BitsSecond
public static final MetricUnit KilobitsSecond
public static final MetricUnit MegabitsSecond
public static final MetricUnit GigabitsSecond
public static final MetricUnit TerabitsSecond
public static final MetricUnit CountSecond
public static final MetricUnit None
public static MetricUnit[] values()
for (MetricUnit c : MetricUnit.values()) System.out.println(c);
public static MetricUnit 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<MetricUnit>
public static MetricUnit fromValue(String value)
value
- real valueIllegalArgumentException
- If the specified value does not map to one of the known values in this enum.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.