Class NovaFlavor
- java.lang.Object
-
- org.openstack4j.openstack.compute.domain.NovaFlavor
-
- All Implemented Interfaces:
Serializable,Buildable<FlavorBuilder>,Flavor,ModelEntity
public class NovaFlavor extends Object implements Flavor
An OpenStack Flavor which is a template used for configuration against running Instances- Author:
- Jeremy Unruh
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNovaFlavor.FlavorConcreteBuilderstatic classNovaFlavor.Flavors-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
-
Constructor Summary
Constructors Constructor Description NovaFlavor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FlavorBuilderbuilder()intgetDisk()intgetEphemeral()Gets the ephemeral.StringgetId()List<? extends Link>getLinks()Gets the links.StringgetName()intgetRam()intgetRxtxCap()Gets the rxtx cap.floatgetRxtxFactor()intgetRxtxQuota()Gets the rxtx quota.intgetSwap()intgetVcpus()BooleanisDisabled()Checks if is disabled.BooleanisPublic()Checks if is public.FlavorBuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
builder
public static FlavorBuilder builder()
-
toBuilder
public FlavorBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<FlavorBuilder>
-
getName
public String getName()
-
getRam
public int getRam()
-
getVcpus
public int getVcpus()
-
getDisk
public int getDisk()
-
getSwap
public int getSwap()
-
getRxtxFactor
public float getRxtxFactor()
- Specified by:
getRxtxFactorin interfaceFlavor- Returns:
- the RX/TX factor
-
getEphemeral
public int getEphemeral()
Gets the ephemeral.- Specified by:
getEphemeralin interfaceFlavor- Returns:
- the ephemeral
-
getRxtxQuota
public int getRxtxQuota()
Gets the rxtx quota.- Specified by:
getRxtxQuotain interfaceFlavor- Returns:
- the rxtx quota
-
getRxtxCap
public int getRxtxCap()
Gets the rxtx cap.- Specified by:
getRxtxCapin interfaceFlavor- Returns:
- the rxtx cap
-
isPublic
public Boolean isPublic()
Checks if is public.
-
isDisabled
public Boolean isDisabled()
Checks if is disabled.- Specified by:
isDisabledin interfaceFlavor- Returns:
- true, if is disabled
-
-