Package org.jclouds.gogrid.domain
Class Server
- java.lang.Object
-
- org.jclouds.gogrid.domain.Server
-
- All Implemented Interfaces:
Comparable<Server>
public class Server extends Object implements Comparable<Server>
Class Server
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Server.Builder<T extends Server.Builder<T>>
-
Constructor Summary
Constructors Modifier Constructor Description protected
Server(long id, boolean isSandbox, String name, String description, ServerState state, Option datacenter, Option type, Option ram, Option os, Ip ip, ServerImage image)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Server.Builder<?>
builder()
int
compareTo(Server that)
boolean
equals(Object obj)
Option
getDatacenter()
String
getDescription()
long
getId()
ServerImage
getImage()
Ip
getIp()
String
getName()
Option
getOs()
Option
getRam()
ServerState
getState()
Option
getType()
int
hashCode()
boolean
isSandbox()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Server.Builder<?>
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
Server
@ConstructorProperties({"id","isSandbox","name","description","state","datacenter","type","ram","os","ip","image"}) protected Server(long id, boolean isSandbox, String name, @Nullable String description, ServerState state, @Nullable Option datacenter, Option type, Option ram, Option os, Ip ip, ServerImage image)
-
-
Method Detail
-
builder
public static Server.Builder<?> builder()
-
toBuilder
public Server.Builder<?> toBuilder()
-
getId
public long getId()
-
isSandbox
public boolean isSandbox()
-
getName
public String getName()
-
getState
public ServerState getState()
-
getType
public Option getType()
-
getRam
public Option getRam()
-
getOs
public Option getOs()
-
getIp
public Ip getIp()
-
getImage
public ServerImage getImage()
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
compareTo
public int compareTo(Server that)
- Specified by:
compareTo
in interfaceComparable<Server>
-
-