AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const CurrencyCodeValues& GetCurrencyCode() const{ return m_currencyCode; }
65 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
66 inline void SetCurrencyCode(const CurrencyCodeValues& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
67 inline void SetCurrencyCode(CurrencyCodeValues&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
68 inline PriceSchedule& WithCurrencyCode(const CurrencyCodeValues& value) { SetCurrencyCode(value); return *this;}
69 inline PriceSchedule& WithCurrencyCode(CurrencyCodeValues&& value) { SetCurrencyCode(std::move(value)); return *this;}
71
73
76 inline double GetPrice() const{ return m_price; }
77 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
78 inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
79 inline PriceSchedule& WithPrice(double value) { SetPrice(value); return *this;}
81
83
87 inline long long GetTerm() const{ return m_term; }
88 inline bool TermHasBeenSet() const { return m_termHasBeenSet; }
89 inline void SetTerm(long long value) { m_termHasBeenSet = true; m_term = value; }
90 inline PriceSchedule& WithTerm(long long value) { SetTerm(value); return *this;}
92 private:
93
94 bool m_active;
95 bool m_activeHasBeenSet = false;
96
97 CurrencyCodeValues m_currencyCode;
98 bool m_currencyCodeHasBeenSet = false;
99
100 double m_price;
101 bool m_priceHasBeenSet = false;
102
103 long long m_term;
104 bool m_termHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace EC2
109} // namespace Aws
void SetCurrencyCode(CurrencyCodeValues &&value)
PriceSchedule & WithCurrencyCode(CurrencyCodeValues &&value)
PriceSchedule & WithPrice(double value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCurrencyCode(const CurrencyCodeValues &value)
const CurrencyCodeValues & GetCurrencyCode() const
AWS_EC2_API PriceSchedule(const Aws::Utils::Xml::XmlNode &xmlNode)
PriceSchedule & WithCurrencyCode(const CurrencyCodeValues &value)
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