org.jclouds.glesys.domain
Class Server
java.lang.Object
org.jclouds.glesys.domain.Server
- Direct Known Subclasses:
- ServerDetails
public class Server
- extends Object
Listing of a server.
- Author:
- Adrian Cole
- See Also:
Server
@ConstructorProperties(value={"serverid","hostname","datacenter","platform"})
protected Server(String id,
String hostname,
String datacenter,
String platform)
builder
public static Server.Builder<?> builder()
toBuilder
public Server.Builder<?> toBuilder()
getId
public String getId()
- Returns:
- the generated id of the server
getHostname
public String getHostname()
- Returns:
- the hostname of the server
getDatacenter
public String getDatacenter()
- Returns:
- platform running the server (ex.
OpenVZ)
getPlatform
public String getPlatform()
- Returns:
- the datacenter the server exists in (ex.
Falkenberg)
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-2013 The Apache Software Foundation. All Rights Reserved.