AWS SDK for C++  1.9.70
AWS SDK for C++
HostOffering.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const CurrencyCodeValues& GetCurrencyCode() const{ return m_currencyCode; }
49 
53  inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
54 
58  inline void SetCurrencyCode(const CurrencyCodeValues& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
59 
63  inline void SetCurrencyCode(CurrencyCodeValues&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
64 
68  inline HostOffering& WithCurrencyCode(const CurrencyCodeValues& value) { SetCurrencyCode(value); return *this;}
69 
73  inline HostOffering& WithCurrencyCode(CurrencyCodeValues&& value) { SetCurrencyCode(std::move(value)); return *this;}
74 
75 
79  inline int GetDuration() const{ return m_duration; }
80 
84  inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
85 
89  inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
90 
94  inline HostOffering& WithDuration(int value) { SetDuration(value); return *this;}
95 
96 
100  inline const Aws::String& GetHourlyPrice() const{ return m_hourlyPrice; }
101 
105  inline bool HourlyPriceHasBeenSet() const { return m_hourlyPriceHasBeenSet; }
106 
110  inline void SetHourlyPrice(const Aws::String& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = value; }
111 
115  inline void SetHourlyPrice(Aws::String&& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = std::move(value); }
116 
120  inline void SetHourlyPrice(const char* value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice.assign(value); }
121 
125  inline HostOffering& WithHourlyPrice(const Aws::String& value) { SetHourlyPrice(value); return *this;}
126 
130  inline HostOffering& WithHourlyPrice(Aws::String&& value) { SetHourlyPrice(std::move(value)); return *this;}
131 
135  inline HostOffering& WithHourlyPrice(const char* value) { SetHourlyPrice(value); return *this;}
136 
137 
141  inline const Aws::String& GetInstanceFamily() const{ return m_instanceFamily; }
142 
146  inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
147 
151  inline void SetInstanceFamily(const Aws::String& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; }
152 
156  inline void SetInstanceFamily(Aws::String&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); }
157 
161  inline void SetInstanceFamily(const char* value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily.assign(value); }
162 
166  inline HostOffering& WithInstanceFamily(const Aws::String& value) { SetInstanceFamily(value); return *this;}
167 
171  inline HostOffering& WithInstanceFamily(Aws::String&& value) { SetInstanceFamily(std::move(value)); return *this;}
172 
176  inline HostOffering& WithInstanceFamily(const char* value) { SetInstanceFamily(value); return *this;}
177 
178 
182  inline const Aws::String& GetOfferingId() const{ return m_offeringId; }
183 
187  inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
188 
192  inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; }
193 
197  inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); }
198 
202  inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); }
203 
207  inline HostOffering& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;}
208 
212  inline HostOffering& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;}
213 
217  inline HostOffering& WithOfferingId(const char* value) { SetOfferingId(value); return *this;}
218 
219 
223  inline const PaymentOption& GetPaymentOption() const{ return m_paymentOption; }
224 
228  inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
229 
233  inline void SetPaymentOption(const PaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
234 
238  inline void SetPaymentOption(PaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); }
239 
243  inline HostOffering& WithPaymentOption(const PaymentOption& value) { SetPaymentOption(value); return *this;}
244 
248  inline HostOffering& WithPaymentOption(PaymentOption&& value) { SetPaymentOption(std::move(value)); return *this;}
249 
250 
255  inline const Aws::String& GetUpfrontPrice() const{ return m_upfrontPrice; }
256 
261  inline bool UpfrontPriceHasBeenSet() const { return m_upfrontPriceHasBeenSet; }
262 
267  inline void SetUpfrontPrice(const Aws::String& value) { m_upfrontPriceHasBeenSet = true; m_upfrontPrice = value; }
268 
273  inline void SetUpfrontPrice(Aws::String&& value) { m_upfrontPriceHasBeenSet = true; m_upfrontPrice = std::move(value); }
274 
279  inline void SetUpfrontPrice(const char* value) { m_upfrontPriceHasBeenSet = true; m_upfrontPrice.assign(value); }
280 
285  inline HostOffering& WithUpfrontPrice(const Aws::String& value) { SetUpfrontPrice(value); return *this;}
286 
291  inline HostOffering& WithUpfrontPrice(Aws::String&& value) { SetUpfrontPrice(std::move(value)); return *this;}
292 
297  inline HostOffering& WithUpfrontPrice(const char* value) { SetUpfrontPrice(value); return *this;}
298 
299  private:
300 
301  CurrencyCodeValues m_currencyCode;
302  bool m_currencyCodeHasBeenSet;
303 
304  int m_duration;
305  bool m_durationHasBeenSet;
306 
307  Aws::String m_hourlyPrice;
308  bool m_hourlyPriceHasBeenSet;
309 
310  Aws::String m_instanceFamily;
311  bool m_instanceFamilyHasBeenSet;
312 
313  Aws::String m_offeringId;
314  bool m_offeringIdHasBeenSet;
315 
316  PaymentOption m_paymentOption;
317  bool m_paymentOptionHasBeenSet;
318 
319  Aws::String m_upfrontPrice;
320  bool m_upfrontPriceHasBeenSet;
321  };
322 
323 } // namespace Model
324 } // namespace EC2
325 } // namespace Aws
Aws::EC2::Model::HostOffering::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::HostOffering::SetPaymentOption
void SetPaymentOption(PaymentOption &&value)
Definition: HostOffering.h:238
Aws::EC2::Model::HostOffering::WithInstanceFamily
HostOffering & WithInstanceFamily(const char *value)
Definition: HostOffering.h:176
Aws::EC2::Model::HostOffering::WithHourlyPrice
HostOffering & WithHourlyPrice(Aws::String &&value)
Definition: HostOffering.h:130
Aws::EC2::Model::HostOffering::SetCurrencyCode
void SetCurrencyCode(const CurrencyCodeValues &value)
Definition: HostOffering.h:58
Aws::EC2::Model::HostOffering::WithUpfrontPrice
HostOffering & WithUpfrontPrice(const char *value)
Definition: HostOffering.h:297
Aws::EC2::Model::HostOffering::HostOffering
HostOffering(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::HostOffering::GetUpfrontPrice
const Aws::String & GetUpfrontPrice() const
Definition: HostOffering.h:255
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::HostOffering::SetInstanceFamily
void SetInstanceFamily(const char *value)
Definition: HostOffering.h:161
Aws::EC2::Model::HostOffering::OfferingIdHasBeenSet
bool OfferingIdHasBeenSet() const
Definition: HostOffering.h:187
Aws::EC2::Model::HostOffering::WithUpfrontPrice
HostOffering & WithUpfrontPrice(Aws::String &&value)
Definition: HostOffering.h:291
Aws::EC2::Model::HostOffering::WithInstanceFamily
HostOffering & WithInstanceFamily(Aws::String &&value)
Definition: HostOffering.h:171
Aws::EC2::Model::HostOffering::GetDuration
int GetDuration() const
Definition: HostOffering.h:79
AWSStreamFwd.h
CurrencyCodeValues.h
Aws::EC2::Model::HostOffering::SetInstanceFamily
void SetInstanceFamily(Aws::String &&value)
Definition: HostOffering.h:156
Aws::EC2::Model::HostOffering::SetCurrencyCode
void SetCurrencyCode(CurrencyCodeValues &&value)
Definition: HostOffering.h:63
Aws::EC2::Model::HostOffering::WithOfferingId
HostOffering & WithOfferingId(const Aws::String &value)
Definition: HostOffering.h:207
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::HostOffering::SetOfferingId
void SetOfferingId(const Aws::String &value)
Definition: HostOffering.h:192
Aws::EC2::Model::HostOffering::SetOfferingId
void SetOfferingId(Aws::String &&value)
Definition: HostOffering.h:197
Aws::EC2::Model::HostOffering::WithCurrencyCode
HostOffering & WithCurrencyCode(const CurrencyCodeValues &value)
Definition: HostOffering.h:68
Aws::EC2::Model::HostOffering::operator=
HostOffering & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::HostOffering::WithPaymentOption
HostOffering & WithPaymentOption(PaymentOption &&value)
Definition: HostOffering.h:248
Aws::EC2::Model::HostOffering::SetPaymentOption
void SetPaymentOption(const PaymentOption &value)
Definition: HostOffering.h:233
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::HostOffering::SetHourlyPrice
void SetHourlyPrice(const char *value)
Definition: HostOffering.h:120
Aws::EC2::Model::HostOffering
Definition: HostOffering.h:35
Aws::EC2::Model::HostOffering::DurationHasBeenSet
bool DurationHasBeenSet() const
Definition: HostOffering.h:84
Aws::EC2::Model::HostOffering::PaymentOptionHasBeenSet
bool PaymentOptionHasBeenSet() const
Definition: HostOffering.h:228
Aws::EC2::Model::HostOffering::WithUpfrontPrice
HostOffering & WithUpfrontPrice(const Aws::String &value)
Definition: HostOffering.h:285
Aws::EC2::Model::HostOffering::SetHourlyPrice
void SetHourlyPrice(Aws::String &&value)
Definition: HostOffering.h:115
Aws::EC2::Model::HostOffering::WithDuration
HostOffering & WithDuration(int value)
Definition: HostOffering.h:94
Aws::EC2::Model::HostOffering::WithOfferingId
HostOffering & WithOfferingId(Aws::String &&value)
Definition: HostOffering.h:212
AWSString.h
Aws::EC2::Model::HostOffering::GetCurrencyCode
const CurrencyCodeValues & GetCurrencyCode() const
Definition: HostOffering.h:48
Aws::EC2::Model::HostOffering::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::HostOffering::UpfrontPriceHasBeenSet
bool UpfrontPriceHasBeenSet() const
Definition: HostOffering.h:261
Aws::EC2::Model::HostOffering::WithOfferingId
HostOffering & WithOfferingId(const char *value)
Definition: HostOffering.h:217
Aws::EC2::Model::HostOffering::SetUpfrontPrice
void SetUpfrontPrice(Aws::String &&value)
Definition: HostOffering.h:273
Aws::EC2::Model::HostOffering::HostOffering
HostOffering()
Aws::EC2::Model::HostOffering::HourlyPriceHasBeenSet
bool HourlyPriceHasBeenSet() const
Definition: HostOffering.h:105
Aws::EC2::Model::HostOffering::SetUpfrontPrice
void SetUpfrontPrice(const Aws::String &value)
Definition: HostOffering.h:267
Aws::EC2::Model::HostOffering::SetDuration
void SetDuration(int value)
Definition: HostOffering.h:89
Aws::EC2::Model::HostOffering::InstanceFamilyHasBeenSet
bool InstanceFamilyHasBeenSet() const
Definition: HostOffering.h:146
Aws
Definition: AccessManagementClient.h:15
PaymentOption.h
Aws::EC2::Model::HostOffering::SetOfferingId
void SetOfferingId(const char *value)
Definition: HostOffering.h:202
Aws::EC2::Model::HostOffering::GetHourlyPrice
const Aws::String & GetHourlyPrice() const
Definition: HostOffering.h:100
Aws::EC2::Model::HostOffering::WithInstanceFamily
HostOffering & WithInstanceFamily(const Aws::String &value)
Definition: HostOffering.h:166
Aws::EC2::Model::HostOffering::WithHourlyPrice
HostOffering & WithHourlyPrice(const Aws::String &value)
Definition: HostOffering.h:125
Aws::EC2::Model::HostOffering::WithHourlyPrice
HostOffering & WithHourlyPrice(const char *value)
Definition: HostOffering.h:135
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::HostOffering::GetInstanceFamily
const Aws::String & GetInstanceFamily() const
Definition: HostOffering.h:141
Aws::EC2::Model::HostOffering::GetPaymentOption
const PaymentOption & GetPaymentOption() const
Definition: HostOffering.h:223
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::HostOffering::WithPaymentOption
HostOffering & WithPaymentOption(const PaymentOption &value)
Definition: HostOffering.h:243
Aws::EC2::Model::HostOffering::WithCurrencyCode
HostOffering & WithCurrencyCode(CurrencyCodeValues &&value)
Definition: HostOffering.h:73
Aws::EC2::Model::HostOffering::CurrencyCodeHasBeenSet
bool CurrencyCodeHasBeenSet() const
Definition: HostOffering.h:53
EC2_EXPORTS.h
Aws::EC2::Model::PaymentOption
PaymentOption
Definition: PaymentOption.h:17
Aws::EC2::Model::HostOffering::SetHourlyPrice
void SetHourlyPrice(const Aws::String &value)
Definition: HostOffering.h:110
Aws::EC2::Model::CurrencyCodeValues
CurrencyCodeValues
Definition: CurrencyCodeValues.h:17
Aws::EC2::Model::HostOffering::SetInstanceFamily
void SetInstanceFamily(const Aws::String &value)
Definition: HostOffering.h:151
Aws::EC2::Model::HostOffering::GetOfferingId
const Aws::String & GetOfferingId() const
Definition: HostOffering.h:182
Aws::EC2::Model::HostOffering::SetUpfrontPrice
void SetUpfrontPrice(const char *value)
Definition: HostOffering.h:279