AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
HostOffering.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 <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/PaymentOption.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_EC2_API HostOffering() = default;
38 AWS_EC2_API HostOffering(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_EC2_API HostOffering& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline CurrencyCodeValues GetCurrencyCode() const { return m_currencyCode; }
50 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
51 inline void SetCurrencyCode(CurrencyCodeValues value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
52 inline HostOffering& WithCurrencyCode(CurrencyCodeValues value) { SetCurrencyCode(value); return *this;}
54
56
59 inline int GetDuration() const { return m_duration; }
60 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
61 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
62 inline HostOffering& WithDuration(int value) { SetDuration(value); return *this;}
64
66
69 inline const Aws::String& GetHourlyPrice() const { return m_hourlyPrice; }
70 inline bool HourlyPriceHasBeenSet() const { return m_hourlyPriceHasBeenSet; }
71 template<typename HourlyPriceT = Aws::String>
72 void SetHourlyPrice(HourlyPriceT&& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = std::forward<HourlyPriceT>(value); }
73 template<typename HourlyPriceT = Aws::String>
74 HostOffering& WithHourlyPrice(HourlyPriceT&& value) { SetHourlyPrice(std::forward<HourlyPriceT>(value)); return *this;}
76
78
81 inline const Aws::String& GetInstanceFamily() const { return m_instanceFamily; }
82 inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
83 template<typename InstanceFamilyT = Aws::String>
84 void SetInstanceFamily(InstanceFamilyT&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::forward<InstanceFamilyT>(value); }
85 template<typename InstanceFamilyT = Aws::String>
86 HostOffering& WithInstanceFamily(InstanceFamilyT&& value) { SetInstanceFamily(std::forward<InstanceFamilyT>(value)); return *this;}
88
90
93 inline const Aws::String& GetOfferingId() const { return m_offeringId; }
94 inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
95 template<typename OfferingIdT = Aws::String>
96 void SetOfferingId(OfferingIdT&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::forward<OfferingIdT>(value); }
97 template<typename OfferingIdT = Aws::String>
98 HostOffering& WithOfferingId(OfferingIdT&& value) { SetOfferingId(std::forward<OfferingIdT>(value)); return *this;}
100
102
105 inline PaymentOption GetPaymentOption() const { return m_paymentOption; }
106 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
107 inline void SetPaymentOption(PaymentOption value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
108 inline HostOffering& WithPaymentOption(PaymentOption value) { SetPaymentOption(value); return *this;}
110
112
116 inline const Aws::String& GetUpfrontPrice() const { return m_upfrontPrice; }
117 inline bool UpfrontPriceHasBeenSet() const { return m_upfrontPriceHasBeenSet; }
118 template<typename UpfrontPriceT = Aws::String>
119 void SetUpfrontPrice(UpfrontPriceT&& value) { m_upfrontPriceHasBeenSet = true; m_upfrontPrice = std::forward<UpfrontPriceT>(value); }
120 template<typename UpfrontPriceT = Aws::String>
121 HostOffering& WithUpfrontPrice(UpfrontPriceT&& value) { SetUpfrontPrice(std::forward<UpfrontPriceT>(value)); return *this;}
123 private:
124
126 bool m_currencyCodeHasBeenSet = false;
127
128 int m_duration{0};
129 bool m_durationHasBeenSet = false;
130
131 Aws::String m_hourlyPrice;
132 bool m_hourlyPriceHasBeenSet = false;
133
134 Aws::String m_instanceFamily;
135 bool m_instanceFamilyHasBeenSet = false;
136
137 Aws::String m_offeringId;
138 bool m_offeringIdHasBeenSet = false;
139
140 PaymentOption m_paymentOption{PaymentOption::NOT_SET};
141 bool m_paymentOptionHasBeenSet = false;
142
143 Aws::String m_upfrontPrice;
144 bool m_upfrontPriceHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace EC2
149} // namespace Aws
PaymentOption GetPaymentOption() const
AWS_EC2_API HostOffering & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
HostOffering & WithOfferingId(OfferingIdT &&value)
HostOffering & WithUpfrontPrice(UpfrontPriceT &&value)
AWS_EC2_API HostOffering()=default
const Aws::String & GetUpfrontPrice() const
const Aws::String & GetOfferingId() const
HostOffering & WithHourlyPrice(HourlyPriceT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
HostOffering & WithDuration(int value)
void SetUpfrontPrice(UpfrontPriceT &&value)
const Aws::String & GetInstanceFamily() const
void SetOfferingId(OfferingIdT &&value)
CurrencyCodeValues GetCurrencyCode() const
void SetPaymentOption(PaymentOption value)
bool InstanceFamilyHasBeenSet() const
void SetHourlyPrice(HourlyPriceT &&value)
AWS_EC2_API HostOffering(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInstanceFamily(InstanceFamilyT &&value)
HostOffering & WithPaymentOption(PaymentOption value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetCurrencyCode(CurrencyCodeValues value)
HostOffering & WithCurrencyCode(CurrencyCodeValues value)
HostOffering & WithInstanceFamily(InstanceFamilyT &&value)
const Aws::String & GetHourlyPrice() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream