AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PriceScheduleSpecification.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 PriceScheduleSpecification() = default;
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
47 inline long long GetTerm() const { return m_term; }
48 inline bool TermHasBeenSet() const { return m_termHasBeenSet; }
49 inline void SetTerm(long long value) { m_termHasBeenSet = true; m_term = value; }
50 inline PriceScheduleSpecification& WithTerm(long long value) { SetTerm(value); return *this;}
52
54
57 inline double GetPrice() const { return m_price; }
58 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
59 inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
60 inline PriceScheduleSpecification& WithPrice(double value) { SetPrice(value); return *this;}
62
64
68 inline CurrencyCodeValues GetCurrencyCode() const { return m_currencyCode; }
69 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
70 inline void SetCurrencyCode(CurrencyCodeValues value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
73 private:
74
75 long long m_term{0};
76 bool m_termHasBeenSet = false;
77
78 double m_price{0.0};
79 bool m_priceHasBeenSet = false;
80
82 bool m_currencyCodeHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace EC2
87} // namespace Aws
PriceScheduleSpecification & WithCurrencyCode(CurrencyCodeValues value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
PriceScheduleSpecification & WithPrice(double value)
AWS_EC2_API PriceScheduleSpecification()=default
PriceScheduleSpecification & WithTerm(long long value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API PriceScheduleSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API PriceScheduleSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream