@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EstimateByTime extends Object implements Serializable, Cloneable, StructuredPojo
An estimate that's associated with a time period.
Constructor and Description |
---|
EstimateByTime() |
Modifier and Type | Method and Description |
---|---|
EstimateByTime |
clone() |
boolean |
equals(Object obj) |
String |
getCurrency()
The currency of the estimate in USD.
|
String |
getPricingUnit()
The unit of measurement that's used for the cost estimate.
|
TimePeriod |
getTimePeriod()
The period of time, in days, that an estimate covers.
|
Double |
getUnit()
The number of pricing units used to calculate the total number of hours.
|
Double |
getUsageCost()
The amount of cost or usage that's measured for the cost estimate.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCurrency(String currency)
The currency of the estimate in USD.
|
void |
setPricingUnit(String pricingUnit)
The unit of measurement that's used for the cost estimate.
|
void |
setTimePeriod(TimePeriod timePeriod)
The period of time, in days, that an estimate covers.
|
void |
setUnit(Double unit)
The number of pricing units used to calculate the total number of hours.
|
void |
setUsageCost(Double usageCost)
The amount of cost or usage that's measured for the cost estimate.
|
String |
toString()
Returns a string representation of this object.
|
EstimateByTime |
withCurrency(Currency currency)
The currency of the estimate in USD.
|
EstimateByTime |
withCurrency(String currency)
The currency of the estimate in USD.
|
EstimateByTime |
withPricingUnit(PricingUnit pricingUnit)
The unit of measurement that's used for the cost estimate.
|
EstimateByTime |
withPricingUnit(String pricingUnit)
The unit of measurement that's used for the cost estimate.
|
EstimateByTime |
withTimePeriod(TimePeriod timePeriod)
The period of time, in days, that an estimate covers.
|
EstimateByTime |
withUnit(Double unit)
The number of pricing units used to calculate the total number of hours.
|
EstimateByTime |
withUsageCost(Double usageCost)
The amount of cost or usage that's measured for the cost estimate.
|
public void setUsageCost(Double usageCost)
The amount of cost or usage that's measured for the cost estimate.
usageCost
- The amount of cost or usage that's measured for the cost estimate.public Double getUsageCost()
The amount of cost or usage that's measured for the cost estimate.
public EstimateByTime withUsageCost(Double usageCost)
The amount of cost or usage that's measured for the cost estimate.
usageCost
- The amount of cost or usage that's measured for the cost estimate.public void setPricingUnit(String pricingUnit)
The unit of measurement that's used for the cost estimate.
pricingUnit
- The unit of measurement that's used for the cost estimate.PricingUnit
public String getPricingUnit()
The unit of measurement that's used for the cost estimate.
PricingUnit
public EstimateByTime withPricingUnit(String pricingUnit)
The unit of measurement that's used for the cost estimate.
pricingUnit
- The unit of measurement that's used for the cost estimate.PricingUnit
public EstimateByTime withPricingUnit(PricingUnit pricingUnit)
The unit of measurement that's used for the cost estimate.
pricingUnit
- The unit of measurement that's used for the cost estimate.PricingUnit
public void setUnit(Double unit)
The number of pricing units used to calculate the total number of hours. For example, 1 unit equals 1 hour.
unit
- The number of pricing units used to calculate the total number of hours. For example, 1 unit equals 1
hour.public Double getUnit()
The number of pricing units used to calculate the total number of hours. For example, 1 unit equals 1 hour.
public EstimateByTime withUnit(Double unit)
The number of pricing units used to calculate the total number of hours. For example, 1 unit equals 1 hour.
unit
- The number of pricing units used to calculate the total number of hours. For example, 1 unit equals 1
hour.public void setCurrency(String currency)
The currency of the estimate in USD.
currency
- The currency of the estimate in USD.Currency
public String getCurrency()
The currency of the estimate in USD.
Currency
public EstimateByTime withCurrency(String currency)
The currency of the estimate in USD.
currency
- The currency of the estimate in USD.Currency
public EstimateByTime withCurrency(Currency currency)
The currency of the estimate in USD.
currency
- The currency of the estimate in USD.Currency
public void setTimePeriod(TimePeriod timePeriod)
The period of time, in days, that an estimate covers. The period has a start date and an end date. The start date must come before the end date.
timePeriod
- The period of time, in days, that an estimate covers. The period has a start date and an end date. The
start date must come before the end date.public TimePeriod getTimePeriod()
The period of time, in days, that an estimate covers. The period has a start date and an end date. The start date must come before the end date.
public EstimateByTime withTimePeriod(TimePeriod timePeriod)
The period of time, in days, that an estimate covers. The period has a start date and an end date. The start date must come before the end date.
timePeriod
- The period of time, in days, that an estimate covers. The period has a start date and an end date. The
start date must come before the end date.public String toString()
toString
in class Object
Object.toString()
public EstimateByTime clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.