Class Flavor
- java.lang.Object
-
- org.jclouds.openstack.v2_0.domain.Resource
-
- org.jclouds.openstack.nova.v2_0.domain.Flavor
-
- All Implemented Interfaces:
Comparable<Resource>
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Flavor.Builder<T extends Flavor.Builder<T>>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Flavor.Builder<?>
builder()
boolean
equals(Object obj)
int
getDisk()
com.google.common.base.Optional<Integer>
getEphemeral()
Retrieves ephemeral disk space in GBint
getRam()
com.google.common.base.Optional<Double>
getRxtxFactor()
com.google.common.base.Optional<String>
getSwap()
int
getVcpus()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Flavor.Builder<?>
toBuilder()
-
-
-
Method Detail
-
builder
public static Flavor.Builder<?> builder()
-
toBuilder
public Flavor.Builder<?> toBuilder()
-
getRam
public int getRam()
-
getDisk
public int getDisk()
-
getVcpus
public int getVcpus()
-
getSwap
public com.google.common.base.Optional<String> getSwap()
-
getRxtxFactor
public com.google.common.base.Optional<Double> getRxtxFactor()
-
getEphemeral
public com.google.common.base.Optional<Integer> getEphemeral()
Retrieves ephemeral disk space in GB NOTE: This field is only present if the Flavor Extra Data extension is installed (alias "OS-FLV-EXT-DATA").- See Also:
org.jclouds.openstack.nova.v2_0.features.ExtensionApi#getExtensionByAlias
,ExtensionNamespaces.FLAVOR_EXTRA_DATA
-
-