org.jclouds.vcloud.director.v1_5.domain
Class CapacityType<T extends CapacityType<T>>
java.lang.Object
org.jclouds.vcloud.director.v1_5.domain.CapacityType<T>
- Direct Known Subclasses:
- CapacityWithUsage
public class CapacityType<T extends CapacityType<T>>
- extends Object
Represents a capacity of a given resource.
Java class for Capacity complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Capacity">
<complexContent>
<extension base="{http://www.vmware.com/vcloud/v1.5}VCloudExtensibleType">
<sequence>
<element name="Units" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="Allocated" type="{http://www.w3.org/2001/XMLSchema}Long" minOccurs="0"/>
<element name="Limit" type="{http://www.w3.org/2001/XMLSchema}Long"/>
</sequence>
<anyAttribute processContents='lax' namespace='##other'/>
</extension>
</complexContent>
</complexType>
units
protected String units
allocated
protected Long allocated
limit
protected Long limit
CapacityType
protected CapacityType(String units,
Long allocated,
Long limit)
CapacityType
protected CapacityType()
builder
public static <T extends CapacityType<T>> CapacityType.Builder<T> builder()
toBuilder
public CapacityType.Builder<T> toBuilder()
getUnits
public String getUnits()
- Gets the value of the units property.
- Returns:
- possible object is
String
getAllocated
public Long getAllocated()
- Gets the value of the allocated property.
- Returns:
- possible object is
Long
getLimit
public Long getLimit()
- Gets the value of the limit property.
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.