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
|
Constructor Summary |
protected |
Server(long id,
boolean isSandbox,
String name,
String description,
ServerState state,
Option datacenter,
Option type,
Option ram,
Option os,
Ip ip,
ServerImage image)
|
Server
@ConstructorProperties(value={"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)
builder
public static Server.Builder<?> builder()
toBuilder
public Server.Builder<?> toBuilder()
getId
public long getId()
isSandbox
public boolean isSandbox()
getName
public String getName()
getDescription
@Nullable
public String getDescription()
getState
public ServerState getState()
getDatacenter
@Nullable
public Option getDatacenter()
getType
public Option getType()
getRam
public Option getRam()
getOs
public Option getOs()
getIp
public Ip getIp()
getImage
public ServerImage getImage()
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
compareTo
public int compareTo(Server that)
- Specified by:
compareTo in interface Comparable<Server>
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.