Class Flavor
- java.lang.Object
-
- 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
Nested Classes Modifier and Type Class Description static class
Flavor.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Flavor.Builder
builder()
int
compareTo(Flavor that)
boolean
equals(Object obj)
int
getId()
List<Link>
getLinks()
String
getName()
int
getRam()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Flavor.Builder
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
Flavor
@ConstructorProperties({"id","name","ram","links"}) protected Flavor(int id, String name, int ram, List<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<Link> getLinks()
- Returns:
- the flavor links for this flavor. These are used during database instance creation.
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
compareTo
public int compareTo(Flavor that)
- Specified by:
compareTo
in interfaceComparable<Flavor>
-
builder
public static Flavor.Builder builder()
-
toBuilder
public Flavor.Builder toBuilder()
-
-