AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PriceScheduleSpecification.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 PriceScheduleSpecification() = default;
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
41 inline long long GetTerm() const { return m_term; }
42 inline bool TermHasBeenSet() const { return m_termHasBeenSet; }
43 inline void SetTerm(long long value) {
44 m_termHasBeenSet = true;
45 m_term = value;
46 }
47 inline PriceScheduleSpecification& WithTerm(long long value) {
48 SetTerm(value);
49 return *this;
50 }
52
54
57 inline double GetPrice() const { return m_price; }
58 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
59 inline void SetPrice(double value) {
60 m_priceHasBeenSet = true;
61 m_price = value;
62 }
63 inline PriceScheduleSpecification& WithPrice(double value) {
64 SetPrice(value);
65 return *this;
66 }
68
70
74 inline CurrencyCodeValues GetCurrencyCode() const { return m_currencyCode; }
75 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
77 m_currencyCodeHasBeenSet = true;
78 m_currencyCode = value;
79 }
81 SetCurrencyCode(value);
82 return *this;
83 }
85 private:
86 long long m_term{0};
87
88 double m_price{0.0};
89
91 bool m_termHasBeenSet = false;
92 bool m_priceHasBeenSet = false;
93 bool m_currencyCodeHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace EC2
98} // 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