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 intcpuCoresprotected Stringdatacenterprotected intdiskSizeGBprotected intmemorySizeMBprotected Stringplatformprotected StringtemplateNameprotected inttransferGB
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ServerSpecbuild()TcpuCores(int cpuCores)Tdatacenter(String datacenter)TdiskSizeGB(int diskSizeGB)TfromServerSpec(ServerSpec in)TmemorySizeMB(int memorySizeMB)Tplatform(String platform)protected abstract Tself()TtemplateName(String templateName)TtransferGB(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)
-
-