Package org.jclouds.glesys.domain
Class ServerDetails.Builder<T extends ServerDetails.Builder<T>>
- java.lang.Object
-
- org.jclouds.glesys.domain.Server.Builder<T>
-
- org.jclouds.glesys.domain.ServerDetails.Builder<T>
-
- Enclosing class:
- ServerDetails
public abstract static class ServerDetails.Builder<T extends ServerDetails.Builder<T>> extends Server.Builder<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected Cost
cost
protected int
cpuCores
protected String
description
protected int
diskSizeGB
protected Set<Ip>
ips
protected int
memorySizeMB
protected Server.State
state
protected String
templateName
protected int
transferGB
-
Fields inherited from class org.jclouds.glesys.domain.Server.Builder
datacenter, hostname, id, platform
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerDetails
build()
T
cost(Cost cost)
T
cpuCores(int cpuCores)
T
description(String description)
T
diskSizeGB(int diskSizeGB)
T
fromServerDetails(ServerDetails in)
T
ips(Set<Ip> ips)
T
ips(Ip... in)
T
memorySizeMB(int memorySizeMB)
T
state(Server.State state)
T
templateName(String templateName)
T
transferGB(int transferGB)
-
Methods inherited from class org.jclouds.glesys.domain.Server.Builder
datacenter, fromServer, hostname, id, platform, self
-
-
-
-
Field Detail
-
state
protected Server.State state
-
description
protected String description
-
templateName
protected String templateName
-
cpuCores
protected int cpuCores
-
memorySizeMB
protected int memorySizeMB
-
diskSizeGB
protected int diskSizeGB
-
transferGB
protected int transferGB
-
cost
protected Cost cost
-
-
Method Detail
-
state
public T state(Server.State state)
- See Also:
ServerDetails.getState()
-
description
public T description(String description)
- See Also:
ServerDetails.getDescription()
-
templateName
public T templateName(String templateName)
- See Also:
ServerDetails.getTemplateName()
-
cpuCores
public T cpuCores(int cpuCores)
- See Also:
ServerDetails.getCpuCores()
-
memorySizeMB
public T memorySizeMB(int memorySizeMB)
- See Also:
ServerDetails.getMemorySizeMB()
-
diskSizeGB
public T diskSizeGB(int diskSizeGB)
- See Also:
ServerDetails.getDiskSizeGB()
-
transferGB
public T transferGB(int transferGB)
- See Also:
ServerDetails.getTransferGB()
-
cost
public T cost(Cost cost)
- See Also:
ServerDetails.getCost()
-
ips
public T ips(Set<Ip> ips)
- See Also:
ServerDetails.getIps()
-
build
public ServerDetails build()
- Overrides:
build
in classServer.Builder<T extends ServerDetails.Builder<T>>
-
fromServerDetails
public T fromServerDetails(ServerDetails in)
-
-