org.jclouds.glesys.domain
Class Cost

java.lang.Object
  extended by org.jclouds.glesys.domain.Cost

public class Cost
extends Object

The Cost class contains information about the cost of a server

Author:
Adam Lowe
See Also:
ServerDetails

Nested Class Summary
static class Cost.Builder
           
 
Constructor Summary
Cost(double amount, String currency, String timePeriod)
           
 
Method Summary
static Cost.Builder builder()
           
 boolean equals(Object object)
           
 double getAmount()
           
 String getCurrency()
           
 String getTimePeriod()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cost

public Cost(double amount,
            String currency,
            String timePeriod)
Method Detail

builder

public static Cost.Builder builder()

getAmount

public double getAmount()
Returns:
the numeric cost in #currency / #timePeriod

getCurrency

public String getCurrency()
Returns:
the currency unit, e.g. "EUR" for Euro

getTimePeriod

public String getTimePeriod()
Returns:
the time period for which this cost charged, e.g. "month"

equals

public boolean equals(Object object)
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-2012 jclouds. All Rights Reserved.