org.jclouds.cloudservers.domain
Class Flavor
java.lang.Object
org.jclouds.cloudservers.domain.Flavor
public class Flavor
- extends Object
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
Flavor
@ConstructorProperties(value={"id","name","disk","ram"})
protected Flavor(int id,
String name,
@Nullable
Integer disk,
@Nullable
Integer ram)
builder
public static Flavor.Builder<?> builder()
toBuilder
public Flavor.Builder<?> toBuilder()
getId
public int getId()
getName
public String getName()
getDisk
@Nullable
public Integer getDisk()
getRam
@Nullable
public Integer getRam()
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
Copyright © 2009-2012 jclouds. All Rights Reserved.