org.jclouds.openstack.nova.domain
Class Flavor

java.lang.Object
  extended by org.jclouds.openstack.nova.domain.Resource
      extended by org.jclouds.openstack.nova.domain.Flavor

public class Flavor
extends Resource

A flavor is an available hardware configuration for a server. Each flavor has a unique combination of disk space and memory capacity.

Author:
Adrian Cole

Constructor Summary
Flavor(int id, String name, Integer disk, Integer ram, Integer vcpus)
           
 
Method Summary
 boolean equals(Object obj)
           
 Integer getDisk()
           
 int getId()
           
 String getName()
           
 Integer getRam()
           
 Integer getVcpus()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.jclouds.openstack.nova.domain.Resource
getSelfURI, getURI
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Flavor

public Flavor(int id,
              String name,
              Integer disk,
              Integer ram,
              Integer vcpus)
Method Detail

getDisk

public Integer getDisk()

getId

public int getId()

getName

public String getName()

getRam

public Integer getRam()

getVcpus

public Integer getVcpus()

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.