7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/model/Currency.h>
9#include <aws/lightsail/model/PricingUnit.h>
10#include <aws/lightsail/model/TimePeriod.h>
44 m_usageCostHasBeenSet =
true;
60 m_pricingUnitHasBeenSet =
true;
61 m_pricingUnit = value;
74 inline double GetUnit()
const {
return m_unit; }
77 m_unitHasBeenSet =
true;
93 m_currencyHasBeenSet =
true;
109 template <
typename TimePeriodT = TimePeriod>
111 m_timePeriodHasBeenSet =
true;
112 m_timePeriod = std::forward<TimePeriodT>(value);
114 template <
typename TimePeriodT = TimePeriod>
121 double m_usageCost{0.0};
122 bool m_usageCostHasBeenSet =
false;
125 bool m_pricingUnitHasBeenSet =
false;
128 bool m_unitHasBeenSet =
false;
131 bool m_currencyHasBeenSet =
false;
133 TimePeriod m_timePeriod;
134 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