Package org.jclouds.cloudstack.domain
Class Capacity.Builder<T extends Capacity.Builder<T>>
- java.lang.Object
-
- org.jclouds.cloudstack.domain.Capacity.Builder<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected long
capacityTotal
protected long
capacityUsed
protected double
percentUsed
protected String
podId
protected String
podName
protected Capacity.Type
type
protected String
zoneId
protected String
zoneName
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Capacity
build()
T
capacityTotal(long capacityTotal)
T
capacityUsed(long capacityUsed)
T
fromCapacity(Capacity in)
T
percentUsed(double percentUsed)
T
podId(String podId)
T
podName(String podName)
protected abstract T
self()
T
type(Capacity.Type type)
T
zoneId(String zoneId)
T
zoneName(String zoneName)
-
-
-
Field Detail
-
capacityTotal
protected long capacityTotal
-
capacityUsed
protected long capacityUsed
-
percentUsed
protected double percentUsed
-
podId
protected String podId
-
podName
protected String podName
-
type
protected Capacity.Type type
-
zoneId
protected String zoneId
-
zoneName
protected String zoneName
-
-
Method Detail
-
self
protected abstract T self()
-
capacityTotal
public T capacityTotal(long capacityTotal)
- See Also:
Capacity.getCapacityTotal()
-
capacityUsed
public T capacityUsed(long capacityUsed)
- See Also:
Capacity.getCapacityUsed()
-
percentUsed
public T percentUsed(double percentUsed)
- See Also:
Capacity.getPercentUsed()
-
podId
public T podId(String podId)
- See Also:
Capacity.getPodId()
-
podName
public T podName(String podName)
- See Also:
Capacity.getPodName()
-
type
public T type(Capacity.Type type)
- See Also:
Capacity.getType()
-
zoneId
public T zoneId(String zoneId)
- See Also:
Capacity.getZoneId()
-
zoneName
public T zoneName(String zoneName)
- See Also:
Capacity.getZoneName()
-
build
public Capacity build()
-
-