org.jclouds.gogrid.domain
Class Server.Builder<T extends Server.Builder<T>>

java.lang.Object
  extended by org.jclouds.gogrid.domain.Server.Builder<T>
Enclosing class:
Server

public abstract static class Server.Builder<T extends Server.Builder<T>>
extends Object


Field Summary
protected  Option datacenter
           
protected  String description
           
protected  long id
           
protected  ServerImage image
           
protected  Ip ip
           
protected  boolean isSandbox
           
protected  String name
           
protected  Option os
           
protected  Option ram
           
protected  ServerState state
           
protected  Option type
           
 
Constructor Summary
Server.Builder()
           
 
Method Summary
 Server build()
           
 T datacenter(Option datacenter)
           
 T description(String description)
           
 T fromServer(Server in)
           
 T id(long id)
           
 T image(ServerImage image)
           
 T ip(Ip ip)
           
 T isSandbox(boolean isSandbox)
           
 T name(String name)
           
 T os(Option os)
           
 T ram(Option ram)
           
protected abstract  T self()
           
 T state(ServerState state)
           
 T type(Option type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected long id

isSandbox

protected boolean isSandbox

name

protected String name

description

protected String description

state

protected ServerState state

datacenter

protected Option datacenter

type

protected Option type

ram

protected Option ram

os

protected Option os

ip

protected Ip ip

image

protected ServerImage image
Constructor Detail

Server.Builder

public Server.Builder()
Method Detail

self

protected abstract T self()

id

public T id(long id)
See Also:
Server.getId()

isSandbox

public T isSandbox(boolean isSandbox)
See Also:
Server.isSandbox()

name

public T name(String name)
See Also:
Server.getName()

description

public T description(String description)
See Also:
Server.getDescription()

state

public T state(ServerState state)
See Also:
Server.getState()

datacenter

public T datacenter(Option datacenter)
See Also:
Server.getDatacenter()

type

public T type(Option type)
See Also:
Server.getType()

ram

public T ram(Option ram)
See Also:
Server.getRam()

os

public T os(Option os)
See Also:
Server.getOs()

ip

public T ip(Ip ip)
See Also:
Server.getIp()

image

public T image(ServerImage image)
See Also:
Server.getImage()

build

public Server build()

fromServer

public T fromServer(Server in)


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.