org.jclouds.googlecomputeengine.domain
Class Quota

java.lang.Object
  extended by org.jclouds.googlecomputeengine.domain.Quota

@Beta
public class Quota
extends Object

Quotas assigned to a given project or region.

See Also:

Nested Class Summary
static class Quota.Builder
           
 
Constructor Summary
Quota(String metric, Double usage, Double limit)
           
 
Method Summary
static Quota.Builder builder()
           
 boolean equals(Object obj)
          
 Double getLimit()
           
 String getMetric()
           
 Double getUsage()
           
 int hashCode()
          
 com.google.common.base.Objects.ToStringHelper string()
          
 Quota.Builder toBuilder()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Quota

@ConstructorProperties(value={"metric","usage","limit"})
public Quota(String metric,
                                        Double usage,
                                        Double limit)
Method Detail

getMetric

public String getMetric()
Returns:
name of the quota metric.

getUsage

public Double getUsage()
Returns:
current usage of this metric.

getLimit

public Double getLimit()
Returns:
quota limit for this metric.

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

string

public com.google.common.base.Objects.ToStringHelper string()


toString

public String toString()

Overrides:
toString in class Object

builder

public static Quota.Builder builder()

toBuilder

public Quota.Builder toBuilder()


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.