Class SimpleServerUsage.Builder<T extends SimpleServerUsage.Builder<T>>
- java.lang.Object
-
- org.jclouds.openstack.nova.v2_0.domain.SimpleServerUsage.Builder<T>
-
- Enclosing class:
- SimpleServerUsage
public abstract static class SimpleServerUsage.Builder<T extends SimpleServerUsage.Builder<T>> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected double
flavorLocalGb
protected double
flavorMemoryMb
protected String
flavorName
protected double
flavorVcpus
protected double
hours
protected Date
instanceCreated
protected String
instanceName
protected SimpleServerUsage.Status
instanceStatus
protected Date
instanceTerminated
protected String
tenantId
protected long
uptime
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SimpleServerUsage
build()
T
flavorLocalGb(double flavorLocalGb)
T
flavorMemoryMb(double flavorMemoryMb)
T
flavorName(String flavorName)
T
flavorVcpus(double flavorVcpus)
T
fromSimpleServerUsage(SimpleServerUsage in)
T
hours(double hours)
T
instanceCreated(Date instanceCreated)
T
instanceName(String instanceName)
T
instanceStatus(SimpleServerUsage.Status instanceStatus)
T
instanceTerminated(Date instanceTerminated)
protected abstract T
self()
T
tenantId(String tenantId)
T
uptime(long uptime)
-
-
-
Field Detail
-
instanceName
protected String instanceName
-
hours
protected double hours
-
flavorMemoryMb
protected double flavorMemoryMb
-
flavorLocalGb
protected double flavorLocalGb
-
flavorVcpus
protected double flavorVcpus
-
tenantId
protected String tenantId
-
flavorName
protected String flavorName
-
instanceCreated
protected Date instanceCreated
-
instanceTerminated
protected Date instanceTerminated
-
instanceStatus
protected SimpleServerUsage.Status instanceStatus
-
uptime
protected long uptime
-
-
Method Detail
-
self
protected abstract T self()
-
instanceName
public T instanceName(String instanceName)
- See Also:
SimpleServerUsage.getInstanceName()
-
hours
public T hours(double hours)
- See Also:
SimpleServerUsage.getHours()
-
flavorMemoryMb
public T flavorMemoryMb(double flavorMemoryMb)
- See Also:
SimpleServerUsage.getFlavorMemoryMb()
-
flavorLocalGb
public T flavorLocalGb(double flavorLocalGb)
- See Also:
SimpleServerUsage.getFlavorLocalGb()
-
flavorVcpus
public T flavorVcpus(double flavorVcpus)
- See Also:
SimpleServerUsage.getFlavorVcpus()
-
tenantId
public T tenantId(String tenantId)
- See Also:
SimpleServerUsage.getTenantId()
-
flavorName
public T flavorName(String flavorName)
- See Also:
SimpleServerUsage.getFlavorName()
-
instanceCreated
public T instanceCreated(Date instanceCreated)
- See Also:
SimpleServerUsage.getInstanceCreated()
-
instanceStatus
public T instanceStatus(SimpleServerUsage.Status instanceStatus)
- See Also:
SimpleServerUsage.getInstanceStatus()
-
uptime
public T uptime(long uptime)
- See Also:
SimpleServerUsage.getUptime()
-
build
public SimpleServerUsage build()
-
fromSimpleServerUsage
public T fromSimpleServerUsage(SimpleServerUsage in)
-
-