AWS SDK for C++  1.9.71
AWS SDK for C++
PriceScheduleSpecification.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 
46  inline const CurrencyCodeValues& GetCurrencyCode() const{ return m_currencyCode; }
47 
52  inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
53 
58  inline void SetCurrencyCode(const CurrencyCodeValues& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
59 
64  inline void SetCurrencyCode(CurrencyCodeValues&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
65 
70  inline PriceScheduleSpecification& WithCurrencyCode(const CurrencyCodeValues& value) { SetCurrencyCode(value); return *this;}
71 
76  inline PriceScheduleSpecification& WithCurrencyCode(CurrencyCodeValues&& value) { SetCurrencyCode(std::move(value)); return *this;}
77 
78 
82  inline double GetPrice() const{ return m_price; }
83 
87  inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
88 
92  inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
93 
97  inline PriceScheduleSpecification& WithPrice(double value) { SetPrice(value); return *this;}
98 
99 
104  inline long long GetTerm() const{ return m_term; }
105 
110  inline bool TermHasBeenSet() const { return m_termHasBeenSet; }
111 
116  inline void SetTerm(long long value) { m_termHasBeenSet = true; m_term = value; }
117 
122  inline PriceScheduleSpecification& WithTerm(long long value) { SetTerm(value); return *this;}
123 
124  private:
125 
126  CurrencyCodeValues m_currencyCode;
127  bool m_currencyCodeHasBeenSet;
128 
129  double m_price;
130  bool m_priceHasBeenSet;
131 
132  long long m_term;
133  bool m_termHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace EC2
138 } // namespace Aws
Aws::EC2::Model::PriceScheduleSpecification::SetPrice
void SetPrice(double value)
Definition: PriceScheduleSpecification.h:92
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::PriceScheduleSpecification::operator=
PriceScheduleSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PriceScheduleSpecification::GetCurrencyCode
const CurrencyCodeValues & GetCurrencyCode() const
Definition: PriceScheduleSpecification.h:46
AWSStreamFwd.h
CurrencyCodeValues.h
Aws::EC2::Model::PriceScheduleSpecification::PriceScheduleSpecification
PriceScheduleSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PriceScheduleSpecification::GetPrice
double GetPrice() const
Definition: PriceScheduleSpecification.h:82
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::PriceScheduleSpecification::TermHasBeenSet
bool TermHasBeenSet() const
Definition: PriceScheduleSpecification.h:110
Aws::EC2::Model::PriceScheduleSpecification::CurrencyCodeHasBeenSet
bool CurrencyCodeHasBeenSet() const
Definition: PriceScheduleSpecification.h:52
Aws::EC2::Model::PriceScheduleSpecification::GetTerm
long long GetTerm() const
Definition: PriceScheduleSpecification.h:104
Aws::EC2::Model::PriceScheduleSpecification::SetTerm
void SetTerm(long long value)
Definition: PriceScheduleSpecification.h:116
Aws::EC2::Model::PriceScheduleSpecification::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::PriceScheduleSpecification
Definition: PriceScheduleSpecification.h:32
Aws::EC2::Model::PriceScheduleSpecification::SetCurrencyCode
void SetCurrencyCode(const CurrencyCodeValues &value)
Definition: PriceScheduleSpecification.h:58
Aws::EC2::Model::PriceScheduleSpecification::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::PriceScheduleSpecification::PriceScheduleSpecification
PriceScheduleSpecification()
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::PriceScheduleSpecification::PriceHasBeenSet
bool PriceHasBeenSet() const
Definition: PriceScheduleSpecification.h:87
Aws::EC2::Model::PriceScheduleSpecification::WithTerm
PriceScheduleSpecification & WithTerm(long long value)
Definition: PriceScheduleSpecification.h:122
Aws::EC2::Model::PriceScheduleSpecification::SetCurrencyCode
void SetCurrencyCode(CurrencyCodeValues &&value)
Definition: PriceScheduleSpecification.h:64
Aws::EC2::Model::PriceScheduleSpecification::WithPrice
PriceScheduleSpecification & WithPrice(double value)
Definition: PriceScheduleSpecification.h:97
EC2_EXPORTS.h
Aws::EC2::Model::PriceScheduleSpecification::WithCurrencyCode
PriceScheduleSpecification & WithCurrencyCode(CurrencyCodeValues &&value)
Definition: PriceScheduleSpecification.h:76
Aws::EC2::Model::CurrencyCodeValues
CurrencyCodeValues
Definition: CurrencyCodeValues.h:17
Aws::EC2::Model::PriceScheduleSpecification::WithCurrencyCode
PriceScheduleSpecification & WithCurrencyCode(const CurrencyCodeValues &value)
Definition: PriceScheduleSpecification.h:70