AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PricingDetail.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9
10namespace Aws
11{
12namespace Utils
13{
14namespace Xml
15{
16 class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_EC2_API PricingDetail();
33 AWS_EC2_API PricingDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_EC2_API PricingDetail& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
39
41
44 inline int GetCount() const{ return m_count; }
45 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
46 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
47 inline PricingDetail& WithCount(int value) { SetCount(value); return *this;}
49
51
54 inline double GetPrice() const{ return m_price; }
55 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
56 inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
57 inline PricingDetail& WithPrice(double value) { SetPrice(value); return *this;}
59 private:
60
61 int m_count;
62 bool m_countHasBeenSet = false;
63
64 double m_price;
65 bool m_priceHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace EC2
70} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PricingDetail & WithCount(int value)
PricingDetail & WithPrice(double value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API PricingDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API PricingDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream