Package org.jclouds.cloudstack.domain
Class ServiceOffering
- java.lang.Object
-
- org.jclouds.cloudstack.domain.ServiceOffering
-
- All Implemented Interfaces:
Comparable<ServiceOffering>
public class ServiceOffering extends Object implements Comparable<ServiceOffering>
Class ServiceOffering
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServiceOffering.Builder<T extends ServiceOffering.Builder<T>>
-
Constructor Summary
Constructors Modifier Constructor Description protected
ServiceOffering(String id, String name, String displayText, Date created, String domain, String domainId, int cpuNumber, int cpuSpeed, int memory, boolean haSupport, StorageType storageType, Iterable<String> tags, boolean defaultUse, boolean systemOffering, boolean cpuUseLimited, long networkRate, boolean systemVmType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceOffering.Builder<?>
builder()
int
compareTo(ServiceOffering o)
boolean
equals(Object obj)
int
getCpuNumber()
int
getCpuSpeed()
Date
getCreated()
String
getDisplayText()
String
getDomain()
String
getDomainId()
String
getId()
int
getMemory()
String
getName()
long
getNetworkRate()
StorageType
getStorageType()
Set<String>
getTags()
int
hashCode()
boolean
isCpuUseLimited()
boolean
isDefaultUse()
boolean
isSystemOffering()
boolean
isSystemVmType()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
boolean
supportsHA()
ServiceOffering.Builder<?>
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
ServiceOffering
@ConstructorProperties({"id","name","displaytext","created","domain","domainid","cpunumber","cpuspeed","memory","offerha","storagetype","tags","defaultuse","issystem","limitcpuuse","networkrate","systemvmtype"}) protected ServiceOffering(String id, @Nullable String name, @Nullable String displayText, @Nullable Date created, @Nullable String domain, @Nullable String domainId, int cpuNumber, int cpuSpeed, int memory, boolean haSupport, @Nullable StorageType storageType, @Nullable Iterable<String> tags, boolean defaultUse, boolean systemOffering, boolean cpuUseLimited, long networkRate, boolean systemVmType)
-
-
Method Detail
-
builder
public static ServiceOffering.Builder<?> builder()
-
toBuilder
public ServiceOffering.Builder<?> toBuilder()
-
getId
public String getId()
- Returns:
- the id of the service offering
-
getName
public String getName()
- Returns:
- the name of the service offering
-
getDisplayText
@Nullable public String getDisplayText()
- Returns:
- an alternate display text of the service offering.
-
getCpuNumber
public int getCpuNumber()
- Returns:
- the number of CPU
-
getCpuSpeed
public int getCpuSpeed()
- Returns:
- the clock rate CPU speed in Mhz
-
getMemory
public int getMemory()
- Returns:
- the memory in MB
-
supportsHA
public boolean supportsHA()
-
getStorageType
@Nullable public StorageType getStorageType()
- Returns:
- the storage type for this service offering
-
isDefaultUse
public boolean isDefaultUse()
- Returns:
- whether this is a default system vm offering
-
isSystemOffering
public boolean isSystemOffering()
- Returns:
- whether this is a system vm offering
-
isCpuUseLimited
public boolean isCpuUseLimited()
- Returns:
- whether restrict the CPU usage to committed service offering
-
getNetworkRate
public long getNetworkRate()
- Returns:
- data transfer rate in megabits per second allowed.
-
isSystemVmType
public boolean isSystemVmType()
- Returns:
- whether this is a the systemvm type for system vm offering
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
compareTo
public int compareTo(ServiceOffering o)
- Specified by:
compareTo
in interfaceComparable<ServiceOffering>
-
-