AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PricingDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Xml {
13class XmlNode;
14} // namespace Xml
15} // namespace Utils
16namespace EC2 {
17namespace Model {
18
25 public:
26 AWS_EC2_API PricingDetail() = default;
27 AWS_EC2_API PricingDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
28 AWS_EC2_API PricingDetail& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
29
30 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
31 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
32
34
37 inline int GetCount() const { return m_count; }
38 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
39 inline void SetCount(int value) {
40 m_countHasBeenSet = true;
41 m_count = value;
42 }
43 inline PricingDetail& WithCount(int value) {
44 SetCount(value);
45 return *this;
46 }
48
50
53 inline double GetPrice() const { return m_price; }
54 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
55 inline void SetPrice(double value) {
56 m_priceHasBeenSet = true;
57 m_price = value;
58 }
59 inline PricingDetail& WithPrice(double value) {
60 SetPrice(value);
61 return *this;
62 }
64 private:
65 int m_count{0};
66
67 double m_price{0.0};
68 bool m_countHasBeenSet = false;
69 bool m_priceHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace EC2
74} // 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 PricingDetail()=default
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