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
|
Constructor Summary |
protected |
Cost(double amount,
String currency,
String timePeriod)
|
Cost
@ConstructorProperties(value={"amount","currency","timeperiod"})
protected Cost(double amount,
String currency,
String timePeriod)
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"
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
string
protected com.google.common.base.Objects.ToStringHelper string()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.