org.jclouds.openstack.trove.v1.domain
Class Flavor

java.lang.Object
  extended by org.jclouds.openstack.trove.v1.domain.Flavor
All Implemented Interfaces:
Comparable<Flavor>

public class Flavor
extends Object
implements Comparable<Flavor>

An Openstack Trove Flavor.


Nested Class Summary
static class Flavor.Builder
           
 
Constructor Summary
protected Flavor(int id, String name, int ram, List<org.jclouds.openstack.v2_0.domain.Link> links)
           
 
Method Summary
static Flavor.Builder builder()
           
 int compareTo(Flavor that)
           
 boolean equals(Object obj)
           
 int getId()
           
 List<org.jclouds.openstack.v2_0.domain.Link> getLinks()
           
 String getName()
           
 int getRam()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 Flavor.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Flavor

@ConstructorProperties(value={"id","name","ram","links"})
protected Flavor(int id,
                                            String name,
                                            int ram,
                                            List<org.jclouds.openstack.v2_0.domain.Link> links)
Method Detail

getId

public int getId()
Returns:
the id of this flavor.

getName

public String getName()
Returns:
the name of this flavor.

getRam

public int getRam()
Returns:
the RAM amount for this flavor.

getLinks

public List<org.jclouds.openstack.v2_0.domain.Link> getLinks()
Returns:
the flavor links for this flavor. These are used during database instance creation.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

string

protected com.google.common.base.Objects.ToStringHelper string()

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Flavor that)
Specified by:
compareTo in interface Comparable<Flavor>

builder

public static Flavor.Builder builder()

toBuilder

public Flavor.Builder toBuilder()


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.