Package org.jclouds.glesys.domain
Class Cost
- java.lang.Object
-
- org.jclouds.glesys.domain.Cost
-
public class Cost extends Object
The Cost class contains information about the cost of a server- See Also:
ServerDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Cost.Builder<T extends Cost.Builder<T>>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Cost.Builder<?>
builder()
boolean
equals(Object obj)
double
getAmount()
String
getCurrency()
String
getTimePeriod()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Cost.Builder<?>
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
Cost
@ConstructorProperties({"amount","currency","timeperiod"}) protected Cost(double amount, String currency, String timePeriod)
-
-
Method Detail
-
builder
public static Cost.Builder<?> builder()
-
toBuilder
public Cost.Builder<?> toBuilder()
-
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"
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-