AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EstimateByTime.h
1
6#pragma once
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>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Lightsail
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LIGHTSAIL_API EstimateByTime();
38 AWS_LIGHTSAIL_API EstimateByTime(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline double GetUsageCost() const{ return m_usageCost; }
48 inline bool UsageCostHasBeenSet() const { return m_usageCostHasBeenSet; }
49 inline void SetUsageCost(double value) { m_usageCostHasBeenSet = true; m_usageCost = value; }
50 inline EstimateByTime& WithUsageCost(double value) { SetUsageCost(value); return *this;}
52
54
57 inline const PricingUnit& GetPricingUnit() const{ return m_pricingUnit; }
58 inline bool PricingUnitHasBeenSet() const { return m_pricingUnitHasBeenSet; }
59 inline void SetPricingUnit(const PricingUnit& value) { m_pricingUnitHasBeenSet = true; m_pricingUnit = value; }
60 inline void SetPricingUnit(PricingUnit&& value) { m_pricingUnitHasBeenSet = true; m_pricingUnit = std::move(value); }
61 inline EstimateByTime& WithPricingUnit(const PricingUnit& value) { SetPricingUnit(value); return *this;}
62 inline EstimateByTime& WithPricingUnit(PricingUnit&& value) { SetPricingUnit(std::move(value)); return *this;}
64
66
70 inline double GetUnit() const{ return m_unit; }
71 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
72 inline void SetUnit(double value) { m_unitHasBeenSet = true; m_unit = value; }
73 inline EstimateByTime& WithUnit(double value) { SetUnit(value); return *this;}
75
77
80 inline const Currency& GetCurrency() const{ return m_currency; }
81 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
82 inline void SetCurrency(const Currency& value) { m_currencyHasBeenSet = true; m_currency = value; }
83 inline void SetCurrency(Currency&& value) { m_currencyHasBeenSet = true; m_currency = std::move(value); }
84 inline EstimateByTime& WithCurrency(const Currency& value) { SetCurrency(value); return *this;}
85 inline EstimateByTime& WithCurrency(Currency&& value) { SetCurrency(std::move(value)); return *this;}
87
89
93 inline const TimePeriod& GetTimePeriod() const{ return m_timePeriod; }
94 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
95 inline void SetTimePeriod(const TimePeriod& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
96 inline void SetTimePeriod(TimePeriod&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
97 inline EstimateByTime& WithTimePeriod(const TimePeriod& value) { SetTimePeriod(value); return *this;}
98 inline EstimateByTime& WithTimePeriod(TimePeriod&& value) { SetTimePeriod(std::move(value)); return *this;}
100 private:
101
102 double m_usageCost;
103 bool m_usageCostHasBeenSet = false;
104
105 PricingUnit m_pricingUnit;
106 bool m_pricingUnitHasBeenSet = false;
107
108 double m_unit;
109 bool m_unitHasBeenSet = false;
110
111 Currency m_currency;
112 bool m_currencyHasBeenSet = false;
113
114 TimePeriod m_timePeriod;
115 bool m_timePeriodHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace Lightsail
120} // namespace Aws
const PricingUnit & GetPricingUnit() const
EstimateByTime & WithUnit(double value)
AWS_LIGHTSAIL_API EstimateByTime(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API EstimateByTime & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPricingUnit(const PricingUnit &value)
EstimateByTime & WithCurrency(Currency &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPricingUnit(PricingUnit &&value)
EstimateByTime & WithCurrency(const Currency &value)
EstimateByTime & WithPricingUnit(const PricingUnit &value)
const Currency & GetCurrency() const
EstimateByTime & WithUsageCost(double value)
void SetTimePeriod(TimePeriod &&value)
EstimateByTime & WithPricingUnit(PricingUnit &&value)
EstimateByTime & WithTimePeriod(const TimePeriod &value)
const TimePeriod & GetTimePeriod() const
EstimateByTime & WithTimePeriod(TimePeriod &&value)
void SetTimePeriod(const TimePeriod &value)
void SetCurrency(const Currency &value)
Aws::Utils::Json::JsonValue JsonValue