AWS SDK for C++  1.9.66
AWS SDK for C++
ReservedInstanceLimitPrice.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 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
47  inline double GetAmount() const{ return m_amount; }
48 
53  inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
54 
59  inline void SetAmount(double value) { m_amountHasBeenSet = true; m_amount = value; }
60 
65  inline ReservedInstanceLimitPrice& WithAmount(double value) { SetAmount(value); return *this;}
66 
67 
72  inline const CurrencyCodeValues& GetCurrencyCode() const{ return m_currencyCode; }
73 
78  inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
79 
84  inline void SetCurrencyCode(const CurrencyCodeValues& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
85 
90  inline void SetCurrencyCode(CurrencyCodeValues&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
91 
96  inline ReservedInstanceLimitPrice& WithCurrencyCode(const CurrencyCodeValues& value) { SetCurrencyCode(value); return *this;}
97 
102  inline ReservedInstanceLimitPrice& WithCurrencyCode(CurrencyCodeValues&& value) { SetCurrencyCode(std::move(value)); return *this;}
103 
104  private:
105 
106  double m_amount;
107  bool m_amountHasBeenSet;
108 
109  CurrencyCodeValues m_currencyCode;
110  bool m_currencyCodeHasBeenSet;
111  };
112 
113 } // namespace Model
114 } // namespace EC2
115 } // namespace Aws
Aws::EC2::Model::ReservedInstanceLimitPrice::SetCurrencyCode
void SetCurrencyCode(const CurrencyCodeValues &value)
Definition: ReservedInstanceLimitPrice.h:84
Aws::EC2::Model::ReservedInstanceLimitPrice::WithCurrencyCode
ReservedInstanceLimitPrice & WithCurrencyCode(CurrencyCodeValues &&value)
Definition: ReservedInstanceLimitPrice.h:102
Aws::EC2::Model::ReservedInstanceLimitPrice::ReservedInstanceLimitPrice
ReservedInstanceLimitPrice()
Aws::EC2::Model::ReservedInstanceLimitPrice::SetAmount
void SetAmount(double value)
Definition: ReservedInstanceLimitPrice.h:59
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ReservedInstanceLimitPrice::ReservedInstanceLimitPrice
ReservedInstanceLimitPrice(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
CurrencyCodeValues.h
Aws::EC2::Model::ReservedInstanceLimitPrice::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ReservedInstanceLimitPrice::SetCurrencyCode
void SetCurrencyCode(CurrencyCodeValues &&value)
Definition: ReservedInstanceLimitPrice.h:90
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ReservedInstanceLimitPrice::GetAmount
double GetAmount() const
Definition: ReservedInstanceLimitPrice.h:47
Aws::EC2::Model::ReservedInstanceLimitPrice::operator=
ReservedInstanceLimitPrice & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ReservedInstanceLimitPrice::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ReservedInstanceLimitPrice::WithAmount
ReservedInstanceLimitPrice & WithAmount(double value)
Definition: ReservedInstanceLimitPrice.h:65
Aws::EC2::Model::ReservedInstanceLimitPrice
Definition: ReservedInstanceLimitPrice.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ReservedInstanceLimitPrice::AmountHasBeenSet
bool AmountHasBeenSet() const
Definition: ReservedInstanceLimitPrice.h:53
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ReservedInstanceLimitPrice::CurrencyCodeHasBeenSet
bool CurrencyCodeHasBeenSet() const
Definition: ReservedInstanceLimitPrice.h:78
Aws::EC2::Model::ReservedInstanceLimitPrice::GetCurrencyCode
const CurrencyCodeValues & GetCurrencyCode() const
Definition: ReservedInstanceLimitPrice.h:72
Aws::EC2::Model::ReservedInstanceLimitPrice::WithCurrencyCode
ReservedInstanceLimitPrice & WithCurrencyCode(const CurrencyCodeValues &value)
Definition: ReservedInstanceLimitPrice.h:96
EC2_EXPORTS.h
Aws::EC2::Model::CurrencyCodeValues
CurrencyCodeValues
Definition: CurrencyCodeValues.h:17