Package org.jclouds.glesys.domain
Class ServerSpec.Builder<T extends ServerSpec.Builder<T>>
- java.lang.Object
-
- org.jclouds.glesys.domain.ServerSpec.Builder<T>
-
- Enclosing class:
- ServerSpec
public abstract static class ServerSpec.Builder<T extends ServerSpec.Builder<T>> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected int
cpuCores
protected String
datacenter
protected int
diskSizeGB
protected int
memorySizeMB
protected String
platform
protected String
templateName
protected int
transferGB
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ServerSpec
build()
T
cpuCores(int cpuCores)
T
datacenter(String datacenter)
T
diskSizeGB(int diskSizeGB)
T
fromServerSpec(ServerSpec in)
T
memorySizeMB(int memorySizeMB)
T
platform(String platform)
protected abstract T
self()
T
templateName(String templateName)
T
transferGB(int transferGB)
-
-
-
Method Detail
-
self
protected abstract T self()
-
platform
public T platform(String platform)
- See Also:
ServerSpec.getPlatform()
-
datacenter
public T datacenter(String datacenter)
- See Also:
ServerSpec.getDatacenter()
-
memorySizeMB
public T memorySizeMB(int memorySizeMB)
- See Also:
ServerSpec.getMemorySizeMB()
-
diskSizeGB
public T diskSizeGB(int diskSizeGB)
- See Also:
ServerSpec.getDiskSizeGB()
-
templateName
public T templateName(String templateName)
- See Also:
ServerSpec.getTemplateName()
-
cpuCores
public T cpuCores(int cpuCores)
- See Also:
ServerSpec.getCpuCores()
-
transferGB
public T transferGB(int transferGB)
- See Also:
ServerSpec.getTransferGB()
-
build
public ServerSpec build()
-
fromServerSpec
public T fromServerSpec(ServerSpec in)
-
-