AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PriceSchedule.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/CurrencyCodeValues.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_EC2_API PriceSchedule() = default;
35 AWS_EC2_API PriceSchedule(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_EC2_API PriceSchedule& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
53 inline bool GetActive() const { return m_active; }
54 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
55 inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
56 inline PriceSchedule& WithActive(bool value) { SetActive(value); return *this;}
58
60
64 inline CurrencyCodeValues GetCurrencyCode() const { return m_currencyCode; }
65 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
66 inline void SetCurrencyCode(CurrencyCodeValues value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
67 inline PriceSchedule& WithCurrencyCode(CurrencyCodeValues value) { SetCurrencyCode(value); return *this;}
69
71
74 inline double GetPrice() const { return m_price; }
75 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
76 inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
77 inline PriceSchedule& WithPrice(double value) { SetPrice(value); return *this;}
79
81
85 inline long long GetTerm() const { return m_term; }
86 inline bool TermHasBeenSet() const { return m_termHasBeenSet; }
87 inline void SetTerm(long long value) { m_termHasBeenSet = true; m_term = value; }
88 inline PriceSchedule& WithTerm(long long value) { SetTerm(value); return *this;}
90 private:
91
92 bool m_active{false};
93 bool m_activeHasBeenSet = false;
94
96 bool m_currencyCodeHasBeenSet = false;
97
98 double m_price{0.0};
99 bool m_priceHasBeenSet = false;
100
101 long long m_term{0};
102 bool m_termHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace EC2
107} // 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