Package org.jclouds.glesys.domain
Class ServerDetails
- java.lang.Object
-
- org.jclouds.glesys.domain.Server
-
- org.jclouds.glesys.domain.ServerDetails
-
public class ServerDetails extends Server
Detailed information about a server such as cpuCores, hardware configuration (cpu, memory and disk), ip addresses, cost, transfer, os and more.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerDetails.Builder<T extends ServerDetails.Builder<T>>
-
Nested classes/interfaces inherited from class org.jclouds.glesys.domain.Server
Server.State
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ServerDetails(String id, String hostname, String datacenter, String platform, Server.State state, String description, String templateName, int cpuCores, int memorySizeMB, int diskSizeGB, int transferGB, Cost cost, Set<Ip> ips)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerDetails.Builder<?>
builder()
Cost
getCost()
int
getCpuCores()
String
getDescription()
int
getDiskSizeGB()
Set<Ip>
getIps()
int
getMemorySizeMB()
Server.State
getState()
String
getTemplateName()
int
getTransferGB()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
ServerDetails.Builder<?>
toBuilder()
-
Methods inherited from class org.jclouds.glesys.domain.Server
equals, getDatacenter, getHostname, getId, getPlatform, hashCode, toString
-
-
-
-
Constructor Detail
-
ServerDetails
@ConstructorProperties({"serverid","hostname","datacenter","platform","state","description","templatename","cpucores","memorysize","disksize","transfer","cost","iplist"}) protected ServerDetails(String id, String hostname, String datacenter, String platform, @Nullable Server.State state, @Nullable String description, String templateName, int cpuCores, int memorySizeMB, int diskSizeGB, int transferGB, Cost cost, @Nullable Set<Ip> ips)
-
-
Method Detail
-
builder
public static ServerDetails.Builder<?> builder()
-
toBuilder
public ServerDetails.Builder<?> toBuilder()
-
getState
public Server.State getState()
- Returns:
- the state of the server (e.g. "running")
-
getDescription
public String getDescription()
- Returns:
- the user-specified description of the server
-
getTemplateName
public String getTemplateName()
- Returns:
- the name of the template used to create the server
-
getCpuCores
public int getCpuCores()
- Returns:
- number of cores on the server
-
getMemorySizeMB
public int getMemorySizeMB()
- Returns:
- the memory of the server in MB
-
getDiskSizeGB
public int getDiskSizeGB()
- Returns:
- the disk of the server in GB
-
getTransferGB
public int getTransferGB()
- Returns:
- the transfer of the server
-
getCost
public Cost getCost()
- Returns:
- details of the cost of the server
-
-