org.jclouds.glesys.domain
Class ServerSpec
java.lang.Object
org.jclouds.glesys.domain.ServerSpec
public class ServerSpec
- extends Object
- Author:
- Adrian Cole
Constructor Summary |
protected |
ServerSpec(String platform,
String datacenter,
int memorySizeMB,
int diskSizeGB,
String templateName,
int cpuCores,
int transferGB)
|
platform
protected final String platform
datacenter
protected final String datacenter
memorySizeMB
protected final int memorySizeMB
diskSizeGB
protected final int diskSizeGB
templateName
protected final String templateName
cpuCores
protected final int cpuCores
transferGB
protected final int transferGB
ServerSpec
protected ServerSpec(String platform,
String datacenter,
int memorySizeMB,
int diskSizeGB,
String templateName,
int cpuCores,
int transferGB)
builder
public static ServerSpec.Builder builder()
toBuilder
public ServerSpec.Builder toBuilder()
getDatacenter
public String getDatacenter()
- Returns:
- the data center to create the new server in
getPlatform
public String getPlatform()
- Returns:
- the platform to use (i.e. "Xen" or "OpenVZ")
getTemplateName
public String getTemplateName()
- 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
getMemorySizeMB
public int getMemorySizeMB()
- 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
equals
public boolean equals(Object object)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012 jclouds. All Rights Reserved.