Package org.jclouds.gogrid.domain
Class Server.Builder<T extends Server.Builder<T>>
- java.lang.Object
-
- org.jclouds.gogrid.domain.Server.Builder<T>
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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
-
-
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()
-
-