org.jclouds.openstack.nova.v2_0.domain
Class SimpleServerUsage.Builder<T extends SimpleServerUsage.Builder<T>>

java.lang.Object
  extended by 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
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 instanceTerminiated
           
protected  String tenantId
           
protected  long uptime
           
 
Constructor Summary
SimpleServerUsage.Builder()
           
 
Method Summary
 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 instanceTerminiated(Date instanceTerminiated)
           
protected abstract  T self()
           
 T tenantId(String tenantId)
           
 T uptime(long uptime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

instanceTerminiated

protected Date instanceTerminiated

instanceStatus

protected SimpleServerUsage.Status instanceStatus

uptime

protected long uptime
Constructor Detail

SimpleServerUsage.Builder

public SimpleServerUsage.Builder()
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()

instanceTerminiated

public T instanceTerminiated(Date instanceTerminiated)
See Also:
SimpleServerUsage.getInstanceTerminiated()

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)


Copyright © 2009-2012 jclouds. All Rights Reserved.