Class Flavor
java.lang.Object
org.jclouds.openstack.v2_0.domain.Resource
org.jclouds.openstack.nova.v2_0.domain.Flavor
- All Implemented Interfaces:
Comparable<org.jclouds.openstack.v2_0.domain.Resource>
public class Flavor
extends org.jclouds.openstack.v2_0.domain.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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Flavor.Builder<?>builder()booleanintgetDisk()com.google.common.base.Optional<Integer>Retrieves ephemeral disk space in GBintgetRam()com.google.common.base.Optional<Double>com.google.common.base.Optional<String>getSwap()intgetVcpus()inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()Methods inherited from class org.jclouds.openstack.v2_0.domain.Resource
compareTo, getId, getLinks, getName, toString
-
Constructor Details
-
Flavor
@ConstructorProperties({"id","name","links","ram","disk","vcpus","swap","rxtx_factor","OS-FLV-EXT-DATA:ephemeral"}) protected Flavor(String id, String name, Set<org.jclouds.openstack.v2_0.domain.Link> links, int ram, int disk, int vcpus, @Nullable String swap, @Nullable Double rxtxFactor, @Nullable Integer ephemeral)
-
-
Method Details
-
builder
-
toBuilder
- Overrides:
toBuilderin classorg.jclouds.openstack.v2_0.domain.Resource
-
getRam
public int getRam() -
getDisk
public int getDisk() -
getVcpus
public int getVcpus() -
getSwap
-
getRxtxFactor
-
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#getExtensionByAliasExtensionNamespaces.FLAVOR_EXTRA_DATA
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.jclouds.openstack.v2_0.domain.Resource
-
equals
- Overrides:
equalsin classorg.jclouds.openstack.v2_0.domain.Resource
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()- Overrides:
stringin classorg.jclouds.openstack.v2_0.domain.Resource
-