NetworkUsageUnit Class

public class NetworkUsageUnit extends ExpandableStringEnum

Netowork usage units.

Field Summary

Modifier and Type Field and Description
final NetworkUsageUnit BYTES

Static value Bytes for NetworkUsageUnit.

final NetworkUsageUnit BYTES_PER_SECOND

Static value BytesPerSecond for ComputeUsageUnit.

final NetworkUsageUnit COUNT

Static value Count for NetworkUsageUnit.

final NetworkUsageUnit COUNTS_PER_SECOND

Static value CountsPerSecond for NetworkUsageUnit.

final NetworkUsageUnit PERCENT

Static value Percent for NetworkUsageUnit.

final NetworkUsageUnit SECONDS

Static value Seconds for NetworkUsageUnit.

Method Summary

Modifier and Type Method and Description
NetworkUsageUnit fromString(String name)

Finds or creates a network usage unit based on the specified name.

Collection<NetworkUsageUnit> values()

Inherited Members

Field Details

BYTES

public static final NetworkUsageUnit BYTES= fromString("Bytes")

Static value Bytes for NetworkUsageUnit.

BYTES_PER_SECOND

public static final NetworkUsageUnit BYTES_PER_SECOND= fromString("BytesPerSecond")

Static value BytesPerSecond for ComputeUsageUnit.

COUNT

public static final NetworkUsageUnit COUNT= fromString("Count")

Static value Count for NetworkUsageUnit.

COUNTS_PER_SECOND

public static final NetworkUsageUnit COUNTS_PER_SECOND= fromString("CountsPerSecond")

Static value CountsPerSecond for NetworkUsageUnit.

PERCENT

public static final NetworkUsageUnit PERCENT= fromString("Percent")

Static value Percent for NetworkUsageUnit.

SECONDS

public static final NetworkUsageUnit SECONDS= fromString("Seconds")

Static value Seconds for NetworkUsageUnit.

Method Details

fromString

public static NetworkUsageUnit fromString(String name)

Finds or creates a network usage unit based on the specified name.

Parameters:

name - a name

Returns:

an instance of NetworkUsageUnit

values

public static Collection values()

Returns:

known network usage units

Applies to