Package org.jclouds.cloudstack.domain
Class Capacity
- java.lang.Object
-
- org.jclouds.cloudstack.domain.Capacity
-
- All Implemented Interfaces:
Comparable<Capacity>
public class Capacity extends Object implements Comparable<Capacity>
Information about a dimension of the capacity
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Capacity.Builder<T extends Capacity.Builder<T>>
static class
Capacity.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Capacity.Builder<?>
builder()
int
compareTo(Capacity other)
boolean
equals(Object obj)
long
getCapacityTotal()
long
getCapacityUsed()
double
getPercentUsed()
String
getPodId()
String
getPodName()
Capacity.Type
getType()
String
getZoneId()
String
getZoneName()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Capacity.Builder<?>
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
Capacity
@ConstructorProperties({"capacitytotal","capacityused","percentused","podid","podname","type","zoneid","zonename"}) protected Capacity(long capacityTotal, long capacityUsed, double percentUsed, @Nullable String podId, @Nullable String podName, @Nullable Capacity.Type type, @Nullable String zoneId, @Nullable String zoneName)
-
-
Method Detail
-
builder
public static Capacity.Builder<?> builder()
-
toBuilder
public Capacity.Builder<?> toBuilder()
-
getCapacityTotal
public long getCapacityTotal()
-
getCapacityUsed
public long getCapacityUsed()
-
getPercentUsed
public double getPercentUsed()
-
getType
@Nullable public Capacity.Type getType()
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
compareTo
public int compareTo(Capacity other)
- Specified by:
compareTo
in interfaceComparable<Capacity>
-
-