org.jclouds.gogrid.domain
Class Server

java.lang.Object
  extended by org.jclouds.gogrid.domain.Server
All Implemented Interfaces:
Comparable<Server>

public class Server
extends Object
implements Comparable<Server>

Class Server


Nested Class Summary
static class Server.Builder<T extends Server.Builder<T>>
           
 
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)
           
 
Method Summary
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.Objects.ToStringHelper string()
           
 Server.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
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()

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.