AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservedInstancesOffering.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/ec2/model/Tenancy.h>
11#include <aws/ec2/model/OfferingClassType.h>
12#include <aws/ec2/model/OfferingTypeValues.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ec2/model/Scope.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/ec2/model/InstanceType.h>
17#include <aws/ec2/model/RIProductDescription.h>
18#include <aws/ec2/model/PricingDetail.h>
19#include <aws/ec2/model/RecurringCharge.h>
20#include <utility>
21
22namespace Aws
23{
24namespace Utils
25{
26namespace Xml
27{
28 class XmlNode;
29} // namespace Xml
30} // namespace Utils
31namespace EC2
32{
33namespace Model
34{
35
42 {
43 public:
47
48 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
50
51
53
58 inline const CurrencyCodeValues& GetCurrencyCode() const{ return m_currencyCode; }
59 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
60 inline void SetCurrencyCode(const CurrencyCodeValues& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
61 inline void SetCurrencyCode(CurrencyCodeValues&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
63 inline ReservedInstancesOffering& WithCurrencyCode(CurrencyCodeValues&& value) { SetCurrencyCode(std::move(value)); return *this;}
65
67
70 inline const Tenancy& GetInstanceTenancy() const{ return m_instanceTenancy; }
71 inline bool InstanceTenancyHasBeenSet() const { return m_instanceTenancyHasBeenSet; }
72 inline void SetInstanceTenancy(const Tenancy& value) { m_instanceTenancyHasBeenSet = true; m_instanceTenancy = value; }
73 inline void SetInstanceTenancy(Tenancy&& value) { m_instanceTenancyHasBeenSet = true; m_instanceTenancy = std::move(value); }
74 inline ReservedInstancesOffering& WithInstanceTenancy(const Tenancy& value) { SetInstanceTenancy(value); return *this;}
75 inline ReservedInstancesOffering& WithInstanceTenancy(Tenancy&& value) { SetInstanceTenancy(std::move(value)); return *this;}
77
79
84 inline bool GetMarketplace() const{ return m_marketplace; }
85 inline bool MarketplaceHasBeenSet() const { return m_marketplaceHasBeenSet; }
86 inline void SetMarketplace(bool value) { m_marketplaceHasBeenSet = true; m_marketplace = value; }
87 inline ReservedInstancesOffering& WithMarketplace(bool value) { SetMarketplace(value); return *this;}
89
91
96 inline const OfferingClassType& GetOfferingClass() const{ return m_offeringClass; }
97 inline bool OfferingClassHasBeenSet() const { return m_offeringClassHasBeenSet; }
98 inline void SetOfferingClass(const OfferingClassType& value) { m_offeringClassHasBeenSet = true; m_offeringClass = value; }
99 inline void SetOfferingClass(OfferingClassType&& value) { m_offeringClassHasBeenSet = true; m_offeringClass = std::move(value); }
101 inline ReservedInstancesOffering& WithOfferingClass(OfferingClassType&& value) { SetOfferingClass(std::move(value)); return *this;}
103
105
108 inline const OfferingTypeValues& GetOfferingType() const{ return m_offeringType; }
109 inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
110 inline void SetOfferingType(const OfferingTypeValues& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; }
111 inline void SetOfferingType(OfferingTypeValues&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::move(value); }
113 inline ReservedInstancesOffering& WithOfferingType(OfferingTypeValues&& value) { SetOfferingType(std::move(value)); return *this;}
115
117
120 inline const Aws::Vector<PricingDetail>& GetPricingDetails() const{ return m_pricingDetails; }
121 inline bool PricingDetailsHasBeenSet() const { return m_pricingDetailsHasBeenSet; }
122 inline void SetPricingDetails(const Aws::Vector<PricingDetail>& value) { m_pricingDetailsHasBeenSet = true; m_pricingDetails = value; }
123 inline void SetPricingDetails(Aws::Vector<PricingDetail>&& value) { m_pricingDetailsHasBeenSet = true; m_pricingDetails = std::move(value); }
126 inline ReservedInstancesOffering& AddPricingDetails(const PricingDetail& value) { m_pricingDetailsHasBeenSet = true; m_pricingDetails.push_back(value); return *this; }
127 inline ReservedInstancesOffering& AddPricingDetails(PricingDetail&& value) { m_pricingDetailsHasBeenSet = true; m_pricingDetails.push_back(std::move(value)); return *this; }
129
131
134 inline const Aws::Vector<RecurringCharge>& GetRecurringCharges() const{ return m_recurringCharges; }
135 inline bool RecurringChargesHasBeenSet() const { return m_recurringChargesHasBeenSet; }
136 inline void SetRecurringCharges(const Aws::Vector<RecurringCharge>& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = value; }
137 inline void SetRecurringCharges(Aws::Vector<RecurringCharge>&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = std::move(value); }
140 inline ReservedInstancesOffering& AddRecurringCharges(const RecurringCharge& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(value); return *this; }
141 inline ReservedInstancesOffering& AddRecurringCharges(RecurringCharge&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(std::move(value)); return *this; }
143
145
149 inline const Scope& GetScope() const{ return m_scope; }
150 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
151 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
152 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
153 inline ReservedInstancesOffering& WithScope(const Scope& value) { SetScope(value); return *this;}
154 inline ReservedInstancesOffering& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
156
158
163 inline const Aws::String& GetReservedInstancesOfferingId() const{ return m_reservedInstancesOfferingId; }
164 inline bool ReservedInstancesOfferingIdHasBeenSet() const { return m_reservedInstancesOfferingIdHasBeenSet; }
165 inline void SetReservedInstancesOfferingId(const Aws::String& value) { m_reservedInstancesOfferingIdHasBeenSet = true; m_reservedInstancesOfferingId = value; }
166 inline void SetReservedInstancesOfferingId(Aws::String&& value) { m_reservedInstancesOfferingIdHasBeenSet = true; m_reservedInstancesOfferingId = std::move(value); }
167 inline void SetReservedInstancesOfferingId(const char* value) { m_reservedInstancesOfferingIdHasBeenSet = true; m_reservedInstancesOfferingId.assign(value); }
172
174
177 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
178 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
179 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
180 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
181 inline ReservedInstancesOffering& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
182 inline ReservedInstancesOffering& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
184
186
189 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
190 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
191 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
192 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
193 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
195 inline ReservedInstancesOffering& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
196 inline ReservedInstancesOffering& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
198
200
203 inline long long GetDuration() const{ return m_duration; }
204 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
205 inline void SetDuration(long long value) { m_durationHasBeenSet = true; m_duration = value; }
206 inline ReservedInstancesOffering& WithDuration(long long value) { SetDuration(value); return *this;}
208
210
213 inline double GetUsagePrice() const{ return m_usagePrice; }
214 inline bool UsagePriceHasBeenSet() const { return m_usagePriceHasBeenSet; }
215 inline void SetUsagePrice(double value) { m_usagePriceHasBeenSet = true; m_usagePrice = value; }
216 inline ReservedInstancesOffering& WithUsagePrice(double value) { SetUsagePrice(value); return *this;}
218
220
223 inline double GetFixedPrice() const{ return m_fixedPrice; }
224 inline bool FixedPriceHasBeenSet() const { return m_fixedPriceHasBeenSet; }
225 inline void SetFixedPrice(double value) { m_fixedPriceHasBeenSet = true; m_fixedPrice = value; }
226 inline ReservedInstancesOffering& WithFixedPrice(double value) { SetFixedPrice(value); return *this;}
228
230
233 inline const RIProductDescription& GetProductDescription() const{ return m_productDescription; }
234 inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; }
235 inline void SetProductDescription(const RIProductDescription& value) { m_productDescriptionHasBeenSet = true; m_productDescription = value; }
236 inline void SetProductDescription(RIProductDescription&& value) { m_productDescriptionHasBeenSet = true; m_productDescription = std::move(value); }
240 private:
241
242 CurrencyCodeValues m_currencyCode;
243 bool m_currencyCodeHasBeenSet = false;
244
245 Tenancy m_instanceTenancy;
246 bool m_instanceTenancyHasBeenSet = false;
247
248 bool m_marketplace;
249 bool m_marketplaceHasBeenSet = false;
250
251 OfferingClassType m_offeringClass;
252 bool m_offeringClassHasBeenSet = false;
253
254 OfferingTypeValues m_offeringType;
255 bool m_offeringTypeHasBeenSet = false;
256
257 Aws::Vector<PricingDetail> m_pricingDetails;
258 bool m_pricingDetailsHasBeenSet = false;
259
260 Aws::Vector<RecurringCharge> m_recurringCharges;
261 bool m_recurringChargesHasBeenSet = false;
262
263 Scope m_scope;
264 bool m_scopeHasBeenSet = false;
265
266 Aws::String m_reservedInstancesOfferingId;
267 bool m_reservedInstancesOfferingIdHasBeenSet = false;
268
269 InstanceType m_instanceType;
270 bool m_instanceTypeHasBeenSet = false;
271
272 Aws::String m_availabilityZone;
273 bool m_availabilityZoneHasBeenSet = false;
274
275 long long m_duration;
276 bool m_durationHasBeenSet = false;
277
278 double m_usagePrice;
279 bool m_usagePriceHasBeenSet = false;
280
281 double m_fixedPrice;
282 bool m_fixedPriceHasBeenSet = false;
283
284 RIProductDescription m_productDescription;
285 bool m_productDescriptionHasBeenSet = false;
286 };
287
288} // namespace Model
289} // namespace EC2
290} // namespace Aws
void SetReservedInstancesOfferingId(const Aws::String &value)
ReservedInstancesOffering & WithMarketplace(bool value)
ReservedInstancesOffering & WithInstanceTenancy(const Tenancy &value)
void SetPricingDetails(Aws::Vector< PricingDetail > &&value)
ReservedInstancesOffering & WithScope(Scope &&value)
ReservedInstancesOffering & WithOfferingType(const OfferingTypeValues &value)
ReservedInstancesOffering & WithInstanceTenancy(Tenancy &&value)
ReservedInstancesOffering & WithAvailabilityZone(const char *value)
void SetPricingDetails(const Aws::Vector< PricingDetail > &value)
const OfferingClassType & GetOfferingClass() const
ReservedInstancesOffering & WithOfferingClass(const OfferingClassType &value)
void SetRecurringCharges(const Aws::Vector< RecurringCharge > &value)
const CurrencyCodeValues & GetCurrencyCode() const
ReservedInstancesOffering & WithUsagePrice(double value)
const RIProductDescription & GetProductDescription() const
ReservedInstancesOffering & AddRecurringCharges(RecurringCharge &&value)
ReservedInstancesOffering & AddPricingDetails(const PricingDetail &value)
const OfferingTypeValues & GetOfferingType() const
ReservedInstancesOffering & WithPricingDetails(Aws::Vector< PricingDetail > &&value)
ReservedInstancesOffering & AddPricingDetails(PricingDetail &&value)
ReservedInstancesOffering & WithAvailabilityZone(const Aws::String &value)
void SetOfferingType(const OfferingTypeValues &value)
void SetRecurringCharges(Aws::Vector< RecurringCharge > &&value)
AWS_EC2_API ReservedInstancesOffering & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedInstancesOffering & WithDuration(long long value)
ReservedInstancesOffering & AddRecurringCharges(const RecurringCharge &value)
ReservedInstancesOffering & WithProductDescription(RIProductDescription &&value)
void SetCurrencyCode(const CurrencyCodeValues &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetProductDescription(const RIProductDescription &value)
ReservedInstancesOffering & WithFixedPrice(double value)
ReservedInstancesOffering & WithReservedInstancesOfferingId(const Aws::String &value)
ReservedInstancesOffering & WithRecurringCharges(Aws::Vector< RecurringCharge > &&value)
ReservedInstancesOffering & WithPricingDetails(const Aws::Vector< PricingDetail > &value)
AWS_EC2_API ReservedInstancesOffering(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedInstancesOffering & WithOfferingClass(OfferingClassType &&value)
const Aws::Vector< PricingDetail > & GetPricingDetails() const
ReservedInstancesOffering & WithScope(const Scope &value)
ReservedInstancesOffering & WithProductDescription(const RIProductDescription &value)
ReservedInstancesOffering & WithCurrencyCode(CurrencyCodeValues &&value)
void SetProductDescription(RIProductDescription &&value)
ReservedInstancesOffering & WithRecurringCharges(const Aws::Vector< RecurringCharge > &value)
ReservedInstancesOffering & WithOfferingType(OfferingTypeValues &&value)
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
ReservedInstancesOffering & WithCurrencyCode(const CurrencyCodeValues &value)
ReservedInstancesOffering & WithInstanceType(const InstanceType &value)
void SetOfferingClass(const OfferingClassType &value)
ReservedInstancesOffering & WithInstanceType(InstanceType &&value)
ReservedInstancesOffering & WithReservedInstancesOfferingId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ReservedInstancesOffering & WithAvailabilityZone(Aws::String &&value)
ReservedInstancesOffering & WithReservedInstancesOfferingId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream