AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ReservedInstanceLimitPrice.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
29 public:
30 AWS_EC2_API ReservedInstanceLimitPrice() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
42 inline double GetAmount() const { return m_amount; }
43 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
44 inline void SetAmount(double value) {
45 m_amountHasBeenSet = true;
46 m_amount = value;
47 }
48 inline ReservedInstanceLimitPrice& WithAmount(double value) {
49 SetAmount(value);
50 return *this;
51 }
53
55
59 inline CurrencyCodeValues GetCurrencyCode() const { return m_currencyCode; }
60 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
62 m_currencyCodeHasBeenSet = true;
63 m_currencyCode = value;
64 }
66 SetCurrencyCode(value);
67 return *this;
68 }
70 private:
71 double m_amount{0.0};
72
74 bool m_amountHasBeenSet = false;
75 bool m_currencyCodeHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace EC2
80} // namespace Aws
AWS_EC2_API ReservedInstanceLimitPrice & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ReservedInstanceLimitPrice()=default
ReservedInstanceLimitPrice & WithCurrencyCode(CurrencyCodeValues value)
AWS_EC2_API ReservedInstanceLimitPrice(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedInstanceLimitPrice & WithAmount(double value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_ostream< char, std::char_traits< char > > OStream