Compartir a través de


ComputeUsageUnit Class

public class ComputeUsageUnit extends ExpandableStringEnum

Compute usage units.

Field Summary

Modifier and Type Field and Description
final ComputeUsageUnit BYTES

Static value Bytes for ComputeUsageUnit.

final ComputeUsageUnit BYTES_PER_SECOND

Static value BytesPerSecond for ComputeUsageUnit.

final ComputeUsageUnit COUNT

Static value Count for ComputeUsageUnit.

final ComputeUsageUnit COUNTS_PER_SECOND

Static value CountsPerSecond for ComputeUsageUnit.

final ComputeUsageUnit PERCENT

Static value Percent for ComputeUsageUnit.

final ComputeUsageUnit SECONDS

Static value Seconds for ComputeUsageUnit.

Method Summary

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

Creates or finds a compute usage unit based on its name.

Collection<ComputeUsageUnit> values()

Inherited Members

Field Details

BYTES

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

Static value Bytes for ComputeUsageUnit.

BYTES_PER_SECOND

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

Static value BytesPerSecond for ComputeUsageUnit.

COUNT

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

Static value Count for ComputeUsageUnit.

COUNTS_PER_SECOND

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

Static value CountsPerSecond for ComputeUsageUnit.

PERCENT

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

Static value Percent for ComputeUsageUnit.

SECONDS

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

Static value Seconds for ComputeUsageUnit.

Method Details

fromString

public static ComputeUsageUnit fromString(String name)

Creates or finds a compute usage unit based on its name.

Parameters:

name - a name

Returns:

a corresponding ComputeUsageUnit

values

public Collection values()

Returns:

known compute usage units

Applies to