Package org.jclouds.glesys.domain
Class ResourceStatus.Builder<T extends ResourceStatus.Builder<T>>
- java.lang.Object
-
- org.jclouds.glesys.domain.ResourceStatus.Builder<T>
-
- Enclosing class:
- ResourceStatus
public abstract static class ResourceStatus.Builder<T extends ResourceStatus.Builder<T>> extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ResourceStatus
build()
T
fromResourceUsage(ResourceStatus in)
T
max(double max)
protected abstract T
self()
T
unit(String unit)
T
usage(double usage)
-
-
-
Field Detail
-
usage
protected double usage
-
max
protected double max
-
unit
protected String unit
-
-
Method Detail
-
self
protected abstract T self()
-
usage
public T usage(double usage)
- See Also:
ResourceStatus.getUsage()
-
max
public T max(double max)
- See Also:
ResourceStatus.getMax()
-
unit
public T unit(String unit)
- See Also:
ResourceStatus.getUnit()
-
build
public ResourceStatus build()
-
fromResourceUsage
public T fromResourceUsage(ResourceStatus in)
-
-