org.jclouds.cloudstack.domain
Class Capacity

java.lang.Object
  extended by 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

Nested Class Summary
static class Capacity.Builder<T extends Capacity.Builder<T>>
           
static class Capacity.Type
           
 
Constructor Summary
protected Capacity(long capacityTotal, long capacityUsed, double percentUsed, String podId, String podName, Capacity.Type type, String zoneId, String zoneName)
           
 
Method Summary
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.Objects.ToStringHelper string()
           
 Capacity.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
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()

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-2012 jclouds. All Rights Reserved.