AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 const CurrencyCodeValues& GetCurrencyCode() const{ return m_currencyCode; }
69 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
70 inline void SetCurrencyCode(const CurrencyCodeValues& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
71 inline void SetCurrencyCode(CurrencyCodeValues&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
73 inline PriceScheduleSpecification& WithCurrencyCode(CurrencyCodeValues&& value) { SetCurrencyCode(std::move(value)); return *this;}
75 private:
76
77 long long m_term;
78 bool m_termHasBeenSet = false;
79
80 double m_price;
81 bool m_priceHasBeenSet = false;
82
83 CurrencyCodeValues m_currencyCode;
84 bool m_currencyCodeHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace EC2
89} // namespace Aws
const CurrencyCodeValues & GetCurrencyCode() const
PriceScheduleSpecification & WithCurrencyCode(const CurrencyCodeValues &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
PriceScheduleSpecification & WithPrice(double value)
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)
void SetCurrencyCode(const CurrencyCodeValues &value)
PriceScheduleSpecification & WithCurrencyCode(CurrencyCodeValues &&value)
std::basic_ostream< char, std::char_traits< char > > OStream