AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PriceSchedule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9#include <aws/ec2/model/CurrencyCodeValues.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
28 public:
29 AWS_EC2_API PriceSchedule() = default;
30 AWS_EC2_API PriceSchedule(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_EC2_API PriceSchedule& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
47 inline bool GetActive() const { return m_active; }
48 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
49 inline void SetActive(bool value) {
50 m_activeHasBeenSet = true;
51 m_active = value;
52 }
53 inline PriceSchedule& WithActive(bool value) {
54 SetActive(value);
55 return *this;
56 }
58
60
64 inline CurrencyCodeValues GetCurrencyCode() const { return m_currencyCode; }
65 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
67 m_currencyCodeHasBeenSet = true;
68 m_currencyCode = value;
69 }
71 SetCurrencyCode(value);
72 return *this;
73 }
75
77
80 inline double GetPrice() const { return m_price; }
81 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
82 inline void SetPrice(double value) {
83 m_priceHasBeenSet = true;
84 m_price = value;
85 }
86 inline PriceSchedule& WithPrice(double value) {
87 SetPrice(value);
88 return *this;
89 }
91
93
97 inline long long GetTerm() const { return m_term; }
98 inline bool TermHasBeenSet() const { return m_termHasBeenSet; }
99 inline void SetTerm(long long value) {
100 m_termHasBeenSet = true;
101 m_term = value;
102 }
103 inline PriceSchedule& WithTerm(long long value) {
104 SetTerm(value);
105 return *this;
106 }
108 private:
109 bool m_active{false};
110
112
113 double m_price{0.0};
114
115 long long m_term{0};
116 bool m_activeHasBeenSet = false;
117 bool m_currencyCodeHasBeenSet = false;
118 bool m_priceHasBeenSet = false;
119 bool m_termHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace EC2
124} // namespace Aws
PriceSchedule & WithPrice(double value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PriceSchedule & WithCurrencyCode(CurrencyCodeValues value)
void SetCurrencyCode(CurrencyCodeValues value)
CurrencyCodeValues GetCurrencyCode() const
AWS_EC2_API PriceSchedule(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API PriceSchedule()=default
void SetTerm(long long value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
PriceSchedule & WithActive(bool value)
PriceSchedule & WithTerm(long long value)
AWS_EC2_API PriceSchedule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream