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

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

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


Field Summary
protected  AllocationState allocationState
           
protected  Host.ClusterType clusterType
           
protected  String hypervisor
           
protected  String id
           
protected  Cluster.ManagedState managedState
           
protected  String name
           
protected  String podId
           
protected  String podName
           
protected  String zoneId
           
protected  String zoneName
           
 
Constructor Summary
Cluster.Builder()
           
 
Method Summary
 T allocationState(AllocationState allocationState)
           
 Cluster build()
           
 T clusterType(Host.ClusterType clusterType)
           
 T fromCluster(Cluster in)
           
 T hypervisor(String hypervisor)
           
 T id(String id)
           
 T managedState(Cluster.ManagedState managedState)
           
 T name(String name)
           
 T podId(String podId)
           
 T podName(String podName)
           
protected abstract  T self()
           
 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

allocationState

protected AllocationState allocationState

clusterType

protected Host.ClusterType clusterType

hypervisor

protected String hypervisor

managedState

protected Cluster.ManagedState managedState

name

protected String name

podId

protected String podId

podName

protected String podName

zoneId

protected String zoneId

zoneName

protected String zoneName
Constructor Detail

Cluster.Builder

public Cluster.Builder()
Method Detail

self

protected abstract T self()

id

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

allocationState

public T allocationState(AllocationState allocationState)
See Also:
Cluster.getAllocationState()

clusterType

public T clusterType(Host.ClusterType clusterType)
See Also:
Cluster.getClusterType()

hypervisor

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

managedState

public T managedState(Cluster.ManagedState managedState)
See Also:
Cluster.getManagedState()

name

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

podId

public T podId(String podId)
See Also:
Cluster.getPodId()

podName

public T podName(String podName)
See Also:
Cluster.getPodName()

zoneId

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

zoneName

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

build

public Cluster build()

fromCluster

public T fromCluster(Cluster in)


Copyright © 2009-2012 jclouds. All Rights Reserved.