org.jclouds.glesys.domain
Class ServerSpec
java.lang.Object
org.jclouds.glesys.domain.ServerSpec
public class ServerSpec
- extends Object
Class ServerSpec
- Author:
- Adrian Cole
|
Constructor Summary |
protected |
ServerSpec(String platform,
String datacenter,
int memorySizeMB,
int diskSizeGB,
String templateName,
int cpuCores,
int transferGB)
|
ServerSpec
@ConstructorProperties(value={"platform","datacenter","memorySizeMB","diskSizeGB","templateName","cpuCores","transferGB"})
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()
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
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
string
protected com.google.common.base.Objects.ToStringHelper string()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.