AWS SDK for C++  1.9.71
AWS SDK for C++
PriceSchedule.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
52  inline bool GetActive() const{ return m_active; }
53 
64  inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
65 
76  inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
77 
88  inline PriceSchedule& WithActive(bool value) { SetActive(value); return *this;}
89 
90 
95  inline const CurrencyCodeValues& GetCurrencyCode() const{ return m_currencyCode; }
96 
101  inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
102 
107  inline void SetCurrencyCode(const CurrencyCodeValues& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
108 
113  inline void SetCurrencyCode(CurrencyCodeValues&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
114 
119  inline PriceSchedule& WithCurrencyCode(const CurrencyCodeValues& value) { SetCurrencyCode(value); return *this;}
120 
125  inline PriceSchedule& WithCurrencyCode(CurrencyCodeValues&& value) { SetCurrencyCode(std::move(value)); return *this;}
126 
127 
131  inline double GetPrice() const{ return m_price; }
132 
136  inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
137 
141  inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
142 
146  inline PriceSchedule& WithPrice(double value) { SetPrice(value); return *this;}
147 
148 
153  inline long long GetTerm() const{ return m_term; }
154 
159  inline bool TermHasBeenSet() const { return m_termHasBeenSet; }
160 
165  inline void SetTerm(long long value) { m_termHasBeenSet = true; m_term = value; }
166 
171  inline PriceSchedule& WithTerm(long long value) { SetTerm(value); return *this;}
172 
173  private:
174 
175  bool m_active;
176  bool m_activeHasBeenSet;
177 
178  CurrencyCodeValues m_currencyCode;
179  bool m_currencyCodeHasBeenSet;
180 
181  double m_price;
182  bool m_priceHasBeenSet;
183 
184  long long m_term;
185  bool m_termHasBeenSet;
186  };
187 
188 } // namespace Model
189 } // namespace EC2
190 } // namespace Aws
Aws::EC2::Model::PriceSchedule::GetActive
bool GetActive() const
Definition: PriceSchedule.h:52
Aws::EC2::Model::PriceSchedule::PriceHasBeenSet
bool PriceHasBeenSet() const
Definition: PriceSchedule.h:136
Aws::EC2::Model::PriceSchedule::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::PriceSchedule::PriceSchedule
PriceSchedule(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PriceSchedule::PriceSchedule
PriceSchedule()
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::PriceSchedule::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::PriceSchedule::CurrencyCodeHasBeenSet
bool CurrencyCodeHasBeenSet() const
Definition: PriceSchedule.h:101
Aws::EC2::Model::PriceSchedule::GetCurrencyCode
const CurrencyCodeValues & GetCurrencyCode() const
Definition: PriceSchedule.h:95
AWSStreamFwd.h
Aws::EC2::Model::PriceSchedule::SetCurrencyCode
void SetCurrencyCode(CurrencyCodeValues &&value)
Definition: PriceSchedule.h:113
Aws::EC2::Model::PriceSchedule::ActiveHasBeenSet
bool ActiveHasBeenSet() const
Definition: PriceSchedule.h:64
CurrencyCodeValues.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::PriceSchedule::WithCurrencyCode
PriceSchedule & WithCurrencyCode(CurrencyCodeValues &&value)
Definition: PriceSchedule.h:125
Aws::EC2::Model::PriceSchedule::WithCurrencyCode
PriceSchedule & WithCurrencyCode(const CurrencyCodeValues &value)
Definition: PriceSchedule.h:119
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::PriceSchedule::GetPrice
double GetPrice() const
Definition: PriceSchedule.h:131
Aws::EC2::Model::PriceSchedule::WithTerm
PriceSchedule & WithTerm(long long value)
Definition: PriceSchedule.h:171
Aws::EC2::Model::PriceSchedule::WithActive
PriceSchedule & WithActive(bool value)
Definition: PriceSchedule.h:88
Aws::EC2::Model::PriceSchedule
Definition: PriceSchedule.h:32
Aws::EC2::Model::PriceSchedule::SetCurrencyCode
void SetCurrencyCode(const CurrencyCodeValues &value)
Definition: PriceSchedule.h:107
Aws::EC2::Model::PriceSchedule::GetTerm
long long GetTerm() const
Definition: PriceSchedule.h:153
Aws::EC2::Model::PriceSchedule::SetTerm
void SetTerm(long long value)
Definition: PriceSchedule.h:165
Aws
Definition: AccessManagementClient.h:15
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::PriceSchedule::TermHasBeenSet
bool TermHasBeenSet() const
Definition: PriceSchedule.h:159
Aws::EC2::Model::PriceSchedule::WithPrice
PriceSchedule & WithPrice(double value)
Definition: PriceSchedule.h:146
Aws::EC2::Model::PriceSchedule::operator=
PriceSchedule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h
Aws::EC2::Model::CurrencyCodeValues
CurrencyCodeValues
Definition: CurrencyCodeValues.h:17
Aws::EC2::Model::PriceSchedule::SetPrice
void SetPrice(double value)
Definition: PriceSchedule.h:141
Aws::EC2::Model::PriceSchedule::SetActive
void SetActive(bool value)
Definition: PriceSchedule.h:76