Package org.jclouds.glesys.domain
Class Cost
java.lang.Object
org.jclouds.glesys.domain.Cost
The Cost class contains information about the cost of a server
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Cost.Builder
<?> builder()
boolean
double
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Cost.Builder
<?> toString()
-
Constructor Details
-
Cost
@ConstructorProperties({"amount","currency","timeperiod"}) protected Cost(double amount, String currency, String timePeriod)
-
-
Method Details
-
builder
-
toBuilder
-
getAmount
public double getAmount()- Returns:
- the numeric cost in #currency / #timePeriod
-
getCurrency
- Returns:
- the currency unit, e.g. "EUR" for Euro
-
getTimePeriod
- Returns:
- the time period for which this cost charged, e.g. "month"
-
hashCode
public int hashCode() -
equals
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
toString
-