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
- Author:
- Richard Downer
Capacity
@ConstructorProperties(value={"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)
builder
public static Capacity.Builder<?> builder()
toBuilder
public Capacity.Builder<?> toBuilder()
getCapacityTotal
public long getCapacityTotal()
getCapacityUsed
public long getCapacityUsed()
getPercentUsed
public double getPercentUsed()
getPodId
@Nullable
public String getPodId()
getPodName
@Nullable
public String getPodName()
getType
@Nullable
public Capacity.Type getType()
getZoneId
@Nullable
public String getZoneId()
getZoneName
@Nullable
public String getZoneName()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
string
protected com.google.common.base.Objects.ToStringHelper string()
toString
public String toString()
- Overrides:
toString in class Object
compareTo
public int compareTo(Capacity other)
- Specified by:
compareTo in interface Comparable<Capacity>
Copyright © 2009-2013 jclouds. All Rights Reserved.