org.jclouds.vcloud.director.v1_5.domain
Class CapacityType<T extends CapacityType<T>>

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


Nested Class Summary
static class CapacityType.Builder<T extends CapacityType<T>>
           
 
Field Summary
protected  Long allocated
           
protected  Long limit
           
protected  String units
           
 
Constructor Summary
protected CapacityType()
           
protected CapacityType(String units, Long allocated, Long limit)
           
 
Method Summary
static
<T extends CapacityType<T>>
CapacityType.Builder<T>
builder()
           
 boolean equals(Object o)
           
 Long getAllocated()
          Gets the value of the allocated property.
 Long getLimit()
          Gets the value of the limit property.
 String getUnits()
          Gets the value of the units property.
 int hashCode()
           
 CapacityType.Builder<T> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

units

protected String units

allocated

protected Long allocated

limit

protected Long limit
Constructor Detail

CapacityType

protected CapacityType(String units,
                       Long allocated,
                       Long limit)

CapacityType

protected CapacityType()
Method Detail

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.