7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/model/PricingUnit.h>
9#include <aws/lightsail/model/Currency.h>
10#include <aws/lightsail/model/TimePeriod.h>
49 inline void SetUsageCost(
double value) { m_usageCostHasBeenSet =
true; m_usageCost = value; }
68 inline double GetUnit()
const {
return m_unit; }
70 inline void SetUnit(
double value) { m_unitHasBeenSet =
true; m_unit = value; }
91 template<
typename TimePeriodT = TimePeriod>
92 void SetTimePeriod(TimePeriodT&& value) { m_timePeriodHasBeenSet =
true; m_timePeriod = std::forward<TimePeriodT>(value); }
93 template<
typename TimePeriodT = TimePeriod>
98 double m_usageCost{0.0};
99 bool m_usageCostHasBeenSet =
false;
102 bool m_pricingUnitHasBeenSet =
false;
105 bool m_unitHasBeenSet =
false;
108 bool m_currencyHasBeenSet =
false;
110 TimePeriod m_timePeriod;
111 bool m_timePeriodHasBeenSet =
false;
EstimateByTime & WithTimePeriod(TimePeriodT &&value)
void SetCurrency(Currency value)
EstimateByTime & WithUnit(double value)
AWS_LIGHTSAIL_API EstimateByTime(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API EstimateByTime & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUsageCost(double value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimePeriod(TimePeriodT &&value)
EstimateByTime & WithCurrency(Currency value)
AWS_LIGHTSAIL_API EstimateByTime()=default
bool CurrencyHasBeenSet() const
bool UsageCostHasBeenSet() const
void SetUnit(double value)
bool UnitHasBeenSet() const
EstimateByTime & WithPricingUnit(PricingUnit value)
bool TimePeriodHasBeenSet() const
EstimateByTime & WithUsageCost(double value)
const TimePeriod & GetTimePeriod() const
Currency GetCurrency() const
PricingUnit GetPricingUnit() const
bool PricingUnitHasBeenSet() const
double GetUsageCost() const
void SetPricingUnit(PricingUnit value)
Aws::Utils::Json::JsonValue JsonValue