Package org.jclouds.glesys.domain
Class ServerSpec
java.lang.Object
org.jclouds.glesys.domain.ServerSpec
Class ServerSpec
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
ServerSpec.Builder<T extends ServerSpec.Builder<T>>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ServerSpec
(String platform, String datacenter, int memorySizeMB, int diskSizeGB, String templateName, int cpuCores, int transferGB) -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerSpec.Builder
<?> builder()
boolean
int
int
int
int
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
toString()
-
Constructor Details
-
ServerSpec
@ConstructorProperties({"platform","datacenter","memorySizeMB","diskSizeGB","templateName","cpuCores","transferGB"}) protected ServerSpec(String platform, String datacenter, int memorySizeMB, int diskSizeGB, String templateName, int cpuCores, int transferGB)
-
-
Method Details
-
builder
-
toBuilder
-
getPlatform
- Returns:
- the data center to create the new server in
-
getDatacenter
- Returns:
- the platform to use (i.e. "Xen" or "OpenVZ")
-
getMemorySizeMB
public int getMemorySizeMB()- Returns:
- the os template to use to create the new server
-
getDiskSizeGB
public int getDiskSizeGB()- Returns:
- the amount of disk space, in GB, to allocate
-
getTemplateName
- Returns:
- the memory, in MB, to allocate
-
getCpuCores
public int getCpuCores()- Returns:
- the number of CPU cores to allocate
-
getTransferGB
public int getTransferGB()- Returns:
- bandwidth of in GB
-
hashCode
public int hashCode() -
equals
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
toString
-