Package org.jclouds.glesys.domain
Class ServerSpec
- java.lang.Object
-
- org.jclouds.glesys.domain.ServerSpec
-
public class ServerSpec extends Object
Class ServerSpec
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerSpec.Builder<T extends ServerSpec.Builder<T>>
-
Constructor Summary
Constructors Modifier Constructor Description protected
ServerSpec(String platform, String datacenter, int memorySizeMB, int diskSizeGB, String templateName, int cpuCores, int transferGB)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerSpec.Builder<?>
builder()
boolean
equals(Object obj)
int
getCpuCores()
String
getDatacenter()
int
getDiskSizeGB()
int
getMemorySizeMB()
String
getPlatform()
String
getTemplateName()
int
getTransferGB()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
ServerSpec.Builder<?>
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
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 Detail
-
builder
public static ServerSpec.Builder<?> builder()
-
toBuilder
public ServerSpec.Builder<?> toBuilder()
-
getPlatform
public String getPlatform()
- Returns:
- the data center to create the new server in
-
getDatacenter
public String 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
public String 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
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-