org.jclouds.slicehost.domain
Class Flavor

java.lang.Object
  extended by org.jclouds.slicehost.domain.Flavor

public class Flavor
extends Object

A flavor is an available hardware configuration for a slice.

Author:
Adrian Cole

Constructor Summary
Flavor(int id, String name, int price, int ram)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getId()
           
 String getName()
           
 int getPrice()
           
 int getRam()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Flavor

public Flavor(int id,
              String name,
              int price,
              int ram)
Method Detail

getId

public int getId()
Returns:
id of the flavor

getName

public String getName()
Returns:
Verbose name for the flavor, e.g. 256 slice

getPrice

public int getPrice()
Returns:
The price as an integer of cents. For example: 2000 equals $20.00. Note that all prices are in USD

getRam

public int getRam()
Returns:
The amount of RAM (in Megabytes) included with the plan

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 jclouds. All Rights Reserved.