AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const CurrencyCodeValues& GetCurrencyCode() const{ return m_currencyCode; }
50 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
51 inline void SetCurrencyCode(const CurrencyCodeValues& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
52 inline void SetCurrencyCode(CurrencyCodeValues&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
53 inline HostOffering& WithCurrencyCode(const CurrencyCodeValues& value) { SetCurrencyCode(value); return *this;}
54 inline HostOffering& WithCurrencyCode(CurrencyCodeValues&& value) { SetCurrencyCode(std::move(value)); return *this;}
56
58
61 inline int GetDuration() const{ return m_duration; }
62 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
63 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
64 inline HostOffering& WithDuration(int value) { SetDuration(value); return *this;}
66
68
71 inline const Aws::String& GetHourlyPrice() const{ return m_hourlyPrice; }
72 inline bool HourlyPriceHasBeenSet() const { return m_hourlyPriceHasBeenSet; }
73 inline void SetHourlyPrice(const Aws::String& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = value; }
74 inline void SetHourlyPrice(Aws::String&& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = std::move(value); }
75 inline void SetHourlyPrice(const char* value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice.assign(value); }
76 inline HostOffering& WithHourlyPrice(const Aws::String& value) { SetHourlyPrice(value); return *this;}
77 inline HostOffering& WithHourlyPrice(Aws::String&& value) { SetHourlyPrice(std::move(value)); return *this;}
78 inline HostOffering& WithHourlyPrice(const char* value) { SetHourlyPrice(value); return *this;}
80
82
85 inline const Aws::String& GetInstanceFamily() const{ return m_instanceFamily; }
86 inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
87 inline void SetInstanceFamily(const Aws::String& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; }
88 inline void SetInstanceFamily(Aws::String&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); }
89 inline void SetInstanceFamily(const char* value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily.assign(value); }
90 inline HostOffering& WithInstanceFamily(const Aws::String& value) { SetInstanceFamily(value); return *this;}
91 inline HostOffering& WithInstanceFamily(Aws::String&& value) { SetInstanceFamily(std::move(value)); return *this;}
92 inline HostOffering& WithInstanceFamily(const char* value) { SetInstanceFamily(value); return *this;}
94
96
99 inline const Aws::String& GetOfferingId() const{ return m_offeringId; }
100 inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
101 inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; }
102 inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); }
103 inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); }
104 inline HostOffering& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;}
105 inline HostOffering& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;}
106 inline HostOffering& WithOfferingId(const char* value) { SetOfferingId(value); return *this;}
108
110
113 inline const PaymentOption& GetPaymentOption() const{ return m_paymentOption; }
114 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
115 inline void SetPaymentOption(const PaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
116 inline void SetPaymentOption(PaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); }
117 inline HostOffering& WithPaymentOption(const PaymentOption& value) { SetPaymentOption(value); return *this;}
118 inline HostOffering& WithPaymentOption(PaymentOption&& value) { SetPaymentOption(std::move(value)); return *this;}
120
122
126 inline const Aws::String& GetUpfrontPrice() const{ return m_upfrontPrice; }
127 inline bool UpfrontPriceHasBeenSet() const { return m_upfrontPriceHasBeenSet; }
128 inline void SetUpfrontPrice(const Aws::String& value) { m_upfrontPriceHasBeenSet = true; m_upfrontPrice = value; }
129 inline void SetUpfrontPrice(Aws::String&& value) { m_upfrontPriceHasBeenSet = true; m_upfrontPrice = std::move(value); }
130 inline void SetUpfrontPrice(const char* value) { m_upfrontPriceHasBeenSet = true; m_upfrontPrice.assign(value); }
131 inline HostOffering& WithUpfrontPrice(const Aws::String& value) { SetUpfrontPrice(value); return *this;}
132 inline HostOffering& WithUpfrontPrice(Aws::String&& value) { SetUpfrontPrice(std::move(value)); return *this;}
133 inline HostOffering& WithUpfrontPrice(const char* value) { SetUpfrontPrice(value); return *this;}
135 private:
136
137 CurrencyCodeValues m_currencyCode;
138 bool m_currencyCodeHasBeenSet = false;
139
140 int m_duration;
141 bool m_durationHasBeenSet = false;
142
143 Aws::String m_hourlyPrice;
144 bool m_hourlyPriceHasBeenSet = false;
145
146 Aws::String m_instanceFamily;
147 bool m_instanceFamilyHasBeenSet = false;
148
149 Aws::String m_offeringId;
150 bool m_offeringIdHasBeenSet = false;
151
152 PaymentOption m_paymentOption;
153 bool m_paymentOptionHasBeenSet = false;
154
155 Aws::String m_upfrontPrice;
156 bool m_upfrontPriceHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace EC2
161} // namespace Aws
HostOffering & WithOfferingId(const Aws::String &value)
AWS_EC2_API HostOffering & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
HostOffering & WithCurrencyCode(const CurrencyCodeValues &value)
HostOffering & WithHourlyPrice(Aws::String &&value)
void SetCurrencyCode(CurrencyCodeValues &&value)
HostOffering & WithUpfrontPrice(Aws::String &&value)
HostOffering & WithPaymentOption(const PaymentOption &value)
const CurrencyCodeValues & GetCurrencyCode() const
void SetOfferingId(const char *value)
void SetCurrencyCode(const CurrencyCodeValues &value)
HostOffering & WithHourlyPrice(const char *value)
HostOffering & WithUpfrontPrice(const Aws::String &value)
HostOffering & WithCurrencyCode(CurrencyCodeValues &&value)
HostOffering & WithPaymentOption(PaymentOption &&value)
const Aws::String & GetUpfrontPrice() const
const Aws::String & GetOfferingId() const
void SetPaymentOption(PaymentOption &&value)
HostOffering & WithInstanceFamily(const Aws::String &value)
HostOffering & WithHourlyPrice(const Aws::String &value)
void SetInstanceFamily(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetUpfrontPrice(Aws::String &&value)
void SetHourlyPrice(Aws::String &&value)
HostOffering & WithOfferingId(const char *value)
void SetInstanceFamily(Aws::String &&value)
HostOffering & WithDuration(int value)
HostOffering & WithOfferingId(Aws::String &&value)
void SetPaymentOption(const PaymentOption &value)
HostOffering & WithInstanceFamily(Aws::String &&value)
const Aws::String & GetInstanceFamily() const
void SetHourlyPrice(const char *value)
void SetHourlyPrice(const Aws::String &value)
void SetUpfrontPrice(const Aws::String &value)
void SetOfferingId(const Aws::String &value)
void SetOfferingId(Aws::String &&value)
void SetInstanceFamily(const char *value)
bool InstanceFamilyHasBeenSet() const
HostOffering & WithUpfrontPrice(const char *value)
AWS_EC2_API HostOffering(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const PaymentOption & GetPaymentOption() const
void SetUpfrontPrice(const char *value)
const Aws::String & GetHourlyPrice() const
HostOffering & WithInstanceFamily(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream