org.jclouds.cloudstack.domain
Class VirtualMachine.Builder<T extends VirtualMachine.Builder<T>>

java.lang.Object
  extended by org.jclouds.cloudstack.domain.VirtualMachine.Builder<T>
Enclosing class:
VirtualMachine

public abstract static class VirtualMachine.Builder<T extends VirtualMachine.Builder<T>>
extends Object


Field Summary
protected  String account
           
protected  long cpuCount
           
protected  long cpuSpeed
           
protected  String cpuUsed
           
protected  Date created
           
protected  String displayName
           
protected  String domain
           
protected  String domainId
           
protected  String group
           
protected  String groupId
           
protected  String guestOSId
           
protected  boolean HAEnabled
           
protected  String hostId
           
protected  String hostname
           
protected  String hypervisor
           
protected  String id
           
protected  String IPAddress
           
protected  String ISODisplayText
           
protected  String ISOId
           
protected  String ISOName
           
protected  String jobId
           
protected  Integer jobStatus
           
protected  long memory
           
protected  String name
           
protected  Long networkKbsRead
           
protected  Long networkKbsWrite
           
protected  Set<NIC> nics
           
protected  String password
           
protected  boolean passwordEnabled
           
protected  String publicIP
           
protected  String publicIPId
           
protected  String rootDeviceId
           
protected  String rootDeviceType
           
protected  Set<SecurityGroup> securityGroups
           
protected  String serviceOfferingId
           
protected  String serviceOfferingName
           
protected  VirtualMachine.State state
           
protected  String templateDisplayText
           
protected  String templateId
           
protected  String templateName
           
protected  boolean usesVirtualNetwork
           
protected  String zoneId
           
protected  String zoneName
           
 
Constructor Summary
VirtualMachine.Builder()
           
 
Method Summary
 T account(String account)
           
 VirtualMachine build()
           
 T cpuCount(long cpuCount)
           
 T cpuSpeed(long cpuSpeed)
           
 T cpuUsed(String cpuUsed)
           
 T created(Date created)
           
 T displayName(String displayName)
           
 T domain(String domain)
           
 T domainId(String domainId)
           
 T fromVirtualMachine(VirtualMachine in)
           
 T group(String group)
           
 T groupId(String groupId)
           
 T guestOSId(String guestOSId)
           
 T hostId(String hostId)
           
 T hostname(String hostname)
           
 T hypervisor(String hypervisor)
           
 T id(String id)
           
 T IPAddress(String IPAddress)
           
 T isHAEnabled(boolean HAEnabled)
           
 T ISODisplayText(String ISODisplayText)
           
 T ISOId(String ISOId)
           
 T ISOName(String ISOName)
           
 T jobId(String jobId)
           
 T jobStatus(Integer jobStatus)
           
 T memory(long memory)
           
 T name(String name)
           
 T networkKbsRead(Long networkKbsRead)
           
 T networkKbsWrite(Long networkKbsWrite)
           
 T nics(NIC... in)
           
 T nics(Set<NIC> nics)
           
 T password(String password)
           
 T passwordEnabled(boolean passwordEnabled)
           
 T publicIP(String publicIP)
           
 T publicIPId(String publicIPId)
           
 T rootDeviceId(String rootDeviceId)
           
 T rootDeviceType(String rootDeviceType)
           
 T securityGroups(SecurityGroup... in)
           
 T securityGroups(Set<SecurityGroup> securityGroups)
           
protected abstract  T self()
           
 T serviceOfferingId(String serviceOfferingId)
           
 T serviceOfferingName(String serviceOfferingName)
           
 T state(VirtualMachine.State state)
           
 T templateDisplayText(String templateDisplayText)
           
 T templateId(String templateId)
           
 T templateName(String templateName)
           
 T usesVirtualNetwork(boolean usesVirtualNetwork)
           
 T zoneId(String zoneId)
           
 T zoneName(String zoneName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected String id

account

protected String account

cpuCount

protected long cpuCount

cpuSpeed

protected long cpuSpeed

cpuUsed

protected String cpuUsed

displayName

protected String displayName

created

protected Date created

domain

protected String domain

domainId

protected String domainId

usesVirtualNetwork

protected boolean usesVirtualNetwork

group

protected String group

groupId

protected String groupId

guestOSId

protected String guestOSId

HAEnabled

protected boolean HAEnabled

hostId

protected String hostId

hostname

protected String hostname

IPAddress

protected String IPAddress

ISODisplayText

protected String ISODisplayText

ISOId

protected String ISOId

ISOName

protected String ISOName

jobId

protected String jobId

jobStatus

protected Integer jobStatus

memory

protected long memory

name

protected String name

networkKbsRead

protected Long networkKbsRead

networkKbsWrite

protected Long networkKbsWrite

password

protected String password

passwordEnabled

protected boolean passwordEnabled

publicIP

protected String publicIP

publicIPId

protected String publicIPId

rootDeviceId

protected String rootDeviceId

rootDeviceType

protected String rootDeviceType

serviceOfferingId

protected String serviceOfferingId

serviceOfferingName

protected String serviceOfferingName

state

protected VirtualMachine.State state

templateDisplayText

protected String templateDisplayText

templateId

protected String templateId

templateName

protected String templateName

zoneId

protected String zoneId

zoneName

protected String zoneName

nics

protected Set<NIC> nics

hypervisor

protected String hypervisor

securityGroups

protected Set<SecurityGroup> securityGroups
Constructor Detail

VirtualMachine.Builder

public VirtualMachine.Builder()
Method Detail

self

protected abstract T self()

id

public T id(String id)
See Also:
VirtualMachine.getId()

account

public T account(String account)
See Also:
VirtualMachine.getAccount()

cpuCount

public T cpuCount(long cpuCount)
See Also:
VirtualMachine.getCpuCount()

cpuSpeed

public T cpuSpeed(long cpuSpeed)
See Also:
VirtualMachine.getCpuSpeed()

cpuUsed

public T cpuUsed(String cpuUsed)
See Also:
VirtualMachine.getCpuUsed()

displayName

public T displayName(String displayName)
See Also:
VirtualMachine.getDisplayName()

created

public T created(Date created)
See Also:
VirtualMachine.getCreated()

domain

public T domain(String domain)
See Also:
VirtualMachine.getDomain()

domainId

public T domainId(String domainId)
See Also:
VirtualMachine.getDomainId()

usesVirtualNetwork

public T usesVirtualNetwork(boolean usesVirtualNetwork)
See Also:
VirtualMachine.usesVirtualNetwork()

group

public T group(String group)
See Also:
VirtualMachine.getGroup()

groupId

public T groupId(String groupId)
See Also:
VirtualMachine.getGroupId()

guestOSId

public T guestOSId(String guestOSId)
See Also:
VirtualMachine.getGuestOSId()

isHAEnabled

public T isHAEnabled(boolean HAEnabled)
See Also:
VirtualMachine.isHAEnabled()

hostId

public T hostId(String hostId)
See Also:
VirtualMachine.getHostId()

hostname

public T hostname(String hostname)
See Also:
VirtualMachine.getHostname()

IPAddress

public T IPAddress(String IPAddress)
See Also:
VirtualMachine.getIPAddress()

ISODisplayText

public T ISODisplayText(String ISODisplayText)
See Also:
VirtualMachine.getISODisplayText()

ISOId

public T ISOId(String ISOId)
See Also:
VirtualMachine.getISOId()

ISOName

public T ISOName(String ISOName)
See Also:
VirtualMachine.getISOName()

jobId

public T jobId(String jobId)
See Also:
VirtualMachine.getJobId()

jobStatus

public T jobStatus(Integer jobStatus)
See Also:
VirtualMachine.getJobStatus()

memory

public T memory(long memory)
See Also:
VirtualMachine.getMemory()

name

public T name(String name)
See Also:
VirtualMachine.getName()

networkKbsRead

public T networkKbsRead(Long networkKbsRead)
See Also:
VirtualMachine.getNetworkKbsRead()

networkKbsWrite

public T networkKbsWrite(Long networkKbsWrite)
See Also:
VirtualMachine.getNetworkKbsWrite()

password

public T password(String password)
See Also:
VirtualMachine.getPassword()

passwordEnabled

public T passwordEnabled(boolean passwordEnabled)
See Also:
VirtualMachine.isPasswordEnabled()

publicIP

public T publicIP(String publicIP)
See Also:
VirtualMachine.getPublicIP()

publicIPId

public T publicIPId(String publicIPId)
See Also:
VirtualMachine.getPublicIPId()

rootDeviceId

public T rootDeviceId(String rootDeviceId)
See Also:
VirtualMachine.getRootDeviceId()

rootDeviceType

public T rootDeviceType(String rootDeviceType)
See Also:
VirtualMachine.getRootDeviceType()

serviceOfferingId

public T serviceOfferingId(String serviceOfferingId)
See Also:
VirtualMachine.getServiceOfferingId()

serviceOfferingName

public T serviceOfferingName(String serviceOfferingName)
See Also:
VirtualMachine.getServiceOfferingName()

state

public T state(VirtualMachine.State state)
See Also:
VirtualMachine.getState()

templateDisplayText

public T templateDisplayText(String templateDisplayText)
See Also:
VirtualMachine.getTemplateDisplayText()

templateId

public T templateId(String templateId)
See Also:
VirtualMachine.getTemplateId()

templateName

public T templateName(String templateName)
See Also:
VirtualMachine.getTemplateName()

zoneId

public T zoneId(String zoneId)
See Also:
VirtualMachine.getZoneId()

zoneName

public T zoneName(String zoneName)
See Also:
VirtualMachine.getZoneName()

nics

public T nics(Set<NIC> nics)
See Also:
VirtualMachine.getNICs()

nics

public T nics(NIC... in)

hypervisor

public T hypervisor(String hypervisor)
See Also:
VirtualMachine.getHypervisor()

securityGroups

public T securityGroups(Set<SecurityGroup> securityGroups)
See Also:
VirtualMachine.getSecurityGroups()

securityGroups

public T securityGroups(SecurityGroup... in)

build

public VirtualMachine build()

fromVirtualMachine

public T fromVirtualMachine(VirtualMachine in)


Copyright © 2009-2012 jclouds. All Rights Reserved.