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/core/utils/DateTime.h>
18#include <aws/ec2/model/RIProductDescription.h>
19#include <aws/ec2/model/ReservedInstanceState.h>
20#include <aws/ec2/model/RecurringCharge.h>
21#include <aws/ec2/model/Tag.h>
124 inline void SetScope(
const Scope& value) { m_scopeHasBeenSet =
true; m_scope = value; }
125 inline void SetScope(
Scope&& value) { m_scopeHasBeenSet =
true; m_scope = std::move(value); }
152 inline void SetReservedInstancesId(
const char* value) { m_reservedInstancesIdHasBeenSet =
true; m_reservedInstancesId.assign(value); }
178 inline void SetAvailabilityZone(
const char* value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone.assign(value); }
214 inline void SetDuration(
long long value) { m_durationHasBeenSet =
true; m_duration = value; }
224 inline void SetUsagePrice(
double value) { m_usagePriceHasBeenSet =
true; m_usagePrice = value; }
234 inline void SetFixedPrice(
double value) { m_fixedPriceHasBeenSet =
true; m_fixedPrice = value; }
244 inline void SetInstanceCount(
int value) { m_instanceCountHasBeenSet =
true; m_instanceCount = value; }
274 bool m_currencyCodeHasBeenSet =
false;
277 bool m_instanceTenancyHasBeenSet =
false;
280 bool m_offeringClassHasBeenSet =
false;
283 bool m_offeringTypeHasBeenSet =
false;
286 bool m_recurringChargesHasBeenSet =
false;
289 bool m_scopeHasBeenSet =
false;
292 bool m_tagsHasBeenSet =
false;
295 bool m_reservedInstancesIdHasBeenSet =
false;
298 bool m_instanceTypeHasBeenSet =
false;
301 bool m_availabilityZoneHasBeenSet =
false;
304 bool m_startHasBeenSet =
false;
307 bool m_endHasBeenSet =
false;
309 long long m_duration;
310 bool m_durationHasBeenSet =
false;
313 bool m_usagePriceHasBeenSet =
false;
316 bool m_fixedPriceHasBeenSet =
false;
319 bool m_instanceCountHasBeenSet =
false;
322 bool m_productDescriptionHasBeenSet =
false;
325 bool m_stateHasBeenSet =
false;
ReservedInstances & WithScope(Scope &&value)
const Aws::Utils::DateTime & GetStart() const
double GetFixedPrice() const
ReservedInstances & WithTags(Aws::Vector< Tag > &&value)
const OfferingClassType & GetOfferingClass() const
bool UsagePriceHasBeenSet() const
bool InstanceTypeHasBeenSet() const
bool ReservedInstancesIdHasBeenSet() const
void SetCurrencyCode(CurrencyCodeValues &&value)
ReservedInstances & WithRecurringCharges(Aws::Vector< RecurringCharge > &&value)
const InstanceType & GetInstanceType() const
ReservedInstances & WithInstanceTenancy(const Tenancy &value)
void SetFixedPrice(double value)
ReservedInstances & AddTags(const Tag &value)
ReservedInstances & WithOfferingType(OfferingTypeValues &&value)
void SetInstanceTenancy(Tenancy &&value)
void SetScope(const Scope &value)
bool TagsHasBeenSet() const
bool InstanceCountHasBeenSet() const
ReservedInstances & WithCurrencyCode(CurrencyCodeValues &&value)
void SetOfferingType(const OfferingTypeValues &value)
void SetCurrencyCode(const CurrencyCodeValues &value)
bool ScopeHasBeenSet() const
ReservedInstances & WithCurrencyCode(const CurrencyCodeValues &value)
void SetInstanceType(const InstanceType &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetRecurringCharges(const Aws::Vector< RecurringCharge > &value)
ReservedInstances & WithInstanceTenancy(Tenancy &&value)
void SetInstanceCount(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetTags(Aws::Vector< Tag > &&value)
const CurrencyCodeValues & GetCurrencyCode() const
const Scope & GetScope() const
void SetProductDescription(RIProductDescription &&value)
ReservedInstances & AddRecurringCharges(RecurringCharge &&value)
void SetReservedInstancesId(Aws::String &&value)
ReservedInstances & WithFixedPrice(double value)
bool InstanceTenancyHasBeenSet() const
AWS_EC2_API ReservedInstances(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetUsagePrice(double value)
void SetStart(const Aws::Utils::DateTime &value)
bool StartHasBeenSet() const
void SetState(const ReservedInstanceState &value)
bool RecurringChargesHasBeenSet() const
ReservedInstances & WithState(ReservedInstanceState &&value)
ReservedInstances & WithScope(const Scope &value)
void SetInstanceTenancy(const Tenancy &value)
void SetOfferingType(OfferingTypeValues &&value)
void SetTags(const Aws::Vector< Tag > &value)
bool OfferingClassHasBeenSet() const
ReservedInstances & WithInstanceType(const InstanceType &value)
ReservedInstances & WithInstanceCount(int value)
ReservedInstances & WithAvailabilityZone(const Aws::String &value)
AWS_EC2_API ReservedInstances & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedInstances & WithAvailabilityZone(Aws::String &&value)
const Aws::String & GetAvailabilityZone() const
void SetAvailabilityZone(const Aws::String &value)
ReservedInstances & WithReservedInstancesId(const Aws::String &value)
void SetProductDescription(const RIProductDescription &value)
ReservedInstances & WithDuration(long long value)
AWS_EC2_API ReservedInstances()
ReservedInstances & WithProductDescription(RIProductDescription &&value)
const ReservedInstanceState & GetState() const
void SetOfferingClass(const OfferingClassType &value)
void SetStart(Aws::Utils::DateTime &&value)
void SetEnd(const Aws::Utils::DateTime &value)
ReservedInstances & WithRecurringCharges(const Aws::Vector< RecurringCharge > &value)
long long GetDuration() const
ReservedInstances & WithEnd(const Aws::Utils::DateTime &value)
ReservedInstances & WithState(const ReservedInstanceState &value)
const Aws::Vector< Tag > & GetTags() const
void SetScope(Scope &&value)
ReservedInstances & WithReservedInstancesId(Aws::String &&value)
bool AvailabilityZoneHasBeenSet() const
const Aws::Utils::DateTime & GetEnd() const
void SetAvailabilityZone(const char *value)
ReservedInstances & WithStart(const Aws::Utils::DateTime &value)
ReservedInstances & WithOfferingType(const OfferingTypeValues &value)
ReservedInstances & WithStart(Aws::Utils::DateTime &&value)
ReservedInstances & AddRecurringCharges(const RecurringCharge &value)
void SetRecurringCharges(Aws::Vector< RecurringCharge > &&value)
const RIProductDescription & GetProductDescription() const
const Aws::String & GetReservedInstancesId() const
void SetEnd(Aws::Utils::DateTime &&value)
int GetInstanceCount() const
ReservedInstances & WithAvailabilityZone(const char *value)
void SetDuration(long long value)
bool DurationHasBeenSet() const
bool OfferingTypeHasBeenSet() const
ReservedInstances & WithOfferingClass(OfferingClassType &&value)
ReservedInstances & WithOfferingClass(const OfferingClassType &value)
void SetReservedInstancesId(const Aws::String &value)
ReservedInstances & WithTags(const Aws::Vector< Tag > &value)
bool ProductDescriptionHasBeenSet() const
void SetAvailabilityZone(Aws::String &&value)
const Tenancy & GetInstanceTenancy() const
ReservedInstances & WithReservedInstancesId(const char *value)
ReservedInstances & WithProductDescription(const RIProductDescription &value)
bool StateHasBeenSet() const
ReservedInstances & WithInstanceType(InstanceType &&value)
double GetUsagePrice() const
ReservedInstances & AddTags(Tag &&value)
void SetOfferingClass(OfferingClassType &&value)
bool EndHasBeenSet() const
void SetReservedInstancesId(const char *value)
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
void SetState(ReservedInstanceState &&value)
bool CurrencyCodeHasBeenSet() const
const OfferingTypeValues & GetOfferingType() const
ReservedInstances & WithEnd(Aws::Utils::DateTime &&value)
ReservedInstances & WithUsagePrice(double value)
void SetInstanceType(InstanceType &&value)
bool FixedPriceHasBeenSet() const
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