org.dasein.cloud.services.accounting
Enum DataFeeType

java.lang.Object
  extended by java.lang.Enum<DataFeeType>
      extended by org.dasein.cloud.services.accounting.DataFeeType
All Implemented Interfaces:
Serializable, Comparable<DataFeeType>

public enum DataFeeType
extends Enum<DataFeeType>

Identifies what kind of fee is in force for data storage or transfer.

Author:
George Reese @ enStratus

Enum Constant Summary
BACKUP
          Fee for space consumed by backups.
BLOCK_STORAGE
          Fee for allocation of block storage.
CLOUD_STORAGE
          Fee for storage of data inside the cloud storage system.
EXTERNAL_DATA_XFER
          Fee for any data transfer out of the cloud.
INTERNAL_DATA_XFER
          Fee for data transfer between points inside the cloud.
REGIONAL_DATA_XFER
          Fee for data transfer between regions in the same cloud.
SNAPSHOT
          Fee for space consumed by snapshots.
 
Method Summary
static DataFeeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataFeeType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CLOUD_STORAGE

public static final DataFeeType CLOUD_STORAGE
Fee for storage of data inside the cloud storage system.


BLOCK_STORAGE

public static final DataFeeType BLOCK_STORAGE
Fee for allocation of block storage.


SNAPSHOT

public static final DataFeeType SNAPSHOT
Fee for space consumed by snapshots.


BACKUP

public static final DataFeeType BACKUP
Fee for space consumed by backups.


INTERNAL_DATA_XFER

public static final DataFeeType INTERNAL_DATA_XFER
Fee for data transfer between points inside the cloud.


EXTERNAL_DATA_XFER

public static final DataFeeType EXTERNAL_DATA_XFER
Fee for any data transfer out of the cloud.


REGIONAL_DATA_XFER

public static final DataFeeType REGIONAL_DATA_XFER
Fee for data transfer between regions in the same cloud.

Method Detail

values

public static DataFeeType[] 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 (DataFeeType c : DataFeeType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DataFeeType 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 name
NullPointerException - if the argument is null