org.jclouds.slicehost.domain
Class Flavor
java.lang.Object
  
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)
 
            | 
 
 
 
Flavor
public Flavor(int id,
              String name,
              int price,
              int ram)
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-2012 jclouds. All Rights Reserved.