Package org.jclouds.glesys.domain
Class ServerDetails
java.lang.Object
org.jclouds.glesys.domain.Server
org.jclouds.glesys.domain.ServerDetails
Detailed information about a server such as cpuCores, hardware configuration
(cpu, memory and disk), ip addresses, cost, transfer, os and more.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
ServerDetails.Builder<T extends ServerDetails.Builder<T>>
Nested classes/interfaces inherited from class org.jclouds.glesys.domain.Server
Server.State
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jclouds.glesys.domain.Server
equals, getDatacenter, getHostname, getId, getPlatform, hashCode, toString
-
Constructor Details
-
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 Details
-
builder
-
toBuilder
-
getState
- Returns:
- the state of the server (e.g. "running")
-
getDescription
- Returns:
- the user-specified description of the server
-
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
- Returns:
- details of the cost of the server
-
getIps
- Returns:
- the ip addresses assigned to the server
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-