AWS SDK for C++  1.9.72
AWS SDK for C++
PricingDetail.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
9 
10 namespace Aws
11 {
12 namespace Utils
13 {
14 namespace Xml
15 {
16  class XmlNode;
17 } // namespace Xml
18 } // namespace Utils
19 namespace EC2
20 {
21 namespace Model
22 {
23 
30  {
31  public:
35 
36  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37  void OutputToStream(Aws::OStream& oStream, const char* location) const;
38 
39 
43  inline int GetCount() const{ return m_count; }
44 
48  inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
49 
53  inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
54 
58  inline PricingDetail& WithCount(int value) { SetCount(value); return *this;}
59 
60 
64  inline double GetPrice() const{ return m_price; }
65 
69  inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
70 
74  inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
75 
79  inline PricingDetail& WithPrice(double value) { SetPrice(value); return *this;}
80 
81  private:
82 
83  int m_count;
84  bool m_countHasBeenSet;
85 
86  double m_price;
87  bool m_priceHasBeenSet;
88  };
89 
90 } // namespace Model
91 } // namespace EC2
92 } // namespace Aws
Aws::EC2::Model::PricingDetail::WithPrice
PricingDetail & WithPrice(double value)
Definition: PricingDetail.h:79
Aws::EC2::Model::PricingDetail::SetCount
void SetCount(int value)
Definition: PricingDetail.h:53
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::PricingDetail::WithCount
PricingDetail & WithCount(int value)
Definition: PricingDetail.h:58
AWSStreamFwd.h
Aws::EC2::Model::PricingDetail::CountHasBeenSet
bool CountHasBeenSet() const
Definition: PricingDetail.h:48
Aws::EC2::Model::PricingDetail::PricingDetail
PricingDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
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::PricingDetail::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::PricingDetail::GetCount
int GetCount() const
Definition: PricingDetail.h:43
Aws::EC2::Model::PricingDetail::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::PricingDetail
Definition: PricingDetail.h:30
Aws::EC2::Model::PricingDetail::PriceHasBeenSet
bool PriceHasBeenSet() const
Definition: PricingDetail.h:69
Aws::EC2::Model::PricingDetail::PricingDetail
PricingDetail()
Aws::EC2::Model::PricingDetail::GetPrice
double GetPrice() const
Definition: PricingDetail.h:64
Aws
Definition: AccessManagementClient.h:15
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::PricingDetail::SetPrice
void SetPrice(double value)
Definition: PricingDetail.h:74
EC2_EXPORTS.h
Aws::EC2::Model::PricingDetail::operator=
PricingDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)